private void btnEdit_Click(object sender, EventArgs e) { int id = this.GetIdInDvg(); if (id > 0) { FormProductForm formProductForm = new FormProductForm(this, id); formProductForm.Show(); } else { MessageBox.Show("Nenhum item selecionado!"); } }
private void btnNew_Click(object sender, EventArgs e) { FormProductForm formProductForm = new FormProductForm(this); formProductForm.Show(); }