| | |
| | | textButton.Enable = false; |
| | | textButton.IsSelected = false; |
| | | MainPage.Loading.Hide (); |
| | | System.Console.WriteLine ("OnePortWirelessFR Remark Update"); |
| | | Utlis.WriteLine ("OnePortWirelessFR Remark Update"); |
| | | } else { |
| | | textButton.Enable = true; |
| | | textButton.IsSelected = true; |
| | |
| | | return; |
| | | } |
| | | |
| | | gatewayDevice.Remote_GroupName = etGroupName.Text = UserConfig.Instance.CurrentRegion.RegionName; |
| | | gatewayDevice.Remote_ProjectName = etProjectName.Text = UserConfig.Instance.CurrentRegion.RegionName; |
| | | gatewayDevice.Remote_GroupName = etGroupName.Text = UserConfig.Instance.CurrentRegion.Name; |
| | | gatewayDevice.Remote_ProjectName = etProjectName.Text = UserConfig.Instance.CurrentRegion.Name; |
| | | gatewayDevice.Remote_UserName = etUserName.Text = "Admin"; |
| | | gatewayDevice.Remote_Password = etGatewayPassWrod.Text = etRemoteAutoPW.Text.Trim (); |
| | | |
| | |
| | | }; |
| | | spinnerband.AdapterStr = bandText;//.AddAdapter(bandText); |
| | | spinnerband.SelectedItemChanged += (sender, e) => { |
| | | System.Console.WriteLine (e); |
| | | Utlis.WriteLine (e); |
| | | gatewayDevice.WirelessBand = (byte)e; |
| | | }; |
| | | flRadioParameterBody.AddChidren (spinnerband); |
| | |
| | | }; |
| | | spinnerChannel.AdapterStr = channelTextSpinner;//.AddAdapter(channelTextSpinner); |
| | | spinnerChannel.SelectedItemChanged += (sender, e) => { |
| | | System.Console.WriteLine (e); |
| | | Utlis.WriteLine (e); |
| | | gatewayDevice.WirelessChannel = (byte)e; |
| | | }; |
| | | flRadioParameterBody.AddChidren (spinnerChannel); |
| | |
| | | // } |
| | | //} |
| | | //MainPage.Loading.Hide (); |
| | | //System.Console.WriteLine ("UpdateWirelessManage send."); |
| | | //Utlis.WriteLine ("UpdateWirelessManage send."); |
| | | }; |
| | | #endregion |
| | | |
| | |
| | | }); |
| | | } |
| | | } catch (Exception ex) { |
| | | Console.WriteLine (ex.Message); |
| | | Utlis.WriteLine (ex.Message); |
| | | } finally { |
| | | Application.RunOnMainThread (() => { |
| | | MainPage.Loading.Hide (); |
| | |
| | | Common common = CommonPage.DeviceList [i]; |
| | | if (common.Type == DeviceType.MusicModel) |
| | | continue; |
| | | //Console.WriteLine(common.DeviceID); |
| | | //Utlis.WriteLine(common.DeviceID); |
| | | if (common.SubnetID == subnetID && common.DeviceID != 0) { |
| | | int btnY = tipView.Y + (countDevcie + 1) * Application.GetRealHeight (80); |
| | | |
| | | countDevcie++; |
| | | if (common.isMixBox) { |
| | | Console.WriteLine ("IsMixBox"); |
| | | Utlis.WriteLine ("IsMixBox"); |
| | | countDevcie--; |
| | | continue; |
| | | } |
| | |
| | | |
| | | countDevcie++; |
| | | if (common.isMixBox) { |
| | | Console.WriteLine ("IsMixBox"); |
| | | Utlis.WriteLine ("IsMixBox"); |
| | | countDevcie--; |
| | | continue; |
| | | } |
| | |
| | | var common = listCommonEquipment [i]; |
| | | if (common == null) |
| | | continue; |
| | | Console.WriteLine ("读取设备各个回路的具体信息,当前设备名称:" + common.Name + " 回路总数:" + common.LoopCount); |
| | | Utlis.WriteLine ("读取设备各个回路的具体信息,当前设备名称:" + common.Name + " 回路总数:" + common.LoopCount); |
| | | byte bigClass = common.BigClass; |
| | | byte minClass = common.MinClass; |
| | | int count = common.LoopCount; |
| | |
| | | ); |
| | | } |
| | | } catch (Exception ex) { |
| | | Console.WriteLine (ex.ToString ()); |
| | | Utlis.WriteLine (ex.ToString ()); |
| | | } finally { |
| | | Application.RunOnMainThread (() => { |
| | | MainPage.Loading.Hide (); |
| | |
| | | ms.WriteByte (common.SubnetID); |
| | | ms.WriteByte (common.DeviceID); |
| | | } |
| | | Console.WriteLine ("搜索非网关设备,网络地址是:" + CommonPage.EndPoint.ToString ()); |
| | | Utlis.WriteLine ("搜索非网关设备,网络地址是:" + CommonPage.EndPoint.ToString ()); |
| | | Control control = new Control (); |
| | | control.Send (new Target () { |
| | | IPEndPoint = CommonPage.EndPoint, |