Esempio n. 1
0
 private void consoleAdminToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmAccueilAdmin form = new frmAccueilAdmin();
     this.Hide();
     form.Closed += (s, args) => this.Close();
     form.Show();
 }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     var form = new frmAccueilAdmin();
     this.Hide();
     form.Closed += (s, args) => this.Close();
     form.Show();
 }
Esempio n. 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (File.Exists(Path.Combine(Environment.CurrentDirectory, @"nouveau.txt")))
     {
         DialogResult tmp = MessageBox.Show("il y a de nouveau employe à ajouter dans le système, voulez-vous les ajouter maintenant ?", "Nouveau employe", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (tmp == DialogResult.Yes)
         {
             var formOuvert = new frmGesEmp("nouv");
             this.Hide();
             formOuvert.Show();
             formOuvert.Closed += (s, args) => this.Close();
         }
         else
         {
             var form = new frmAccueilAdmin();
             this.Hide();
             form.Closed += (s, args) => this.Close();
             form.Show();
         }
     }
     else
     {
         var form = new frmAccueilAdmin();
         this.Hide();
         form.Closed += (s, args) => this.Close();
         form.Show();
     }
 }
Esempio n. 4
0
        private void consoleAdminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAccueilAdmin form = new frmAccueilAdmin();

            this.Hide();
            form.Closed += (s, args) => this.Close();
            form.Show();
        }