private void btnAddData_Click(object sender, EventArgs e) { var addDataDictionary = new FrmEditDataDictionary { Owner = this }; addDataDictionary.ShowDialog(); }
private void btnEditData_Click(object sender, EventArgs e) { if (dgvInfo.CurrentRow == null) { MessageBoxHelper.ShowWarningMsg(RDIFrameworkMessage.MSGC024); } var dataRow = (dgvInfo.CurrentRow.DataBoundItem as DataRowView).Row; var frmEditDataDictionary = new FrmEditDataDictionary(dataRow) { Owner = this }; frmEditDataDictionary.ShowDialog(); }