public MainWindow() { InitializeComponent(); OrganizerModel model = new OrganizerModel(); viewModel = new MainWindowViewModel(model); this.DataContext = viewModel; }
public MainWindowViewModel(OrganizerModel model) { this.sourcePath = string.Empty; this.destinationPath = string.Empty; this.Log = new ObservableCollection <string>(); this.model = model; this.model.PropertyChanged += Model_PropertyChanged; }