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