void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.NewDownloadWindow = ((moVR_Launcher.NewDownloadPrompt)(target)); return; case 2: this.NewDownloadScreen = ((System.Windows.Controls.Grid)(target)); return; case 3: this.YesNewDownload = ((System.Windows.Controls.Button)(target)); #line 11 "..\..\NewDownloadPrompt.xaml" this.YesNewDownload.Click += new System.Windows.RoutedEventHandler(this.YesButton_Click); #line default #line hidden return; case 4: this.NoNewDownload = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\NewDownloadPrompt.xaml" this.NoNewDownload.Click += new System.Windows.RoutedEventHandler(this.NoButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
// Creates a prompt for a new file download private static void OpenNewFilePrompt() { newFileWindow = new NewDownloadPrompt(); newFileWindow.ShowDialog(); newFileWindow.Owner = mainwindowInstance; }