private void button8_Click(object sender, EventArgs e) { this.Hide(); u.Logout(); Login_Form f1 = new Login_Form(0); f1.ShowDialog(); }
private void button4_Click(object sender, EventArgs e) { this.Hide(); SessionClass.SessionId = 0; u.Logout(); Login_Form f1 = new Login_Form(0); f1.ShowDialog(); }
private void button8_Click(object sender, EventArgs e) { //Resetting the Global variable //Logout this.Hide(); u.Logout(); Login_Form f1 = new Login_Form(0); f1.ShowDialog(); }
public Chemist() { InitializeComponent(); SidePanel.Height = button7.Height; cPrescription1.BringToFront(); if (SessionClass.SessionId == 0) { Login_Form f1 = new Login_Form(0); f1.ShowDialog(); } label1.Text = " " + SessionClass.SessionId.ToString(); }
public Doctor() { InitializeComponent(); notify(); SidePanel.Height = button7.Height; dAppointment.BringToFront(); if (SessionClass.SessionId == 0) { Login_Form f1 = new Login_Form(0); f1.ShowDialog(); } label1.Text = " " + SessionClass.SessionId.ToString(); }
public Receptionist() { InitializeComponent(); rRegister1.BringToFront(); if (SessionClass.SessionId == 0) { Login_Form f1 = new Login_Form(0); f1.ShowDialog(); } label1.Text = " " + SessionClass.SessionId.ToString(); }
public Manager() { InitializeComponent(); Refres(); SidePanel.Height = button7.Height; if (SessionClass.SessionId == 0) { Login_Form f1 = new Login_Form(0); f1.ShowDialog(); } label1.Text = " " + SessionClass.SessionId.ToString(); }
public Laboratorian() { InitializeComponent(); SidePanel.Height = button7.Height; lReport1.BringToFront(); if (SessionClass.SessionId == 0) { Login_Form f1 = new Login_Form(0); f1.ShowDialog(); } label1.Text = " " + SessionClass.SessionId.ToString(); }