示例#1
0
        private void AddClick(object sender, EventArgs e)
        {
            AddEditEvent addEditEvent = new AddEditEvent();

            addEditEvent.Activate();
            addEditEvent.ShowDialog();
        }
示例#2
0
 private void EditClick(object sender, EventArgs e)
 {
     if (lv_events.SelectedItems.Count > 0)
     {
         if (isRecurring)
         {
             RecurringEvent selectedEvent = (RecurringEvent)lv_events.SelectedItems[0].Tag;
             AddEditEvent   addEditEvent  = new AddEditEvent(selectedEvent);
             addEditEvent.Activate();
             addEditEvent.ShowDialog();
         }
         else
         {
             Event        selectedEvent  = (Event)lv_events.SelectedItems[0].Tag;
             AddEditEvent addUpdateEvent = new AddEditEvent(selectedEvent);
             addUpdateEvent.Activate();
             addUpdateEvent.ShowDialog();
         }
     }
 }