Example #1
0
 private void But_Validation_Click(object sender, EventArgs e)
 {
     if (TB_.Text.Trim() != "")
     {
         if (TB_NomPlaine.Text.Trim() != "")
         {
             string path      = TB_.Text;
             string NomPlaine = TB_NomPlaine.Text.Replace(@"\s", "").Trim();
             string date      = DateTime.Now.Date.ToShortDateString().Trim();
             _Manager.ExportRemarqueToExcel(path + @"\" + NomPlaine + "_" + date);
             MessageBox.Show("Fichiers Excel créés , tu peux les trouver ici : " + path + @"\" + NomPlaine + "_" + date);
             this.Close();
         }
         else
         {
             MessageBox.Show("Insérer le nom de la plaine de jeux");
         }
     }
     else
     {
         MessageBox.Show("Désigné d'abord un dossier");
     }
 }