| | |
| | | public class SearchServerOnePortListPage : FrameLayout |
| | | { |
| | | #region 文本 |
| | | string text_Title = "远程连接"; |
| | | string text_Title = "远程"; |
| | | string text_userName = "组名"; |
| | | string text_projectName = "工程名"; |
| | | string text_password = "密码"; |
| | |
| | | string text_readFailure = "读取失败"; |
| | | |
| | | string txt_breakLink = "断开连接"; |
| | | string txt_connectionSucceeded = "连接成功"; |
| | | string txt_connectionSucceeded = "搜索完成"; |
| | | |
| | | string txt_linkSeverFailed = "连接服务器失败"; |
| | | string txt_DataError = "数据异常"; |
| | |
| | | public SearchServerOnePortListPage () |
| | | { |
| | | if (Language.CurrentLanguage != "Chinese") { |
| | | text_Title = "Remote connection"; |
| | | text_Title = "Remote"; |
| | | text_userName = "Group name"; |
| | | text_projectName = "project name"; |
| | | text_password = "Password"; |
| | |
| | | text_link = "Link"; |
| | | text_reading = "Reading"; |
| | | txt_breakLink = "Break link"; |
| | | txt_connectionSucceeded = "Connection succeeded"; |
| | | txt_connectionSucceeded = "Search complete"; |
| | | txt_linkSeverFailed = "Failed to connect to the server"; |
| | | txt_DataError = "Data exception"; |
| | | txt_QueryFailed = "Query failed"; |
| | |
| | | if (oneProtData != null) { |
| | | try { |
| | | var groupName = System.Text.Encoding.UTF8.GetString (oneProtData, 1, 20).Trim ('\0');//============= |
| | | var projectName = System.Text.Encoding.UTF8.GetString (oneProtData, 23, 20).Trim ('\0');//============= |
| | | var userName = System.Text.Encoding.UTF8.GetString (oneProtData, 43, 8).Trim ('\0');//============= |
| | | var projectName22 = System.Text.Encoding.UTF8.GetString (oneProtData, 23, 20).Trim ('\0');//============= |
| | | var userName22 = System.Text.Encoding.UTF8.GetString (oneProtData, 43, 8).Trim ('\0');//============= |
| | | Application.RunOnMainThread (() => { |
| | | |
| | | RowLayout wirelessView = new RowLayout () { |
| | |
| | | BackgroundColor = SkinStyle.Current.ViewColor, |
| | | }; |
| | | listView.AddChidren (wirelessView); |
| | | showGatewayRow (userName,projectName, wirelessView); |
| | | showGatewayRow (userName22,projectName22, wirelessView); |
| | | }); |
| | | }catch (Exception ex) { |
| | | |