Example #1
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     npf = new NewProductForm(servname);
     Hide();
     npf.ShowDialog();
     RefcbStok();
     Show();
 }
Example #2
0
 private void btnEditProd_Click(object sender, EventArgs e)
 {
     npf      = new NewProductForm(servname);
     npf.name = cbStok.SelectedValue.ToString();
     npf.upd  = true;
     npf.id   = cbStok.SelectedIndex + 1;
     Hide();
     npf.ShowDialog();
     RefcbStok();
     Show();
 }