private void Form1_Shown(object sender, EventArgs e) { this.MinimumSize = new Size(800, 600); // scroll down until 7am is at the top of the panel when the form is first shown calendarPanel.AutoScrollPosition = new Point(0, 592); // update the Form title string scheduleName = DatabaseManager.GetCurrentScheduleName(); if (scheduleName == "") { Text = "Tutor Scheduler"; } else { Text = "Tutor Scheduler - " + scheduleName; } // load events into the calendar RefreshCalendars.Refresh(); // show the day label panel after day labels are sized properly dayLabelPanel.Show(); }
private void NewToolStripMenuItem_Click(object sender, EventArgs e) { new NewScheduleForm().ShowDialog(); // update schedule name in title string scheduleName = DatabaseManager.GetCurrentScheduleName(); if (scheduleName == "") { Text = "Tutor Scheduler"; } else { Text = "Tutor Scheduler - " + scheduleName; } }