public SchedulingCalendar(string schedulerID, SchedulerMain schedulerMain) { InitializeComponent(); monthView1.MonthTitleColor = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC"); monthView1.ArrowsColor = CalendarColorTable.FromHex("#77A1D3"); monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52"); monthView1.DaySelectedTextColor = monthView1.ForeColor; this.MdiParent = schedulerMain; this.schedulerMain = schedulerMain ?? new SchedulerMain("123"); this.WindowState = FormWindowState.Maximized; DataTable providersForScheduler = schedulersBelongingToProviderTableAdapter.GetDataBySchedulerID(schedulerID); ProviderComboBox.DisplayMember = "ProviderName"; ProviderComboBox.ValueMember = "ProviderID"; ProviderComboBox.DataSource = providersForScheduler; panel2.Hide(); CancelButton1.Hide(); calendar1.Location = new Point(213, 75); calendar1.Dock = DockStyle.Bottom; panel1.Dock = DockStyle.Top; calendar1.SetViewRange(DateTime.Today, DateTime.Today.Add(new TimeSpan(7, 0, 0, 0))); this.MdiParent = schedulerMain; this.WindowState = FormWindowState.Maximized; Type = "Scheduler"; }
public PatientListView(SchedulerMain schedulerMain) { InitializeComponent(); this.MdiParent = schedulerMain; parentType = "scheduler"; this.schedulerMain = schedulerMain; }
public NewPatient(SchedulerMain schedulerMain) { InitializeComponent(); PregnantBox.Hide(); PregnantLabel.Hide(); NotPregnantBox.Hide(); this.schedulerMain = schedulerMain; ProviderList.ValueMember = "ProviderID"; ProviderList.DisplayMember = "ProviderName"; ProviderList.DataSource = schedulersBelongingToProviderTableAdapter1.GetDataBySchedulerID(schedulerMain.GetSchedulerID()); }
private void Login_Click(object sender, EventArgs e) { if (doAction.authenticateScheduler(UserNameBox.Text, PasscodeBox.Text) == 0) { this.Hide(); SchedulerMain sMain = new SchedulerMain(UserNameBox.Text); sMain.Show(); } else { MessageBox.Show("Please Check Your Username and Password"); } }
public AppointmentListView(SchedulerMain schedulerMain) { this.WindowState = FormWindowState.Maximized; InitializeComponent(); this.AppointmentListView1.Columns.Remove("PatientID"); DataGridViewTextBoxColumn patientID = new DataGridViewTextBoxColumn { DataPropertyName = "PatientID", Name = "SchedulerPatientID", HeaderText = "Patient ID" }; this.AppointmentListView1.Columns.Insert(0, patientID); }