private void EditActivity() { ClsActivity lcActivity = (ClsActivity)listBoxActivityList.SelectedItem; if (lcActivity != null && lcActivity.ViewEditActivity()) { LoadActivityList(comboBoxSortBy.Text); } richTextBoxViewActivity.Clear(); GetQuickView(); }
private void AddActivity() { string activityType = comboBoxType.Text; ClsActivity lcActivity = ClsActivity.NewActivity(activityType, _LcVehicle.DailyCharge); lcActivity.ActivityDate = DateTime.Now; if (lcActivity.ViewEditActivity()) { lcActivity.ActivityUpdatedTime = DateTime.Now; _LcVehicle.VehicleActvityList.Add(lcActivity); LoadActivityList(comboBoxSortBy.Text); } }