protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var mainWindow = new MainWindow(); var mainWindowViewModel = new MainWindowViewModel(); mainWindow.DataContext = mainWindowViewModel; mainWindow.Show(); }
/// <summary> /// Default constructor. /// </summary> public LoadDocumentCommand(MainWindowViewModel viewModel) { m_ViewModel = viewModel; }
/// <summary> /// Default constructor. /// </summary> public LoadDocumentCommand(MainWindowViewModel viewModel) { m_ViewModel = viewModel; }