using FeMM.Common.Checks;
using FeMM.Grasshopper.Components.Design;
using FeMM.Grasshopper.DataTypes;
using System;
using System.Runtime.Versioning;
namespace FeMM.Grasshopper.Components.MeCheck
{
#if NETCOREAPP
[SupportedOSPlatform("windows")]
#endif
public class EC3SteelPrefsComponent : SteelPrefsComponent
{
/// <summary>
/// Initializes a new instance of the MixedSectionComponent class.
/// </summary>
public EC3SteelPrefsComponent()
: base("EC3 Steel prefs", "EC3P", "Define preferences to check the steel elements according to EC3 with SAP2000")
{
}
protected override Forms.SteelPrefsForm GetForm(GH_SteelPrefs prefs)
{
return new Forms.EC3SteelPrefsForm(prefs == null ? null : (EC3SteelPrefs)prefs.Value);
}
protected override GH_SteelPrefs CreateGHSteelPrefs(SteelPrefs prefs)
{
return new GH_EC3SteelPrefs((EC3SteelPrefs)prefs);
}
protected override GH_SteelPrefs CreateGHSteelPrefs()
{
return new GH_EC3SteelPrefs();
}
/// <summary>
/// Provides an Icon for the component.
/// </summary>
protected override System.Drawing.Bitmap Icon => Properties.Resources.EC3SteelPrefsIcon;
/// <summary>
/// Gets the unique ID for this component. Do not change this ID after release.
/// </summary>
public override Guid ComponentGuid => new("F3E74CD6-F9F1-408E-BDFE-750F03E234BA");
}
}