Beispiel #1
0
 private void toolStripButton5_Click(object sender, EventArgs e)
 {
     if (this.listDesTaches.SelectedIndex != -1)
     {
         CreerForm creerForm = new CreerForm(this.SuperUser, this, this.SelectedTacheModif);
         this.Hide();
         creerForm.Show();
     }
     else
     {
         this.detailminibox.Text = "\r\nSELECTIONNEZ D'ABORD UNE TACHE";
     }
 }
Beispiel #2
0
  private void toolStripButton3_Click(object sender, EventArgs e)
  {
      if (this.SuperUser != null)
      {
          CreerForm creerForm = new CreerForm(this.SuperUser, this);
          this.Hide();
          creerForm.Show();
      }
      else // si il n'y a pas de user 
      {
          this.InfoLab.Text = "1.créez une personne !  2.Créez un administrateur !";
          this.detailminibox.Text = "\r\nPour ce faire cliquez sur le premier bouton à gauche !";
      }
 }