コード例 #1
0
 public StartUpWindow(MainWindowViewModel vm)
 {
     InitializeComponent();
     this.vm = vm;
     DataContext = vm;
     contentPresenter.Content = new DatabaseIntroduction() { DataContext = vm };
     canClose = false;
 }
コード例 #2
0
        public MainWindow()
        {
            logger.Debug("Application started");
            sw = new Core.Performance.Stopwatch("Application loaded after ");
            sw.Start();

            InitializeComponent();

            MainWindowViewModel = new UI.ViewModel.MainWindowViewModel(this);
            DataContext = MainWindowViewModel;
        }