From 10b78a1626106f18a6b2f68bd2b8cafd2a99683c Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 12 八月 2020 11:31:59 +0800
Subject: [PATCH] 2020-08-12 4.喜爱页面,增加房间场景添加支持。 5.Alexa,添加设备页面增加修改备注功能,点击OK后,增加设备备注名字不匹配然后自动更新操作。
---
Crabtree/SmartHome/UI/SimpleControl/Phone/Music/MyMusic.cs | 36 ++++++++++++++++++------------------
1 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Music/MyMusic.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Music/MyMusic.cs
index 8dd85a4..4d0c91f 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Music/MyMusic.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Music/MyMusic.cs
@@ -33,7 +33,7 @@
var webClient = new Shared.Net.MyWebClient (2000);
return webClient.DownloadString (url);
} catch (Exception e) {
- System.Console.WriteLine (e.Message);
+ Utlis.WriteLine (e.Message);
return null;
}
}
@@ -50,7 +50,7 @@
thread.Abort ();
}
} catch (Exception e) {
- System.Console.WriteLine (e.Message);
+ Utlis.WriteLine (e.Message);
}
}
}
@@ -63,7 +63,7 @@
threadLists.Remove (thread);
thread.Abort ();
} catch (Exception e) {
- System.Console.WriteLine (e.Message);
+ Utlis.WriteLine (e.Message);
}
}
}
@@ -226,10 +226,10 @@
}
}
}
- } catch (Exception e) { System.Console.WriteLine (e.Message); }
+ } catch (Exception e) { Utlis.WriteLine (e.Message); }
}
- } catch (Exception e) { System.Console.WriteLine (e.Message); } finally {
+ } catch (Exception e) { Utlis.WriteLine (e.Message); } finally {
Application.RunOnMainThread (() => {
MainPage.Loading.Hide ();
if (d) {
@@ -393,7 +393,7 @@
a31MusicModel.IsCanShow = true;
a31MusicModel.IsOnLine = true;
}
- } catch (Exception e) { System.Console.WriteLine (e.Message); }
+ } catch (Exception e) { Utlis.WriteLine (e.Message); }
});
}
}
@@ -595,7 +595,7 @@
try {
udpClient = new System.Net.Sockets.UdpClient (localPort);
break;
- } catch (Exception e) { System.Console.WriteLine (e.Message); }
+ } catch (Exception e) { Utlis.WriteLine (e.Message); }
}
System.Threading.Tasks.Task.Run (() => {
@@ -620,7 +620,7 @@
//濡傛灉1000姣娌℃湁鏁版嵁鍥炲锛屽氨鍏抽棴褰撳墠Socket锛屼笉鍐嶇瓑寰呮帴鏀舵暟鎹�
}
System.Threading.Thread.Sleep (500);
- } catch (Exception e) { System.Console.WriteLine (e.Message); }
+ } catch (Exception e) { Utlis.WriteLine (e.Message); }
}
});
while (true) {
@@ -640,7 +640,7 @@
try {
udpClient.Close ();
udpClient = null;
- } catch (Exception e) { System.Console.WriteLine (e.Message); }
+ } catch (Exception e) { Utlis.WriteLine (e.Message); }
break;
}
@@ -652,7 +652,7 @@
//涓�琛屼竴琛屾暟鎹垽鏂紝鎵惧嚭闇�瑕佺殑淇℃伅
while ((tempLine = sr.ReadLine ()) != null) {
//鎵惧嚭Ip鍦板潃鐩稿叧鐨勪俊鎭�
- //System.Console.WriteLine (tempLine);
+ //Utlis.WriteLine (tempLine);
if (tempLine.StartsWith ("LOCATION: http://")) {
tempLine = tempLine.Replace ("LOCATION: http://", "").Split ('/') [0];
string [] ipAndPort = tempLine.Split (':');
@@ -676,11 +676,11 @@
try {
udpClient.Close ();
udpClient = null;
- } catch (Exception e) { System.Console.WriteLine (e.Message); }
+ } catch (Exception e) { Utlis.WriteLine (e.Message); }
break;
}
}
- } catch (Exception e) { System.Console.WriteLine (e.Message); }
+ } catch (Exception e) { Utlis.WriteLine (e.Message); }
}
});
}
@@ -986,7 +986,7 @@
}
#endregion
} catch (Exception e) {
- System.Console.WriteLine (e.Message);
+ Utlis.WriteLine (e.Message);
}
refreshUI (a31image, a31player, a31horizontalSeekBarvol, a31btnPlayMusic, a31palyername, a31currentMusic, a31currentartist, serverOrClientBtn, a31frameLayout, colorBtn);
});
@@ -1205,7 +1205,7 @@
a31currentMusic.Enable = false;
}
} catch (Exception e) {
- System.Console.WriteLine (e.Message);
+ Utlis.WriteLine (e.Message);
}
}
@@ -1339,7 +1339,7 @@
a31MusicModel.A31PlayStatus.TrackURL = se.SearchForTextOfTag ("TrackURI");
} catch (Exception ex) {
- Console.WriteLine (ex.Message);
+ Utlis.WriteLine (ex.Message);
}
}
@@ -1361,7 +1361,7 @@
string deviceType = null;
while ((line = sr.ReadLine ()) != null) {
- //System.Console.WriteLine (line);
+ //Utlis.WriteLine (line);
if (line.StartsWith ("<friendlyName>")) {
deviceName = line.Replace ("<friendlyName>", "").Replace ("</friendlyName>", "");
} else if (line.StartsWith ("<manufacturer>")) {
@@ -1379,7 +1379,7 @@
}
} catch (Exception e) {
- System.Console.WriteLine (e.Message);
+ Utlis.WriteLine (e.Message);
} finally {
if (sr != null) {
sr.Close ();
@@ -1401,7 +1401,7 @@
try {
byte [] recevieBytes1 = webClient.DownloadData (new Uri ("http://" + a31.IPAddress + "/httpapi.asp?command=setPlayerCmd:" + cmd));
} catch (Exception e) {
- System.Console.WriteLine (e.Message);
+ Utlis.WriteLine (e.Message);
}
});
}
--
Gitblit v1.8.0