示例#1
0
        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();
            }
        }
示例#2
0
        private void btnAlerts_Click(object sender, EventArgs e)
        {
            AlertsView frmAlertsView = new AlertsView();

            frmAlertsView.ShowDialog();
        }