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; } }
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; } }