public MainWindow() { InitializeComponent(); AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnProcessExit); queryPage = new QueryPage(this); downloadPage = new DownloadPage(this); guiLogic = new GUILogic(); frame.NavigationService.Navigate(queryPage); }
internal SetupGUI(MainWindow mainWindow) { this.mainWindow = mainWindow; queryPage = mainWindow.queryPage; downloadPage = mainWindow.downloadPage; localStudiesPage = mainWindow.localStudiesPage; localSeriesPage = mainWindow.localSeriesPage; queryPage.executeQueryButton.Click += onButtonPressedHandler; }