private void EditActivity() { ClsActivity lcActivity = (ClsActivity)lstActivities.SelectedItem; if (lcActivity != null && lcActivity.ViewEdit()) { UpdateDisplay(); } }
private void btnAdd_Click(object sender, EventArgs e) { ClsActivity lcActivity = ClsActivity.NewActivity(cbActivityChoice.SelectedIndex); if (lcActivity != null && lcActivity.ViewEdit()) { _Vehicle.ActivityList.Add(lcActivity); DisplayHireCost(); UpdateDisplay(); } }