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");
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            List <TextBox> textBoxList = new List <TextBox>();

            textBoxList.Add(textBox1);
            textBoxList.Add(textBox2);
            textBoxList.Add(textBox3);
            textBoxList.Add(passwordText);
            textBoxList.Add(confirmPasswordText);
            textBoxList.Add(textBox6);
            textBoxList.Add(textBox7);

            List <CheckBox> checkBoxList = new List <CheckBox>();

            checkBoxList.Add(checkBox1);
            checkBoxList.Add(checkBox2);
            checkBoxList.Add(checkBox3);

            AdminClass.CreateDoctor(textBoxList, comboBox1, checkBoxList, dateTimePicker1 /*, pictureBox2*/);
        }