示例#1
0
        private void PictureBox2_Click(object sender, EventArgs e)
        {
            Pharmacist_dashboard pd = new Pharmacist_dashboard();

            this.Close();
            pd.Show();
        }
示例#2
0
        private void Button2_Click(object sender, EventArgs e)
        {
            Medicine m = new Medicine();

            m.generateBill();
            Pharmacist_dashboard pd = new Pharmacist_dashboard();

            this.Close();
            pd.Show();
        }
示例#3
0
        private void Login_Click(object sender, EventArgs e)
        {
            var user = textBox1.Text;
            var pass = password.Text;

            if (user == "Pharmacist" && pass == "123456")
            {
                MessageBox.Show("Successfully logged in");
                Pharmacist_dashboard pd = new Pharmacist_dashboard();
                this.Close();
                pd.Show();
            }
            else
            {
                MessageBox.Show("Invalid credentials");
            }
        }