Пример #1
0
        private void EditActivity()
        {
            ClsActivity lcActivity = (ClsActivity)lstActivities.SelectedItem;

            if (lcActivity != null && lcActivity.ViewEdit())
            {
                UpdateDisplay();
            }
        }
Пример #2
0
        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();
            }
        }