Exemplo n.º 1
0
 public NewMachineForm(Form tMainForm, ref MachinesCatalog tMachinesCatalogManager)
 {
     MainForm = tMainForm;
     MachinesCatalogManager = tMachinesCatalogManager;
     InitializeComponent();
     Initialize();
 }
Exemplo n.º 2
0
 public TechnicalSpecificationForm(bool bEditGroups, Form tMainForm, ref MachinesCatalog tMachinesCatalogManager)
 {
     EditGroups             = bEditGroups;
     MainForm               = tMainForm;
     MachinesCatalogManager = tMachinesCatalogManager;
     InitializeComponent();
     if (bEditGroups)
     {
         panel9.Height  = 314;
         panel2.Visible = false;
     }
     Initialize();
 }
Exemplo n.º 3
0
 public NewMachineForm(Form tMainForm, ref MachinesCatalog tMachinesCatalogManager,
                       int iMachineID, string sMachineName)
 {
     EditMachine            = true;
     MainForm               = tMainForm;
     MachinesCatalogManager = tMachinesCatalogManager;
     MachineID              = iMachineID;
     MachineName            = sMachineName;
     CurrentSubSectorID     = MachinesCatalogManager.GetSubSectorID(MachineID);
     CurrentSectorID        = MachinesCatalogManager.GetSectorID(CurrentSubSectorID);
     CurrentFactoryID       = MachinesCatalogManager.GetFactoryID(CurrentSectorID);
     InitializeComponent();
     Initialize();
     tbMachineName.Text = MachineName;
 }