private void editProduct_Click(object sender, EventArgs e) { EditProduct ep = new EditProduct(); ep.Show(); File.WriteAllText(@"D:\dsadsa.txt", "dsnfdasbnfbadfkjbafkjbdas"); }
private void PictureBox10_Click(object sender, EventArgs e) { if (dataGridView2.CurrentCell != null) { int i = dataGridView2.CurrentCell.RowIndex; EditProduct p = new EditProduct(levelProduct[i]); p.FormClosing += new FormClosingEventHandler(updAdminProductActions); p.Show(); } }
private void btnEdit_Click(object sender, EventArgs e) { frmEditProduct EditProduct; if ((txtProdId.Text == "") || (lstProd.Items.Count == 0)) { EditProduct = new frmEditProduct(cmbProdType.Text); } else { EditProduct = new frmEditProduct(txtProdId.Text, txtProdType.Text, txtProd.Text, txtPrice.Text, txtDiscount.Text); } EditProduct.MdiParent = this.MdiParent; EditProduct.Show(); this.Enabled = false; }
private void EditProduct_OnClick(object sender, RoutedEventArgs e) { var editProductForm = new EditProduct(); editProductForm.Show(); }