Exemple #1
0
 //clique droit-modifier
 private void modifierToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.ListView_Articles.SelectedItems.Count <= 0)
     {
         MessageBox.Show("Il faut choisir un Article pour supprimer.Cliquez sur RefArticle, SVP.", "Warning");
     }
     else
     {
         Modifier_Article_Form ModifierArticleForm = new Modifier_Article_Form(this.ListView_Articles.SelectedItems[0].SubItems[0].Text.ToString(), "Modifier");
         ModifierArticleForm.StartPosition = FormStartPosition.CenterParent;
         ModifierArticleForm.ShowDialog();
     }
 }
Exemple #2
0
 //double clique pour modifier un article
 private void ListView_Articles_DoubleClick(object sender, EventArgs e)
 {
     if (this.ListView_Articles.SelectedItems.Count <= 0)
     {
         MessageBox.Show("Il faut choisir un Article pour supprimer.Cliquez sur RefArticle, SVP.", "Warning");
     }
     else
     {
         Modifier_Article_Form Modifier_Article_Form = new Modifier_Article_Form(this.ListView_Articles.SelectedItems[0].SubItems[0].Text.ToString(), "Modifier");
         Modifier_Article_Form.StartPosition = FormStartPosition.CenterParent;
         Modifier_Article_Form.ShowDialog();
         Tool_Strip_Status_Label_Selection.Text = "   La derniere action: Modifier un Article.";
     }
 }