コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PauseWindow = ((HPTriviaMaze.Pause)(target));
                return;

            case 2:
                this.txtPaused = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 17 "..\..\Pause.xaml"
                this.btnResume.Click += new System.Windows.RoutedEventHandler(this.btnResume_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        private void mnuPauseGame_Click(object sender, RoutedEventArgs e)
        {
            Pause pauseWindow = new Pause();

            pauseWindow.Show();
        }