Example #1
0
        public MainWindow()
        {
            InitializeComponent();

            BookDepository depository = new BookDepository(@"..\..\resources\books.xml");
            this.DataContext = new MainWindowViewModel(depository);
        }
Example #2
0
 public MainWindowViewModel(BookDepository depository)
 {
     _depository = depository;
 }