private void tsmiAnalyticalView_Click(object sender, EventArgs e)
        {
            if (gridView1.SelectedRowsCount > 0 && gridView1.GetSelectedRows()[0] >= 0)
            {
                string TMNo   = gridView1.GetRowCellValue(gridView1.GetSelectedRows()[0], gridView1.Columns["TMNo"]).ToString();
                string TMName = gridView1.GetRowCellValue(gridView1.GetSelectedRows()[0], gridView1.Columns["TMName"]).ToString();

                //TMAlertsViewer frmAlertsView = new TMAlertsViewer();
                TMAlertsViewerDevEx frmAlertsView = new TMAlertsViewerDevEx();

                //frmAlertsView.txtTMId.Text = TMNo;
                //frmAlertsView.txtTMName.Text = TMName;

                //Φίλτρα στο Grid!

                if (frmAlertsView.gridView1.ActiveFilterString is null || frmAlertsView.gridView1.ActiveFilterString.Trim() == "")
                {
                    frmAlertsView.gridView1.ActiveFilterString += " [TMNo] = '" + TMNo + "' AND [TMName] = '" + TMName + "' ";
                }
                else
                {
                    frmAlertsView.gridView1.ActiveFilterString += " AND [TMNo] = '" + TMNo + "' AND [TMName] = '" + TMName + "' ";
                }

                frmAlertsView.ShowDialog();
            }
예제 #2
0
        private void tsmiAlerts_View_Click(object sender, EventArgs e)
        {
            //AlertsView frmAlertsView = new AlertsView();
            //frmAlertsView.ShowDialog();

            //TMAlertsViewer frmAlertsView = new TMAlertsViewer();

            TMAlertsViewerDevEx frmAlertsView = new TMAlertsViewerDevEx();

            frmAlertsView.ShowDialog();
        }
예제 #3
0
        private void tsmiAlertsViewer_Click(object sender, EventArgs e)
        {
            if (gridView1.SelectedRowsCount > 0 && gridView1.GetSelectedRows()[0] >= 0)
            {
                int Id = Convert.ToInt32(gridView1.GetRowCellValue(gridView1.GetSelectedRows()[0], gridView1.Columns["Id"]).ToString());

                //TMAlertsViewer frmAlertViewer = new TMAlertsViewer(Id);

                TMAlertsViewerDevEx frmAlertViewer = new TMAlertsViewerDevEx(Id);
                frmAlertViewer.ShowDialog();
            }
        }