public NewToolsSubTypeForm(ref TechStoreManager tTechStoreManager) { InitializeComponent(); IsNew = true; TechStoreManager = tTechStoreManager; Initialize(); }
public NewSubSectorForm(ref TechStoreManager tTechStoreManager) { InitializeComponent(); IsNew = true; TechStoreManager = tTechStoreManager; Initialize(); }
public NewToolsForm(ref TechStoreManager tTechStoreManager, int tToolsSubTypeID) { InitializeComponent(); IsNew = true; ToolsSubTypeID = tToolsSubTypeID; TechStoreManager = tTechStoreManager; Initialize(); }
public NewSectorForm(string Factory, ref TechStoreManager tTechStoreManager) { InitializeComponent(); IsNew = true; TechStoreManager = tTechStoreManager; FactoryComboBox.SelectedItem = Factory; }
public MachinePictureEditForm(ref TechStoreManager tTechStoreManager, int tMachineID) { InitializeComponent(); TechStoreManager = tTechStoreManager; MachineID = tMachineID; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; pictureBox1.Image = TechStoreManager.GetMachinePhoto(MachineID); }
public NewMachinesOperationForm(int tMachineID, ref TechStoreManager tTechStoreManager) { InitializeComponent(); TechStoreManager = tTechStoreManager; MachineID = tMachineID; Initialize("MachineID IS NULL"); Edit = false; }
public TechStorageItemsForm(TechStoreManager tTechStoreManager, bool PrintLabels) { InitializeComponent(); TechStoreManager = tTechStoreManager; bPrintLabels = PrintLabels; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Initialize(); while (!SplashForm.bCreated) { ; } }
public NewSubSectorForm(int tSubSectorID, ref TechStoreManager tTechStoreManager) { InitializeComponent(); IsNew = false; TechStoreManager = tTechStoreManager; Initialize(); SubSectorID = tSubSectorID; SubSectorNameTextBox.Text = TechStoreManager.SubSectorsDT.Select("SubSectorID = " + SubSectorID)[0]["SubSectorName"].ToString(); }
public CabFurDocTypesForm(int tCabFurDocTypeID, int tMachinesOperationID, ref TechStoreManager tTechStoreManager) { InitializeComponent(); //IsNew = false; TechStoreManager = tTechStoreManager; Initialize(); TechStoreManager.SaveCabFurDocTypes(); CabFurDocTypeID = tCabFurDocTypeID; MachinesOperationID = tMachinesOperationID; }
public NewToolsTypeForm(int tToolsTypeID, ref TechStoreManager tTechStoreManager) { InitializeComponent(); IsNew = false; TechStoreManager = tTechStoreManager; Initialize(); ToolsTypeID = tToolsTypeID; ToolsTypeNameTextBox.Text = TechStoreManager.ToolsTypeDT.Select("ToolsTypeID = " + ToolsTypeID)[0]["ToolsTypeName"].ToString(); }
public NewSectorForm(string Factory, int tSectorID, ref TechStoreManager tTechStoreManager) { InitializeComponent(); IsNew = false; TechStoreManager = tTechStoreManager; SectorID = tSectorID; FactoryComboBox.SelectedItem = Factory; SectorNameTextBox.Text = TechStoreManager.SectorsDT.Select("SectorID = " + SectorID)[0]["SectorName"].ToString(); }
public NewToolsGroupForm(string Factory, int tToolsGroupID, ref TechStoreManager tTechStoreManager) { InitializeComponent(); IsNew = false; TechStoreManager = tTechStoreManager; ToolsGroupID = tToolsGroupID; FactoryComboBox.SelectedItem = Factory; ToolsGroupNameTextBox.Text = TechStoreManager.ToolsGroupDT.Select("ToolsGroupID = " + ToolsGroupID)[0]["ToolsGroupName"].ToString(); }
public TechStorageItemsForm(TechStoreManager tTechStoreManager, int iTechCatalogOperationsDetailID) { InitializeComponent(); CreateStoreDetail = true; ItemsDataGrid.MultiSelect = true; TechStoreManager = tTechStoreManager; TechCatalogOperationsDetailID = iTechCatalogOperationsDetailID; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Initialize(); while (!SplashForm.bCreated) { ; } }
public NewToolsForm(int tToolsID, ref TechStoreManager tTechStoreManager) { InitializeComponent(); IsNew = false; TechStoreManager = tTechStoreManager; ToolsID = tToolsID; DataRow Row = TechStoreManager.ToolsDT.Select("ToolsID = " + ToolsID)[0]; ToolsNameTextBox.Text = Row["ToolsName"].ToString(); ToolsSubTypeID = Convert.ToInt32(Row["ToolsSubTypeID"]); Initialize(); }
public NewMachinesOperationForm(int tMachineID, int tMachinesOperationID, ref TechStoreManager tTechStoreManager) { InitializeComponent(); AddMachineButton.Visible = false; EditMachineButton.Visible = false; RemoveMachineButton.Visible = false; TechStoreManager = tTechStoreManager; MachineID = tMachineID; MachinesOperationID = tMachinesOperationID; Initialize("MachinesOperationID = " + MachinesOperationID); Edit = true; }
public NewToolsSubTypeForm(int tToolsSubTypeID, ref TechStoreManager tTechStoreManager) { InitializeComponent(); IsNew = false; TechStoreManager = tTechStoreManager; Initialize(); ToolsSubTypeID = tToolsSubTypeID; DataRow Row = TechStoreManager.ToolsSubTypeDT.Select("ToolsSubTypeID = " + ToolsSubTypeID)[0]; ToolsSubTypeNameTextBox.Text = Row["ToolsSubTypeName"].ToString(); string ParametrsXML = Row["Parametrs"].ToString(); if (ParametrsXML.Length == 0) { return; } using (StringReader SR = new StringReader(ParametrsXML)) { ParametrsDT.ReadXml(SR); } if (ParametrsDT.Rows.Count != 0) { ParametrsDT.Columns["ParametrID"].AutoIncrementSeed = Convert.ToInt64(ParametrsDT.Rows[ParametrsDT.Rows.Count - 1]["ParametrID"]); } else { ParametrsDT.Columns["ParametrID"].AutoIncrementSeed = 1; } }