예제 #1
0
 public FrmDriverDetails()
 {
     InitializeComponent();
     InitialAction = DriverDetailsInitialAction.None;
     FillDriverCategoryCombobox();
     SetTabControlImageList();
     UpdatedSelectedDriver();
 }
예제 #2
0
 public FrmDriverDetails(Driver driver, DriverDetailsInitialAction initAction)
 {
     InitializeComponent();
     FillDriverCategoryCombobox();
     SetTabControlImageList();
     this.Driver   = driver;
     InitialAction = initAction;
     UpdatedSelectedDriver();
 }
예제 #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();
     }
 }