Esempio n. 1
0
 public static SampledGear_SpecsForm GetInstance(string GearVarGuid, string GearVarName, SamplingForm Parent_Form)
 {
     if (_instance == null)
     {
         _instance = new SampledGear_SpecsForm(GearVarGuid, GearVarName, Parent_Form);
     }
     return(_instance);
 }
        public ManageGearSpecsForm(string GearVarGuid, string GearVarName = null, SampledGear_SpecsForm parent = null)
        {
            InitializeComponent();
            _gearVarGuid = GearVarGuid;
            if (GearVarName == null)
            {
                ManageGearSpecsClass.GearVarGuid(GearVarGuid);
            }
            else
            {
                _gearVarName = GearVarName;
                ManageGearSpecsClass.GearVariation(_gearVarGuid, _gearVarName);
            }

            _gearSpecs = ManageGearSpecsClass.GearSpecifications;

            if (parent != null)
            {
                _parentForm = parent;
            }
        }
Esempio n. 3
0
 private void OnSpecsForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     _instance = null;
 }