void AppStartingUp(object sender, StartupEventArgs e) { SampleViewer mainWindow = new SampleViewer(); mainWindow.Show(); }