Exemple #1
0
 private void resetEventWindow(object sender, FormClosedEventArgs e)
 {
     m_selectedEventForm = null;
 }
 public void LoadAndShowEvent(Event i_Event, Point i_LoadingLocation)
 {
     m_eventForm = new EventForm();
     m_eventForm.LoadEvent(i_Event,i_LoadingLocation);
     m_eventForm.Show();
 }
Exemple #3
0
        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;
            }
        }