public void LoadAndShowEvent(Event i_Event, Point i_LoadingLocation) { m_eventForm = new EventForm(); m_eventForm.LoadEvent(i_Event,i_LoadingLocation); m_eventForm.Show(); }
private void listBoxUndecidedEvents_SelectedIndexChanged(object sender, EventArgs e) { if (ListBoxUndecidedEvents.SelectedItems.Count == 1) { Event selectedEvent = ListBoxUndecidedEvents.SelectedItem as Event; if (m_selectedEventForm != null) { m_selectedEventForm.Close(); } m_selectedEventForm = new EventForm(); m_selectedEventForm.loadEvent(selectedEvent, ListBoxUndecidedEvents.PointToScreen(ListBoxUndecidedEvents.Location)); m_selectedEventForm.Show(); m_selectedEventForm.FormClosed += resetEventWindow; } }