Esempio n. 1
0
 private void Application_Startup(object sender, StartupEventArgs eventArgs)
 {
     //TODO:this viewmodel needs to be shared with the rest of them
     var account = new Account();
     var vm = new MainWindowViewModel(account);
     var window = new MainWindow(vm);
     window.Show();
 }
 public MainWindow(MainWindowViewModel viewModel)
 {
     base.DataContext = viewModel;
     InitializeComponent();
 }