private void BtnAddEvent_Click(object sender, EventArgs e) { EventActionForm eventActionForm = new EventActionForm(); eventActionForm.Activate(); eventActionForm.Show(); }
private void BtnViewEvent_Click(object sender, EventArgs e) { if (EventListView.SelectedItems.Count > 0) { Event selectedEvent = (Event)EventListView.SelectedItems[0].Tag; EventActionForm eventActionForm = new EventActionForm(selectedEvent); eventActionForm.Activate(); eventActionForm.Show(); } else { MessageBox.Show("Select a EVENT", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }