Exemple #1
0
 private void btValider_Click(object sender, EventArgs e)
 {
     if (Outil.AddReponse(Accueil.CurrentUsers.Id, subject.Id, txtPostContent.Text) == 1)
     {
         MessageBox.Show(Properties.Resources.MsgBoxAddReponseText, Properties.Resources.MsgBoxAddReponseTitre, MessageBoxButtons.OK, MessageBoxIcon.Information);
         this.Close();
     }
     else
     {
         MessageBox.Show(Properties.Resources.MsgBoxErreurAddReponseText, Properties.Resources.MsgBoxErreurAddReponseTitre, MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
     }
 }