private void editData_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { int idProduk = Int32.Parse(listView1.SelectedItems[0].Text); prdEditTarget.getFromDatabase(idProduk); EditProduk form = new EditProduk(this, prdEditTarget); form.Show(); } }
public browseMerek(EditProduk editForm) { InitializeComponent(); form = editForm; formActive = "editForm"; }