| | |
| | | public event EventHandler<string> SendData; |
| | | private void SendText(string content) |
| | | { |
| | | //BluetoothHelper.GetInstance().SendData(content); |
| | | SendData?.Invoke(null, content); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <param name="isBlue"></param> |
| | | public void BindData(SystemInfoViewModel model, bool isBlue) |
| | | { |
| | | textEdit1.Text = model.Lan0IpAddress.Replace("\n", ""); |
| | |
| | | |
| | | private Dictionary<string, string> GetDuDic(string du) |
| | | { |
| | | //8.2M:/usr/ebox/Data; 生成Dictionary<string,string> |
| | | return du.Substring(0,du.Length - 1).Split(';').Select(c => c.Split(':')).ToDictionary(b => b[1], b => b[0]); |
| | | } |
| | | |