黄学彪
2020-01-10 9064c76e6a795ae735cac52d98bed178a27c2a87
ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
@@ -104,6 +104,30 @@
            row1 = new FrameRowControl(listView.rowSpace / 2);
            listView.AddChidren(row1);
            row1.AddLeftCaption("清除缓存文件", 500);
            row1.AddRightArrow();
            row1.ButtonClickEvent += (sender, e) =>
            {
                this.ShowMassage(ShowMsgType.Confirm, "是否清除缓存文件", () =>
                {
                    var myPath = UserCenterLogic.CombinePath(DirNameResourse.LocalMemoryDirectory);
                    try
                    {
                        System.IO.Directory.Delete(myPath, true);
                        System.IO.Directory.CreateDirectory(myPath);
                        this.ShowMassage(ShowMsgType.Tip, "清除缓存文件完成,请重新登陆");
                        UserCenterLogic.ReLoginAgain(UserCenterResourse.UserInfo.Account);
                    }
                    catch (Exception ex)
                    {
                        this.ShowMassage(ShowMsgType.Error, "清除缓存文件异常");
                        HdlLogLogic.Current.WriteLog(ex, "清除缓存文件异常");
                    }
                });
            };
            row1 = new FrameRowControl(listView.rowSpace / 2);
            listView.AddChidren(row1);
            row1.AddLeftCaption("上传Log", 500);
            row1.AddRightArrow();
            row1.ButtonClickEvent += (sender, e) =>