private void toolAdd_Click(object sender, EventArgs e) { FormConsignCorpInput formConsignCorpInput = new FormConsignCorpInput(); formConsignCorpInput.Tag = "Add"; formConsignCorpInput.Owner = this; formConsignCorpInput.ShowDialog(); }
private void toolAmend_Click(object sender, EventArgs e) { if (dgvConsignCorp.RowCount > 0) { FormConsignCorpInput formConsignCorpInput = new FormConsignCorpInput(); formConsignCorpInput.Tag = "Edit"; formConsignCorpInput.Owner = this; formConsignCorpInput.ShowDialog(); } }