Beispiel #1
0
 public FrmDriverDetails()
 {
     InitializeComponent();
     InitialAction = DriverDetailsInitialAction.None;
     FillDriverCategoryCombobox();
     SetTabControlImageList();
     UpdatedSelectedDriver();
 }
Beispiel #2
0
 public FrmDriverDetails(Driver driver, DriverDetailsInitialAction initAction)
 {
     InitializeComponent();
     FillDriverCategoryCombobox();
     SetTabControlImageList();
     this.Driver   = driver;
     InitialAction = initAction;
     UpdatedSelectedDriver();
 }
Beispiel #3
0
 /// <summary>
 /// Open the Drivers Details form.
 /// </summary>
 private void OpenSelectedDriverDetails(DriverDetailsInitialAction initAction)
 {
     if (lvDriversList.SelectedItems.Count > 0)
     {
         var frm = new FrmDriverDetails(GetFirstSelectedDriver(), initAction);
         frm.UpdateRequested += (s, ea) => LoadDrivers();
         _ = frm.ShowDialog();
     }
 }