private void tsmiAnalyticalView_Click(object sender, EventArgs e) { if (dgvAlerts.SelectedRows.Count > 0) { string TMNo = dgvAlerts.SelectedRows[0].Cells["tmp_No"].Value.ToString(); string TMName = dgvAlerts.SelectedRows[0].Cells["tmp_Name"].Value.ToString(); AlertsView frmAlertsView = new AlertsView(); frmAlertsView.txtTMId.Text = TMNo; frmAlertsView.txtTMName.Text = TMName; frmAlertsView.applyFilters(); frmAlertsView.ShowDialog(); } }
private void btnAlerts_Click(object sender, EventArgs e) { AlertsView frmAlertsView = new AlertsView(); frmAlertsView.ShowDialog(); }