예제 #1
0
        private void NewDateButton_Click(object sender, RoutedEventArgs e)
        {
            CalendarWindow w = new CalendarWindow();

            if (w.ShowDialog() != true)
            {
                return;
            }

            time = w.Date;
            ConfigLogic.Instance.AddDate(pat, time);

            PreClear();
            // Сброс
            DateGrid.Visibility = Visibility.Visible;
            DateTextBlock.Text  = time.ToShortDateString();
            EyesGrid.Visibility = Visibility.Visible;
        }
예제 #2
0
        private void CallExternalCalendar()
        {
            //-----( カレンダーウィンドウを開く )-----
            CalendarWindow calendarWindow = new CalendarWindow(ExternalWindowsSpecifiedDates);

            calendarWindow.ShowDialog();



            foreach (var item in calendarWindow.SpecifiedDates)
            {
                var gettedItem = item;

                if (SpecifiedDates.IndexOf(gettedItem) <= -1)  //登録済みであれば、新規に登録しない。
                {
                    SpecifiedDates.Add(gettedItem);
                }
            }
        }
예제 #3
0
        private void btnCalendarInfo_Click(object sender, RoutedEventArgs e)
        {
            CalendarWindow calendarWindow = new CalendarWindow();

            calendarWindow.ShowDialog();
        }