private void updateControlInit()
        {
            fUpgradeTask          = new upgradeTask(updateProgressBar_Callback);
            upgradedDeviceListCnt = 0;
            /* initialize progress bar for update process*/

            pb[0] = pbUpdate_0;
            lb[0] = lbIPAddress_0;
            pb[1] = pbUpdate_1;
            lb[1] = lbIPAddress_1;
            pb[2] = pbUpdate_2;
            lb[2] = lbIPAddress_2;
            pb[3] = pbUpdate_3;
            lb[3] = lbIPAddress_3;
            pb[4] = pbUpdate_4;
            lb[4] = lbIPAddress_4;
            pb[5] = pbUpdate_5;
            lb[5] = lbIPAddress_5;
            pb[6] = pbUpdate_6;
            lb[6] = lbIPAddress_6;
            pb[7] = pbUpdate_7;
            lb[7] = lbIPAddress_7;

            /* init device list data grid*/

            // update gride
            DataGridTextColumn col5 = new DataGridTextColumn();

            col5.Header     = "IP Address";
            col5.Binding    = new Binding("deviceIP");
            col5.IsReadOnly = true;
            grdUpdateList.Columns.Add(col5);

            DataGridTextColumn col7 = new DataGridTextColumn();

            col7.Header     = "KU FW Version";
            col7.Binding    = new Binding("kuVer");
            col7.IsReadOnly = true;
            grdUpdateList.Columns.Add(col7);

            DataGridTextColumn col8 = new DataGridTextColumn();

            col8.Header     = "KC FW Version";
            col8.Binding    = new Binding("kcVer");
            col8.IsReadOnly = true;
            grdUpdateList.Columns.Add(col8);

            DataGridTextColumn col9 = new DataGridTextColumn();

            col9.Header     = "Upgrade Status";
            col9.Binding    = new Binding("upgradeStatus");
            col9.IsReadOnly = true;
            grdUpdateList.Columns.Add(col9);
        }
Example #2
0
 public StateMachine(scanProgressBar_Callback cb, dgrUpdateListRead_CallBack ucb, callback_ProgressBar cpb)
 {
     updateThread       = new Thread(new ThreadStart(updateTask));
     t6tAccess          = new TeSysTMbAccess(cb);
     ftpupdgr           = new upgradeTask(cpb);
     toolState          = TOOLSTATE.UNINIT;
     upgrade_Callback   = ucb;
     utility            = new ftpMassUpgrade.toolUitility();
     clientPort         = 0;
     serverPort         = 0;
     noOfDevice         = 0;
     deviceList         = new deviceEntry[250];
     upgradedDeviceList = new deviceEntry[250];
     tmpEntry           = new deviceEntry();
     btScanDisabled     = false;
     portInfo           = new tcpNIpInfoStruct();
     fileInfo           = new upgradeFileInfo();
 }