using FeMM.Common.Models;
using System;
using System.Runtime.Versioning;
namespace FeMM.Grasshopper.Components.Design
{
#if NETCOREAPP
[SupportedOSPlatform("windows")]
#endif
public class BeamEC3SteelComponent : BeamDesignOverrideComponent
{
/// <summary>
/// Initializes a new instance of the MixedSectionComponent class.
/// </summary>
public BeamEC3SteelComponent()
: base("Beam EC3 steel", "BEC3S", "Beam overrides according to EC3 with SAP2000")
{
}
protected override System.Windows.Forms.Form GetForm(object data)
{
return new Forms.BeamEC3SteelForm((BeamEC3SteelAttributeModel.AttributeData)data);
}
protected override object GetData(System.Windows.Forms.Form form)
{
return ((Forms.BeamEC3SteelForm)form).Data;
}
protected override AttributeModel GetOverrideAttribute(object data)
{
return new BeamEC3SteelAttributeModel((BeamEC3SteelAttributeModel.AttributeData)data);
}
/// <summary>
/// Provides an Icon for the component.
/// </summary>
protected override System.Drawing.Bitmap Icon => Properties.Resources.BeamEC3SteelIcon;
/// <summary>
/// Gets the unique ID for this component. Do not change this ID after release.
/// </summary>
public override Guid ComponentGuid => new("95D5CE5A-B259-4A87-8D5E-BFC681832F6E");
}
}