private void button1_Click(object sender, EventArgs e)
        {
            CheckUserTypeClass.CheckIsAdminMethod(this, textBox1, passwordText /*,isAdmin*/);
            /*isDoctor = */ CheckUserTypeClass.CheckIsDoctorMethod(this, textBox1, passwordText);
            /*isPatient = */ CheckUserTypeClass.CheckIsPatientMethod(this, textBox1, passwordText);

            //MessageBox.Show(isAdmin.ToString() + " " + isDoctor.ToString() + " " + isPatient.ToString());


            if (isAdmin == true && isDoctor == false && isPatient == false)
            {
                AdminClass.AdminLogin(this, textBox1.Text, passwordText.Text);
            }
            else if (isAdmin == false && isDoctor == true && isPatient == false)
            {
                DoctorClass.DoctorLogIn(this, textBox1.Text, passwordText.Text);
            }
            else if (isAdmin == false && isDoctor == false && isPatient == true)
            {
                PatientClass.PatientLogIn(this, textBox1.Text, passwordText.Text);
            }
            else
            {
                MessageBox.Show("Login failed...", "Query Result");
            }
        }
Example #2
0
        private void button4_Click_1(object sender, EventArgs e)
        {
            bool result = DoctorClass.DrIdValidOrNot(int.Parse(textBox1.Text));

            if (result == true)
            {
                PatientClass.BookDoctorByPatient(int.Parse(textBox1.Text), PatientClass.GetPatientID(emailID), comboBox1);
            }
            else
            {
                MessageBox.Show("Try with correct id from the list", "Query Result");
            }
        }
Example #3
0
        private void PatientProfile_Load(object sender, EventArgs e)
        {
            List <TextBox> textBoxList = new List <TextBox>();

            textBoxList.Add(textBox1);
            textBoxList.Add(textBox2);
            textBoxList.Add(textBox3);
            textBoxList.Add(textBox4);
            textBoxList.Add(textBox5);
            textBoxList.Add(textBox6);
            textBoxList.Add(textBox8);

            PatientClass.PatientProfile(emailID, groupBox1, comboBox1, dateTimePicker1, textBoxList);
        }
 private void DeletePatient_Load(object sender, EventArgs e)
 {
     PatientClass.ShowPatientDetails(dataGridView1);
 }
 private void PatientAppoinmentDetails_Load(object sender, EventArgs e)
 {
     PatientClass.ShowPatientBookingDetails(dataGridView1, PatientClass.GetPatientID(emailID));
 }
Example #6
0
 private void button3_Click(object sender, EventArgs e)
 {
     PatientClass.SearchDoctorsAvailabeTimeByPatient(textBox1, dataGridView1);
 }
Example #7
0
 private void PatientDashBoard_Load(object sender, EventArgs e)
 {
     PatientClass.GetAllDoctorsId(dataGridView2);
     PatientClass.GetTimeList(comboBox1);
     PatientClass.GetDoctorsAvailableTime(dataGridView1);
 }