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