//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();
        }
Exemple #2
0
        public CalendarDayWindow(int day, int month, int year)
        {
            CalendarDayWindow.newWindowOpened += handleNewWindow;
            MainWindow.mainClosed             += handleMainClose;
            CalendarDayWindow.newWindowOpened(this, null);

            InitializeComponent();

            this.time          = new DateTime(year, month, day);
            this.dateText.Text = time.ToString("d MMM yyyy");

            MediSchedData.dbChanged += handleDbChange;

            loadDaySchedules();
        }