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; }
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); } } }
private void btnCalendarInfo_Click(object sender, RoutedEventArgs e) { CalendarWindow calendarWindow = new CalendarWindow(); calendarWindow.ShowDialog(); }