private void buttonBack1_Click(object sender, EventArgs e)
        {
            this.Hide();
            AdminWorkFlow s = new AdminWorkFlow();

            s.Show();
        }
Esempio n. 2
0
        private void buttonBack1_Click(object sender, EventArgs e)
        {
            this.Hide();
            AdminWorkFlow m = new AdminWorkFlow();

            m.Closed += (s, args) => this.Close();
            m.Show();
        }
Esempio n. 3
0
        private void buttonLogin_Click(object sender, EventArgs e)
        {
            log.Info("hello world");
            String name     = textUsername.Text;
            String password = textPassword.Text;

            int up = qdal.existingpUser(name, password);
            int ud = qdal.existingdUser(name, password);

            if (up > 0)
            {
                MessageBox.Show("Welcome Patient");
                this.Hide();
                PatientWorkArea m = new PatientWorkArea(name);
                m.Closed += (s, args) => this.Close();
                m.Show();
            }



            else if (ud > 0)
            {
                MessageBox.Show("Welcome Doctor");
                this.Hide();
                DoctorWorkArea m = new DoctorWorkArea(name);
                m.Closed += (s, args) => this.Close();
                m.Show();
            }
            else if (textUsername.Text == "Pranali" && textPassword.Text == "Password")


            {
                MessageBox.Show("Welcome Admin");
                this.Hide();
                AdminWorkFlow m = new AdminWorkFlow();
                m.Closed += (s, args) => this.Close();
                m.Show();
            }

            else
            {
                MessageBox.Show("Incorrect Credentials");
            }
        }