//click on the view calendar button private void calendarButton_Click(object sender, RoutedEventArgs e) { CalendarMonthWindow calMonth = new CalendarMonthWindow(); //calMonth.Owner = this; //TODO idk if i should remove this calMonth.Show(); }
public CalendarMonthWindow() { CalendarMonthWindow.newWindowOpened += handleNewWindow; MainWindow.mainClosed += handleMainClose; CalendarMonthWindow.newWindowOpened(this, null); InitializeComponent(); loadMonthCal(currentMonth, currentYear); }