private void RetrieveVehicleData() { try { ClsRentVehicleFleet.RetrieveData(); } catch (Exception ex) { MessageBox.Show(ex.GetBaseException().Message); } }
private void UpdateVehicleFleetList() { List <String> fleetList = ClsRentVehicleFleet.FleetList.Keys.ToList(); listBoxFleetList.DataSource = fleetList; decimal cashFlow = ClsRentVehicleFleet.CalculateFleetCashFlow(); labelTotalCashFlow.Text = "Total Cashflow: " + cashFlow + " NZ$"; if (!fleetList.Any()) { listBoxFleetList.DataSource = null; listBoxFleetList.Items.Clear(); richTextBoxQuickView.Clear(); DisableEditDeleteButton(false); } else { DisableEditDeleteButton(true); } }
private void buttonExit_Click(object sender, EventArgs e) { ClsRentVehicleFleet.SaveData(); Close(); }
private void buttonClose_Click(object sender, EventArgs e) { ClsRentVehicleFleet.SaveData(); richTextBoxViewActivity.Clear(); Close(); }