| | |
| | | }
|
| | | }
|
| | | listView.AdjustRealHeightByBottomButton(Application.GetRealHeight(50));
|
| | |
|
| | | var btnButon = new BottomClickButton();
|
| | | btnButon.Text = "删除文件夹";
|
| | | bodyFrameLayout.AddChidren(btnButon);
|
| | | btnButon.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Confirm, "是否清除该文件夹", () =>
|
| | | {
|
| | | try
|
| | | {
|
| | | System.IO.Directory.Delete(directory, true);
|
| | | this.CloseForm();
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Error, "清除缓存文件夹异常");
|
| | | HdlLogLogic.Current.WriteLog(ex, "清除缓存文件夹异常");
|
| | | }
|
| | | });
|
| | | };
|
| | | if (directory == Common.Config.Instance.FullPath)
|
| | | {
|
| | | btnButon.CanClick = false;
|
| | | }
|
| | | }
|
| | |
|
| | | private void AddDirectoryRowControl(VerticalListControl listView, string directoryName, string directory, bool addLine)
|