Exemple #1
0
        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));
            }
        }
Exemple #2
0
        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));
            }
        }