Пример #1
0
        private void MeetingEditButton_Click(object sender, RoutedEventArgs e) //Vyvolání formuláře pro editaci meetingu
        {
            Meeting selected_meeting = MeetingsListView.SelectedItem as Meeting;

            if (selected_meeting != null)
            {
                AddMeetingWindow addMeetingWindow = new AddMeetingWindow(selected_meeting);
                addMeetingWindow.Show();
            }
        }
Пример #2
0
        private void MeetingAddButton_Click(object sender, RoutedEventArgs e) //Vyvolání formuláře pro přidání meetingu
        {
            Room room = MeetingRoomComboBox.SelectedItem as Room;

            if (room != null && DatePicker.SelectedDate.Value.Date != null)
            {
                DateTime         date             = DatePicker.SelectedDate.Value.Date;
                AddMeetingWindow addMeetingWindow = new AddMeetingWindow(room, date);
                addMeetingWindow.Show();
            }
        }