private void buttonModify_Click(object sender, EventArgs e) { frmProductTypeAdd frmsub = new frmProductTypeAdd(TypedataGridView1.CurrentRow); frmsub.Show(); frmsub.buttonSave.Enabled = true; frmsub.buttonSaveNew.Enabled = false; }
private void buttonAdd_Click(object sender, EventArgs e) { frmProductTypeAdd frmProductTypeAdd = new frmProductTypeAdd(); frmProductTypeAdd.Show(); frmProductTypeAdd.buttonSave.Enabled = false; frmProductTypeAdd.buttonSaveNew.Enabled = true; }
private void TypedataGridView1_DoubleClick(object sender, EventArgs e) { frmProductTypeAdd frmsub = new frmProductTypeAdd(TypedataGridView1.CurrentRow); frmsub.Show(); }