Esempio n. 1
0
        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();
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
 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();
        }
Esempio n. 7
0
        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();
        }
Esempio n. 8
0
        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();
        }