private void PictureBox2_Click(object sender, EventArgs e) { Pharmacist_dashboard pd = new Pharmacist_dashboard(); this.Close(); pd.Show(); }
private void Button2_Click(object sender, EventArgs e) { Medicine m = new Medicine(); m.generateBill(); Pharmacist_dashboard pd = new Pharmacist_dashboard(); this.Close(); pd.Show(); }
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"); } }