예제 #1
0
        /// <summary>
        /// Evenement appelant la fenetre modale d'ajout des objets Article, Famille, Sous Famille
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AjouterToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Article     Article_Obj      = new Article();
            FormArticle FormArticler_Obj = new FormArticle(Article_Obj, ModelManager_Obj, "Ajouter");

            FormArticler_Obj.StartPosition = FormStartPosition.CenterParent;
            FormArticler_Obj.ShowDialog(this);
            ActualiserToolStripMenuItem_Click(null, null);
        }
예제 #2
0
 /// <summary>
 ///  Evenement appelant la fenetre modale pour modifier des objets Article, Famille, Sous Famille
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ModifierToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.listView1.SelectedItems[0].Tag is Article)
     {
         FormArticle FormArticler_Obj = new FormArticle((Article)this.listView1.SelectedItems[0].Tag, ModelManager_Obj, "Modifier");
         FormArticler_Obj.StartPosition = FormStartPosition.CenterParent;
         FormArticler_Obj.ShowDialog(this);
         ActualiserToolStripMenuItem_Click(null, null);
     }
 }