示例#1
0
        public MainWindow()
        {
            InitializeComponent();

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