Exemplo 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();
 }
Exemplo n.º 2
0
 public MainWindow(MainWindowViewModel viewModel)
 {
     base.DataContext = viewModel;
     InitializeComponent();
 }