| | |
| | | userNameView.AddChidren (tvUserName); |
| | | |
| | | var btnLine = new Button () { |
| | | Height = Application.GetRealHeight (1), |
| | | Height = Application.GetRealHeight (2), |
| | | BackgroundColor = SkinStyle.Current.LineColor, |
| | | }; |
| | | infoView.AddChidren (btnLine); |
| | |
| | | projectNameView.AddChidren (tvProjectName); |
| | | |
| | | var btnLine1 = new Button () { |
| | | Height = Application.GetRealHeight (1), |
| | | Height = Application.GetRealHeight (2), |
| | | BackgroundColor = SkinStyle.Current.LineColor, |
| | | }; |
| | | infoView.AddChidren (btnLine1); |
| | |
| | | passwrodView.AddChidren (tvPassword); |
| | | |
| | | var btnLine2 = new Button () { |
| | | Height = Application.GetRealHeight (1), |
| | | Height = Application.GetRealHeight (2), |
| | | BackgroundColor = SkinStyle.Current.LineColor, |
| | | }; |
| | | infoView.AddChidren (btnLine2); |
| | |
| | | CommonPage.RandomHigh = (byte)new Random ().Next (255); |
| | | CommonPage.RandomLow = (byte)new Random ().Next (255); |
| | | CommonPage.GateWayList.Clear (); |
| | | CommonPage.FindGateway = true; |
| | | //如果两次都没有数据反馈,就不读取 |
| | | int readCount = 2; |
| | | while (0 < readCount) { |
| | |
| | | readCount = 2; |
| | | } |
| | | } |
| | | CommonPage.FindGateway = false; |
| | | |
| | | |
| | | Application.RunOnMainThread (() => { |
| | |
| | | } else { |
| | | CommonPage.IsRemote = false; |
| | | Application.RunOnMainThread (() => { |
| | | MainPage.Loading.Hide (); |
| | | infoView.AddChidren (rightButton1); |
| | | rightButton1.Text = linkResult; |
| | | rightButton1.TextColor = 0x99ff0000; |
| | | MainPage.Loading.Hide (); |
| | | }); |
| | | } |
| | | }) { IsBackground = true }.Start (); |
| | |
| | | } |
| | | |
| | | |
| | | #if DEBUG |
| | | return; |
| | | #endif |
| | | var mobytes = Control.ControlBytesSendHasReturn (Command.SetGateWayModelInternetInfo, common.SubnetID, common.DeviceID, serverIPBytes); |
| | | if (mobytes == null || mobytes [0] == 0xF5) { |
| | | Application.RunOnMainThread (() => { |