public SchedulingCalendar(int patientID, ProviderMain providerMain, PatientHomePage patientHome) { InitializeComponent(); monthView1.MonthTitleColor = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC"); monthView1.ArrowsColor = CalendarColorTable.FromHex("#77A1D3"); monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52"); monthView1.DaySelectedTextColor = monthView1.ForeColor; this.MdiParent = providerMain; this.thisPatientID = patientID; this.WindowState = FormWindowState.Maximized; ProviderComboBox.Hide(); SelectProviderLabel.Hide(); this.thisProviderID = providerMain.GetProviderID(); panel1.Hide(); this.patientHome = patientHome; Type = "Provider"; }
public SchedulingCalendar(string providerID, ProviderMain providerMain) { InitializeComponent(); this.thisProviderID = providerID; this.MdiParent = providerMain; providerIDList.Add(thisProviderID); //Monthview colors monthView1.MonthTitleColor = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC"); monthView1.ArrowsColor = CalendarColorTable.FromHex("#77A1D3"); monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52"); monthView1.DaySelectedTextColor = monthView1.ForeColor; //Initialize only double clicking for physicians this.calendar1.ItemDoubleClick += new System.Windows.Forms.Calendar.Calendar.CalendarItemEventHandler(this.calendar1_ItemDoubleClick); this.providerMain = providerMain ?? new ProviderMain(thisProviderID, thisProviderID); ProviderComboBox.Hide(); SelectProviderLabel.Hide(); panel1.Hide(); calendar1.Location = new Point(213, 0); calendar1.Dock = DockStyle.Top; calendar1.SetViewRange(DateTime.Today, DateTime.Today.Add(new TimeSpan(7, 0, 0, 0))); this.MdiParent = providerMain; this.WindowState = FormWindowState.Maximized; Type = "Provider"; CancelButton2.Hide(); }