JLChen
2020-04-03 be95e839f40eb3ddf64706b60cba6dfcf4fad5e5
Crabtree/SmartHome/UI/SimpleControl/Phone/Light/UserDeviceToLight.cs
@@ -180,7 +180,7 @@
                    }
                }
                //if (!update) {
                //    Console.WriteLine ("退出更新灯光");
                //    Utlis.WriteLine ("退出更新灯光");
                //    return;
                //}
                Application.RunOnMainThread (() => {
@@ -228,7 +228,7 @@
                    }
                });
            });
            //Console.WriteLine ("U1");
            //Utlis.WriteLine ("U1");
        }
        bool showTip = true;
        /// <summary>
@@ -352,12 +352,12 @@
                } catch {
                    Console.WriteLine ("controlAllLight catch");
                    Utlis.WriteLine ("controlAllLight catch");
                } finally {
                    Application.RunOnMainThread (() => {
                        MainPage.Loading.Hide ();
                    });
                    //Console.WriteLine ("controlAllLight Loading.Hide");
                    //Utlis.WriteLine ("controlAllLight Loading.Hide");
                }
            });
        }
@@ -583,14 +583,14 @@
            var lightList = new List<Common> ();
            foreach (var room in Room.Lists) {
                if (room == null) {
                    Console.WriteLine ("Null is Room");
                    Utlis.WriteLine ("Null is Room");
                    continue;
                }
                Console.WriteLine ("RoomCount" + Room.Lists.Count);
                Utlis.WriteLine ("RoomCount" + Room.Lists.Count);
                Console.WriteLine (room.Name);
                Utlis.WriteLine (room.Name);
                if (string.IsNullOrEmpty (room.Name)) {
                    Console.WriteLine ("Null is Room Name");
                    Utlis.WriteLine ("Null is Room Name");
                    continue;
                }
                foreach (var common in room.DeviceList) {
@@ -1050,7 +1050,7 @@
            }
            #endregion
            Console.WriteLine ("L6");
            Utlis.WriteLine ("L6");
        }
@@ -1065,12 +1065,12 @@
        {
            if (isCheckIsReadingAll) {
                if (IsReadingAll && !isRead) {
                    Console.WriteLine ("============>IsReadingAll Light读取中");
                    Utlis.WriteLine ("============>IsReadingAll Light读取中");
                    return;
                }
            }
#if DEBUG
            Console.WriteLine ("============>readAllStatus Light 开始读取");
            Utlis.WriteLine ("============>readAllStatus Light 开始读取");
#endif
            if (isRead) {
                foreach (Room room in Room.Lists) {