public AddAuto(UiController.UIController uiController) { InitializeComponent(); _uiController = uiController; _isEdit = false; _uiController.GetAllOwners(cmbOwner); _uiController.GetAllAutoTypes(cmbAutoType); }
public AddInvoiceItem(UiController.UIController uiController, List <InvoiceItem> invoiceItems, DataGridView dgvInvoiceItems) { _dgvInvoiceItems = dgvInvoiceItems; _invoiceItems = invoiceItems; InitializeComponent(); _uiController = uiController; _uiController.GetAllServices(cmbServices); }
public MainMenu() { try { InitializeComponent(); _uiController = new UiController.UIController(); } catch (Exception ex) { } }
public Login(UiController.UIController uiController) { //try //{ _uiController = uiController; if (_uiController == null) { Dispose(); return; } InitializeComponent(); //} //catch (Exception ex) //{ // throw ex; //} }
public AddAuto(UiController.UIController uiController, DataGridView dgvResults, bool details) { InitializeComponent(); _uiController = uiController; _isEdit = true; auto = _uiController.PopulateAutoUpdate(dgvResults, cmbOwner, cmbAutoType, txtProductionYear, txtGas, txtColor, txtDoors, txtRegNumber); if (!details) { return; } cmbOwner.Enabled = false; cmbAutoType.Enabled = false; txtProductionYear.Enabled = false; txtColor.Enabled = false; txtGas.Enabled = false; txtDoors.Enabled = false; txtRegNumber.Enabled = false; btnCancel.Visible = false; btnSubmit.Visible = false; }
public SearchAutos(UiController.UIController uiController) { InitializeComponent(); _uiController = uiController; }
public AddOwner(UiController.UIController uiController) { InitializeComponent(); _uiController = uiController; }