Пример #1
0
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.activeAction = "EDIT PRODUCT";
     frmManageProduct mp = new frmManageProduct();
     mp.editmode = true;
     mp.vp = this;
     mp.lblHeader.Text = this.activeAction;
     mp.active_product_id = Convert.ToDouble(lsvView.SelectedItems[0].Text);
     mp.ShowDialog();
 }
Пример #2
0
 private void btnAddNew_Click(object sender, EventArgs e)
 {
     frmManageProduct mp = new frmManageProduct();
     mp.vp = this;
     mp.ShowDialog();
 }