Example #1
0
        void Clinician_Login_Screen_Login()
        {
            _clinician = clinican_Login_Screen.CurrentClinician;
            if (_clinician.EditClinicians) //if they can edit clinicians
            {
                if (clinician_Records_Screen == null)
                {
                    clinician_Records_Screen      = new Clinician_Records_Screen();
                    clinician_Records_Screen.Dock = DockStyle.Fill;
                    this.Controls.Add(clinician_Records_Screen);
                }
                clinician_Records_Screen.UpdateClinicians();
                clinican_Login_Screen.Visible    = false;
                clinician_Records_Screen.Visible = true;
            }
            else
            {
                if (patient_Records_Screen == null)
                {
                    SetStatusLabelValue("Loading Patients From Server...");
                    patient_Records_Screen      = new Patient_Records_Screen();
                    patient_Records_Screen.Dock = DockStyle.Fill;
                    this.Controls.Add(patient_Records_Screen);
                }
                patient_Records_Screen.CurrentClinician = _clinician;
                clinican_Login_Screen.Visible           = false;
                patient_Records_Screen.Visible          = true;

                if (patient_Screen != null)
                {
                    patient_Screen.CurrentClinician = _clinician;
                    patient_Screen.Visible          = false;
                }
            }
        }
Example #2
0
        void Clinician_Login_Screen_Login()
        {
            _clinician = clinican_Login_Screen.CurrentClinician;
            if (_clinician.EditClinicians) //if they can edit clinicians
            {
                if (clinician_Records_Screen == null)
                {
                    clinician_Records_Screen = new Clinician_Records_Screen();
                    clinician_Records_Screen.Dock = DockStyle.Fill;
                    this.Controls.Add(clinician_Records_Screen);
                }
                clinician_Records_Screen.UpdateClinicians();
                clinican_Login_Screen.Visible = false;
                clinician_Records_Screen.Visible = true;

            }
            else
            {

                if (patient_Records_Screen == null)
                {
                    SetStatusLabelValue("Loading Patients From Server...");
                    patient_Records_Screen = new Patient_Records_Screen();
                    patient_Records_Screen.Dock = DockStyle.Fill;
                    this.Controls.Add(patient_Records_Screen);

                }
                patient_Records_Screen.CurrentClinician = _clinician;
                clinican_Login_Screen.Visible = false;
                patient_Records_Screen.Visible = true;

                if (patient_Screen != null)
                {
                    patient_Screen.CurrentClinician = _clinician;
                    patient_Screen.Visible = false;
                }
            }
        }