コード例 #1
0
        private void button8_Click(object sender, EventArgs e)
        {
            this.Hide();
            u.Logout();
            Login_Form f1 = new Login_Form(0);

            f1.ShowDialog();
        }
コード例 #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            this.Hide();
            SessionClass.SessionId = 0;
            u.Logout();
            Login_Form f1 = new Login_Form(0);

            f1.ShowDialog();
        }
コード例 #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();
        }
コード例 #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();
 }
コード例 #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();
 }
コード例 #6
0
        public Receptionist()
        {
            InitializeComponent();
            rRegister1.BringToFront();
            if (SessionClass.SessionId == 0)
            {
                Login_Form f1 = new Login_Form(0);
                f1.ShowDialog();
            }

            label1.Text = "        " + SessionClass.SessionId.ToString();
        }
コード例 #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();
        }
コード例 #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();
        }