| | |
| | | }; |
| | | divTopTitle.AddChidren(btnTitle); |
| | | |
| | | DriverLayer.Control.ins.reportIp = device.ip_address; |
| | | DriverLayer.Control.ins.ChangeCommunicationMode(DriverLayer.CommunicationMode.tcp_local_client); |
| | | DriverLayer.Control.ins.myTcpClient.ReceiveEvent = ReceiveEvent; |
| | | DriverLayer.Control.Ins.reportIp = device.ip_address; |
| | | //DriverLayer.Control.ins.OpenTcpClent(); |
| | | DriverLayer.Control.Ins.myTcpClient.ReceiveEvent = ReceiveEvent; |
| | | |
| | | contentView = new VerticalRefreshLayout() |
| | | { |
| | |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(582), |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealHeight(44), |
| | | Radius = (uint)Application.GetRealHeight(22), |
| | | Height = Application.GetRealWidth(44), |
| | | Radius = (uint)Application.GetRealWidth(22), |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | |
| | | |
| | | var sendJson = JsonConvert.SerializeObject(sendingObject); |
| | | var sendBytes = System.Text.Encoding.ASCII.GetBytes(sendJson); |
| | | DriverLayer.Control.ins.myTcpClient.SendMessage(sendBytes); |
| | | DriverLayer.Control.Ins.myTcpClient.SendMessage(sendBytes); |
| | | |
| | | } |
| | | /// <summary> |