예제 #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("请选择项");
     }
 }
예제 #2
0
 private void ExecuteImport(string itemName, FileClass fclass)
 {
     CaculateNumber();
     if (App.ViewModel.TotalCount == 0)
     {
         PopOk pop = new PopOk();
         pop.ShowDialog("请选中项!");
         return;
     }
     if (IsSpectialFolder())
     {
         PopOk pop = new PopOk();
         pop.ShowDialog("此文件夹不需要导入 ! ");
         return;
     }
     if (ShowPopConfirm(itemName, App.ViewModel.TotalCount) == true)
     {
         ProgressWindow pw = new ProgressWindow(true);
         pw.BeginWork(fclass);
         pw.ShowDialog();
     }
 }