Esempio n. 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();
                 }
             }
         }
     }
 }
Esempio n. 2
0
 private void gridItemDetail_DoubleClick(object sender, EventArgs e)
 {
     if (gridItemDetail.FocusedRowHandle > -1)
     {
         string mac = gridItemDetail.GetFocusedRowCellValue(colMacAddress).ToString();
         if (mac != "")
         {
             mac = mac.Replace(":", "");
             mac = mac.Insert(4, ".");
             mac = mac.Insert(9, ".");
             frmSignalHistory frm = new frmSignalHistory(mac, 0);
             frm.ShowDialog();
         }
     }
 }
Esempio n. 3
0
        private void gridItemDetail_DoubleClick(object sender, EventArgs e)
        {
            if (gridItemDetail.FocusedRowHandle > -1)
            {
                string mac = gridItemDetail.GetFocusedRowCellValue(colMacAddress).ToString();
                if (mac != "")
                {
                    mac = mac.Replace(":", "");
                    mac = mac.Insert(4, ".");
                    mac = mac.Insert(9, ".");
                        frmSignalHistory frm = new frmSignalHistory(mac, 0);
                        frm.ShowDialog();

                }
            }
        }
Esempio n. 4
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();
                 }
             }
         }
     }
 }