private void AddClick(object sender, EventArgs e) { AddEditEvent addEditEvent = new AddEditEvent(); addEditEvent.Activate(); addEditEvent.ShowDialog(); }
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(); } } }