コード例 #1
0
        //clicking on a day in the calendar
        private void DayBox_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            MonthDayBoxControl dayClicked = (MonthDayBoxControl)sender;
            CalendarDayWindow  dayWindow  = new CalendarDayWindow(dayClicked.getDay(), this.currentMonth, this.currentYear);

            dayWindow.Owner = this;
            dayWindow.Show();
            this.Hide();
        }
コード例 #2
0
ファイル: NewApptMonth.xaml.cs プロジェクト: jvaneg/MediSched
        //clicking on a day
        private void DayBox_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            MonthDayBoxControl dayClicked = (MonthDayBoxControl)sender;
            NewApptDay         dayWindow  = new NewApptDay(dayClicked.getDay(), this.currentMonth, this.currentYear, potentialLength, apptType, targetPatient);

            dayWindow.Owner = this;
            dayWindow.Show();
            this.Hide();
        }