Exemple #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            ViewModels.MainViewModel VM = new ViewModels.MainViewModel();
            MainWindow window           = new MainWindow(VM);

            window.DataContext = VM;
            window.Show();
        }
Exemple #2
0
 public MainWindow(ViewModels.MainViewModel m)
 {
     this.ViewModel = m;
     InitializeComponent();
 }