示例#1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (Solution.Text != null)
     {
         _rename = new RenameController(Solution.Text, RenameFrom.Text, RenameTo.Text, true,
                                        renameDirs.IsChecked == true);
         _rename.DetectWork();
         _done.Clear();
         _toDo = new ObservableCollection<ActionBase>(_rename.Actions);
         ToRename.ItemsSource = _toDo;
         Renamed.ItemsSource = _done;
     }
 }
示例#2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (Solution.Text != null)
     {
         _rename = new RenameController(Solution.Text, RenameFrom.Text, RenameTo.Text, true,
                                        renameDirs.IsChecked == true);
         _rename.DetectWork();
         _done.Clear();
         _toDo = new ObservableCollection <ActionBase>(_rename.Actions);
         ToRename.ItemsSource = _toDo;
         Renamed.ItemsSource  = _done;
     }
 }