/// <summary> /// Создание нового Event /// </summary> private void CreateEventMenuItem_OnClick(object sender, RoutedEventArgs e) { var newEvent = new NewEvent(_timetable); if (newEvent.ShowDialog() == true) { _timetable.AddEvent(newEvent.Event); _timetable.Sort(); MessageBox.Show("Событие создано!"); PrintCard(newEvent.Event, Brushes.CadetBlue); } }