JLChen
2021-01-05 f500e14c0a994487070380c50c85e0929cbc8e63
Crabtree/SmartHome/UI/SimpleControl/Phone/TV/ConfigIRCode.cs
@@ -49,6 +49,12 @@
                    port = common.LoopID.ToString ();
                }
            }
            #region 2020-07-03 记录回路备注
            byte [] remakeBytes = CommonPage.MyEncodingGB2312.GetBytes (common.Name);
            Array.Copy (remakeBytes, 0, updateInfraredBytes, 6, remakeBytes.Length < 20 ? remakeBytes.Length : 20);
            #endregion
            bodyView = new FrameLayout () {
                BackgroundColor = SkinStyle.Current.ViewColor
            };
@@ -389,7 +395,7 @@
                InitBrandView (verticalScrolView, dialog);
            } catch (Exception ex) {
                Console.WriteLine (ex.ToString ());
                Utlis.WriteLine (ex.ToString ());
            } finally {
                MainPage.Loading.Hide ();
            }
@@ -465,7 +471,7 @@
                        InitInfraredView ();
                    } catch (Exception ex) {
                        Console.WriteLine ("dbnew3 error :" + ex.ToString ());
                        Utlis.WriteLine ("dbnew3 error :" + ex.ToString ());
                    } finally {
                        MainPage.Loading.Hide ();
                    }
@@ -1395,7 +1401,7 @@
                                    infraredString = infraredDataList [infraredDataIndex];
                                    iCode = infraredString.Split ('_') [2];
                                    byteICode = iCode.Substring (0, iCode.IndexOf ("}")).Replace ("{", "").Trim ().Split (',');
                                    Console.WriteLine (iCode);
                                    Utlis.WriteLine (iCode);
                                    hByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) / 256);
                                    lByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) % 256);
                                    InfraredTypeCode = Convert.ToByte (infraredString.Split ('_') [0]);
@@ -1438,7 +1444,7 @@
                                    infraredString = infraredDataList [infraredDataIndex];
                                    iCode = infraredString.Split ('_') [2];
                                    byteICode = iCode.Substring (0, iCode.IndexOf ("}")).Replace ("{", "").Trim ().Split (',');
                                    Console.WriteLine (iCode);
                                    Utlis.WriteLine (iCode);
                                    hByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) / 256);
                                    lByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) % 256);
                                    InfraredTypeCode = Convert.ToByte (infraredString.Split ('_') [0]);
@@ -1491,7 +1497,7 @@
                                            infraredString = infraredDataList [infraredDataIndex];
                                            iCode = infraredString.Split ('_') [2];
                                            byteICode = iCode.Substring (0, iCode.IndexOf ("}")).Replace ("{", "").Trim ().Split (',');
                                            Console.WriteLine (iCode);
                                            Utlis.WriteLine (iCode);
                                            hByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) / 256);
                                            lByte = Convert.ToByte (Convert.ToInt32 (infraredString.Split ('_') [1].Trim ()) % 256);
                                            InfraredTypeCode = Convert.ToByte (infraredString.Split ('_') [0]);