Example #1
0
        private void existingEventsListBox_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            EventModel currentObject = (EventModel)existingEventsListBox.SelectedItem;

            if (currentObject != null)
            {
                EventForm newForm = new EventForm(this);
                newForm.PopulateEventForm(currentObject);
                newForm.Text = "View / Edit Event";
                newForm.Show();
            }
        }
Example #2
0
        private void createNewEventToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EventForm newForm = new EventForm(this);

            newForm.Show();
        }