Пример #1
0
        private void ItemWindow_IncludeMusic()
        {
            PopOk pop = new PopOk();

            pop.ShowDialog("暂不支持!");
            return;
            //ExecuteInclude(musicConfigPath);
        }
Пример #2
0
        void ViewModel_DeleteCompleted()
        {
            PopOk pop = new PopOk();

            pop.ShowDialog("删除结束 ! ");
            App.ViewModel.DeleteCompleted       -= ViewModel_DeleteCompleted;
            App.ViewModel.DeleteProgressChanged -= ViewModel_DeleteProgressChanged;
            this.Close();
        }
Пример #3
0
        void ViewModel_CopyCompleted()
        {
            PopOk pop = new PopOk();

            pop.ShowDialog("复制结束 ! ");
            App.ViewModel.CopyCompleted       -= ViewModel_CopyCompleted;
            App.ViewModel.CopyProgressChanged -= ViewModel_CopyProgressChanged;
            this.Close();
        }
Пример #4
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("请选择项");
     }
 }
Пример #5
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();
     }
 }
Пример #6
0
 private void ExecuteInclude(string configPath)
 {
     CaculateNumber();
     if (App.ViewModel.TotalCount == 0)
     {
         PopOk pop = new PopOk();
         pop.ShowDialog("请选中项!");
         return;
     }
     if (App.ViewModel.ChoosenFileList.Count != 0)
     {
         PopOk pop = new PopOk();
         pop.ShowDialog("请只选择目录!");
         return;
     }
     if (ContainsSpecialFolder())
     {
         PopOk pop = new PopOk();
         pop.ShowDialog("包含非法目录!");
         return;
     }
     AddValidExtDirectoires(configPath, App.ViewModel.ChoosenDirectoryList);
 }