Example #1
0
 // creating the view model and biniding data.
 public void SetSingelMod(Model m, MainWindow main)
 {
     dashViewModel = new DashViewModel(m);
     DataContext   = dashViewModel;
     // updating the board.
     dashViewModel.UpdateData();
     this.ancestor = main;
 }
Example #2
0
 public DashBoard()
 {
     InitializeComponent();
     dashViewModel = new DashViewModel(new Model());
 }