private void NewDayButton_OnClick(object sender, RoutedEventArgs e) { if (_selectedMonth == null) { return; } var newDayWindow = new NewDayWindow(); newDayWindow.ShowDialog(); if (newDayWindow.DialogResult == true) { _selectedMonth.Days.Add(new Day(newDayWindow.SelectedDate)); } }
private void NewDayButton_OnClick(object sender, RoutedEventArgs e) { if (_selectedMonth == null) return; var newDayWindow = new NewDayWindow(); newDayWindow.ShowDialog(); if (newDayWindow.DialogResult == true) { _selectedMonth.Days.Add(new Day(newDayWindow.SelectedDate)); } }