Esempio n. 1
0
 public AddAuto(UiController.UIController uiController)
 {
     InitializeComponent();
     _uiController = uiController;
     _isEdit       = false;
     _uiController.GetAllOwners(cmbOwner);
     _uiController.GetAllAutoTypes(cmbAutoType);
 }
Esempio n. 2
0
 public AddInvoiceItem(UiController.UIController uiController, List <InvoiceItem> invoiceItems, DataGridView dgvInvoiceItems)
 {
     _dgvInvoiceItems = dgvInvoiceItems;
     _invoiceItems    = invoiceItems;
     InitializeComponent();
     _uiController = uiController;
     _uiController.GetAllServices(cmbServices);
 }
Esempio n. 3
0
 public MainMenu()
 {
     try
     {
         InitializeComponent();
         _uiController = new UiController.UIController();
     }
     catch (Exception ex)
     {
     }
 }
Esempio n. 4
0
 public Login(UiController.UIController uiController)
 {
     //try
     //{
     _uiController = uiController;
     if (_uiController == null)
     {
         Dispose();
         return;
     }
     InitializeComponent();
     //}
     //catch (Exception ex)
     //{
     //    throw ex;
     //}
 }
Esempio n. 5
0
        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;
        }
Esempio n. 6
0
 public SearchAutos(UiController.UIController uiController)
 {
     InitializeComponent();
     _uiController = uiController;
 }
Esempio n. 7
0
 public AddOwner(UiController.UIController uiController)
 {
     InitializeComponent();
     _uiController = uiController;
 }