Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            OrganizerModel model = new OrganizerModel();

            viewModel        = new MainWindowViewModel(model);
            this.DataContext = viewModel;
        }
Exemplo n.º 2
0
 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;
 }