Beispiel #1
0
 private void Delete()
 {
     CaculateNumber();
     if (App.ViewModel.TotalCount != 0)
     {
         Pop_OkCancel pop = new Pop_OkCancel();
         if (pop.ShowDialog("确定删除?") == true)
         {
             ProgressWindow window = new ProgressWindow();
             window.IsCopy = false;
             window.BeginWork();
             window.ShowDialog();
             RefreshCurrentDirectory();
         }
     }
     else
     {
         PopOk pop = new PopOk();
         pop.ShowDialog("请选择项");
     }
 }
Beispiel #2
0
        private bool?ShowPopConfirm(string folderName, int count)
        {
            Pop_OkCancel pop = new Pop_OkCancel();

            return(pop.ShowDialog("确定将当前" + count + "项复制到" + folderName + "文件夹?"));
        }