JLChen
2020-01-15 454ac814944cf956ff02b84b70ba2ec68e5e5ea1
Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserRoom.cs
@@ -455,7 +455,7 @@
                                rowView.AddChidren (btnPoint);
                                var btnName = new Button () {
                                    Width = Application.GetRealWidth (550),
                                    Width = Application.GetRealWidth (300),
                                    Text = homeTemp.Name,
                                    TextAlignment = TextAlignment.CenterLeft,
                                    X = Application.GetRealWidth (90),
@@ -472,7 +472,7 @@
                                        try {
                                            var backuplist = IO.FileUtils.ReadFiles ();
                                            int index = 0;
                                            string oldRegionRootPath = IO.FileUtils.CreateRegionBackup (UserConfig.Instance.CurrentRegion.Name);
                                            string oldRegionRootPath = IO.FileUtils.CreateRegionBackup (UserConfig.Instance.CurrentRegion.Id);
                                            IO.FileUtils.DeleteRegionFiles (oldRegionRootPath);
                                            foreach (var fileName in backuplist) {
                                                System.IO.FileInfo fileInfo = new System.IO.FileInfo (IO.FileUtils.RootPath + fileName);
@@ -487,7 +487,7 @@
                                                });
                                            }
                                            IO.FileUtils.DeleteAllFile ();
                                            string newRegionRootPath = IO.FileUtils.CreateRegionBackup (homeTemp.Name);
                                            string newRegionRootPath = IO.FileUtils.CreateRegionBackup (homeTemp.Id);
                                            IO.FileUtils.RestoreRegionFiles (newRegionRootPath);
                                            UserConfig.Instance.RefreshUserConfig ();
                                            UserConfig.Instance.CurrentRegion = homeTemp;