private void Button_UpdateEvent_Click(object sender, RoutedEventArgs e) { Window_Event window = new Window_Event ( m_userControl_evnt.EventId, m_userControl_evnt.EventName, m_userControl_evnt.EventDescription, (win) => { Window_Event wWin = win as Window_Event; if (wWin != null) GinTubBuilderManager.UpdateEvent(wWin.EventId.Value, wWin.EventName, wWin.EventDescription); } ); window.Show(); }
private void NewEventDialog() { Window_Event window = new Window_Event ( null, null, null, (win) => { Window_Event wWin = win as Window_Event; if (wWin != null) GinTubBuilderManager.CreateEvent(wWin.EventName, wWin.EventDescription); } ); window.Show(); }