Exemple #1
0
        private void modifierToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int        id     = int.Parse(this.listView1.SelectedItems[0].SubItems[0].Text.Split('.')[0]);
            Produits   toShow = _db.Produits.Find(id);
            NewProduct sheet  = new NewProduct(this, this._db, toShow);

            sheet.Show();
        }
Exemple #2
0
        private void nouv_Click(object sender, EventArgs e)
        {
            NewProduct n = new NewProduct(this, this._db, null);

            n.Show();
        }