Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UpdateWindow = ((moVR_Launcher.UpdatePrompt)(target));
                return;

            case 2:
                this.UpdateScreen = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.YesUpdate = ((System.Windows.Controls.Button)(target));

            #line 11 "..\..\UpdatePrompt - Copy.xaml"
                this.YesUpdate.Click += new System.Windows.RoutedEventHandler(this.YesButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.NoUpdate = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\UpdatePrompt - Copy.xaml"
                this.NoUpdate.Click += new System.Windows.RoutedEventHandler(this.NoButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
 // Creates a prompt for an update
 private static void OpenUpdatePrompt()
 {
     updateWindow = new UpdatePrompt();
     updateWindow.ShowDialog();
     updateWindow.Owner = mainwindowInstance;
 }