Exemple #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();
                 }
             }
         }
     }
 }
Exemple #2
0
 private void btnThamKhao_Click(object sender, EventArgs e)
 {
     frmCn_adminWeb frm = new frmCn_adminWeb(Mac);
     frm.ShowDialog();
 }
Exemple #3
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();
                 }
             }
         }
     }
 }
Exemple #4
0
        private void btnThamKhao_Click(object sender, EventArgs e)
        {
            frmCn_adminWeb frm = new frmCn_adminWeb(Mac);

            frm.ShowDialog();
        }