Beispiel #1
0
 private void gridItemDetail_DoubleClick(object sender, EventArgs e)
 {
     if (dt.Rows.Count > 0)
     {
         if (gridItemDetail.FocusedRowHandle > -1)
         {
             string mac = gridItemDetail.GetFocusedRowCellValue(colMacAdress).ToString();
             if (mac != "")
             {
                 if (gridItemDetail.FocusedColumn.Name == "colChart")
                 {
                     frmSignalChart frm = new frmSignalChart(mac, 1);
                     frm.ShowDialog();
                 }
                 else if (gridItemDetail.FocusedColumn.Name == "colIpPrivate")
                 {
                     frmCn_adminWeb frm = new frmCn_adminWeb(mac, "history CNADMIN");
                     frm.ShowDialog();
                 }
                 else
                 {
                     frmSignalHistory frm = new frmSignalHistory(mac, 1);
                     frm.ShowDialog();
                 }
             }
         }
     }
 }
Beispiel #2
0
 private void gridItemDetail_DoubleClick(object sender, EventArgs e)
 {
     if (dt.Rows.Count > 0)
     {
         if (gridItemDetail.FocusedRowHandle > -1)
         {
             string mac = gridItemDetail.GetFocusedRowCellValue(colMacAdress).ToString();
             if (mac != "")
             {
                 if (gridItemDetail.FocusedColumn.Name == "colChart")
                 {
                     frmSignalChart frm = new frmSignalChart(mac,1);
                     frm.ShowDialog();
                 }
                 else if (gridItemDetail.FocusedColumn.Name == "colIpPrivate")
                 {
                     frmCn_adminWeb frm = new frmCn_adminWeb(mac, "history CNADMIN");
                     frm.ShowDialog();
                 }
                 else
                 {
                     frmSignalHistory frm = new frmSignalHistory(mac,1);
                     frm.ShowDialog();
                 }
             }
         }
     }
 }