private void toolAdd_Click(object sender, EventArgs e) { FormPayTypeInput formPayTypeInput = new FormPayTypeInput(); formPayTypeInput.Tag = "Add"; formPayTypeInput.Owner = this; formPayTypeInput.ShowDialog(); }
private void toolAmend_Click(object sender, EventArgs e) { if (dgvPayType.Rows.Count > 0) { FormPayTypeInput formPayTypeInput = new FormPayTypeInput(); formPayTypeInput.Tag = "Edit"; formPayTypeInput.Owner = this; formPayTypeInput.ShowDialog(); } }