Beispiel #1
0
 private void OnOpenFileList_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         LogController.Log($"文件重名名选择多文件");
         OpenFileDialog aDlg = new OpenFileDialog();
         aDlg.Multiselect = true;
         aDlg.Title       = "选择文件列表";
         if (aDlg.ShowDialog() != true)
         {
             return;
         }
         _Model.ClearFileList();
         foreach (string aFullFileName in aDlg.FileNames)
         {
             _Model.AddFileItem(aFullFileName);
         }
     }
     catch (Exception ex)
     {
         LogController.Log($"选择多文件错误--{ex.Message}");
         MessageBox.Show(ex.Message);
     }
 }
Beispiel #2
0
 private void OnRegexTypeChanged(object sender, SelectionChangedEventArgs e)
 {
     LogController.Log($"表达式类型选择改变");
     _Model.RegexListChange(ManageList);
 }
Beispiel #3
0
 public void AddFileItem(string aFullFileName)
 {
     LogController.Log($"添加文件--{aFullFileName}");
     FileList.Add(new FileItem(aFullFileName));
 }
Beispiel #4
0
 public void ClearFileList()
 {
     LogController.Log($"清除文件类表");
     FileList.Clear();
 }