示例#1
0
        void ThreadUIHandleMethod(object data)
        {
            object obj = solarPanelInfo;

            Global.ByteArrayToStructure((byte[])data, ref obj, 0);
            solarPanelInfo               = (Global.SolarPanelInfo)obj;
            solarOutputPower             = solarPanelInfo.OutputPower;
            solarCurrentErrorId          = solarPanelInfo.CurrentErrorId;
            textBoxSolarOutputPower.Text = solarOutputPower.ToString("0.000000");
            udpTimeout = 0;
            textBoxSolarStatue.Text      = "已连接";
            textBoxSolarStatue.BackColor = Color.Green;
            textBoxSolarStatue.ForeColor = Color.White;
        }
示例#2
0
 void ThreadUIHandleMethod(object data)
 {
     object obj = solarPanelInfo;
     Global.ByteArrayToStructure((byte[])data, ref obj, 0);
     solarPanelInfo = (Global.SolarPanelInfo)obj;
     solarOutputPower = solarPanelInfo.OutputPower;
     solarCurrentErrorId = solarPanelInfo.CurrentErrorId;
     textBoxSolarOutputPower.Text = solarOutputPower.ToString("0.000000");
     udpTimeout = 0;
     textBoxSolarStatue.Text = "已连接";
     textBoxSolarStatue.BackColor = Color.Green;
     textBoxSolarStatue.ForeColor = Color.White;
 }