示例#1
0
        public MainWindow()
        {
            InitializeComponent();
            OrganizerModel model = new OrganizerModel();

            viewModel        = new MainWindowViewModel(model);
            this.DataContext = viewModel;
        }
示例#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;
 }