private void toolStripButton1_Click(object sender, EventArgs e) { Product.ProductFrm nform = new Product.ProductFrm(); nform._isEdit = false; nform.ShowDialog(); loadInformation(); }
private void toolStripButton2_Click(object sender, EventArgs e) { if (this.ProdListV.SelectedItems.Count > 0) { Product.ProductFrm nform = new Product.ProductFrm(); nform.Id = Convert.ToInt32(this.ProdListV.SelectedItems[0].Text); nform._isEdit = true; nform.ShowDialog(); } else { MessageBox.Show("Please select item first."); } }