Ejemplo n.º 1
0
        private void EditActivity()
        {
            ClsActivity lcActivity = (ClsActivity)listBoxActivityList.SelectedItem;

            if (lcActivity != null && lcActivity.ViewEditActivity())
            {
                LoadActivityList(comboBoxSortBy.Text);
            }
            richTextBoxViewActivity.Clear();
            GetQuickView();
        }
Ejemplo n.º 2
0
        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);
            }
        }