Beispiel #1
0
 public MainWindow()
 {
     MessageBox.Show("It will take a while for the program to set up the database. Please click ok to start the process and wait for window to appear.");
     DataContext = this;
     ConnectToDatabase();
     InitializeComponent();
     modelView = new OrdersModelView(northWind);
     formGrid.DataContext = modelView;
 }
Beispiel #2
0
 public void SetUp()
 {
     //NorthWind teststub has by default 2 orders, 1 category and 1 product preloaded in its constructor.
     northWindTestStub = new NorthWindTestStub();
     ordersModelView = new OrdersModelView(northWindTestStub);
 }