private void Selling_Form_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult dia = MessageBox.Show("Do You Really Wany To Log Out?", "Pharmacy System", MessageBoxButtons.YesNo);

            if (dia == DialogResult.Yes)
            {
                if (lblRank.Text == "1")
                {
                    this.Hide();
                    Main_User_Files.Admin_Form ad = new Main_User_Files.Admin_Form();
                    ad.ShowDialog();
                }
                else
                {
                    this.Hide();
                    Main_User_Files.Cushier_Form ad = new Main_User_Files.Cushier_Form();
                    ad.ShowDialog();
                }
            }
            else if (dia == DialogResult.No)
            {
                cboCategory.Focus();
            }
        }
Пример #2
0
        private void closeFormToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult dia = MessageBox.Show("Do You Really Wany To Log Out?", "Pharmacy System", MessageBoxButtons.YesNo);

            if (dia == DialogResult.Yes)
            {
                if (lblRank.Text == "1")
                {
                    this.Hide();
                    Main_User_Files.Admin_Form ad = new Main_User_Files.Admin_Form();
                    ad.ShowDialog();
                }
                else
                {
                    this.Hide();
                    Main_User_Files.Cushier_Form lf = new Main_User_Files.Cushier_Form();
                    lf.ShowDialog();
                }
            }
            else if (dia == DialogResult.No)
            {
                dpt.Focus();
            }
        }
 private void Product_Form_FormClosing(object sender, FormClosingEventArgs e)
 {
     this.Hide();
     Main_User_Files.Admin_Form lg = new Main_User_Files.Admin_Form();
     lg.ShowDialog();
 }
 private void closeFormToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.Hide();
     Main_User_Files.Admin_Form lg = new Main_User_Files.Admin_Form();
     lg.ShowDialog();
 }
Пример #5
0
 private void btnExit_Click(object sender, EventArgs e)
 {
     this.Hide();
     Main_User_Files.Admin_Form ad = new Main_User_Files.Admin_Form();
     ad.ShowDialog();
 }
Пример #6
0
 private void DateForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     this.Hide();
     Main_User_Files.Admin_Form ad = new Main_User_Files.Admin_Form();
     ad.ShowDialog();
 }
Пример #7
0
 private void exitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.Hide();
     Main_User_Files.Admin_Form ad = new Main_User_Files.Admin_Form();
     ad.ShowDialog();
 }