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

            case 2:
                this.speedSlider = ((System.Windows.Controls.Slider)(target));

            #line 10 "..\..\ControlPanel.xaml"
                this.speedSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SpeedSlider_ValueChanged);

            #line default
            #line hidden

            #line 10 "..\..\ControlPanel.xaml"
                this.speedSlider.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.SpeedSlider_PreviewMouseDown);

            #line default
            #line hidden

            #line 10 "..\..\ControlPanel.xaml"
                this.speedSlider.PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.SpeedSlider_PreviewMouseUp);

            #line default
            #line hidden
                return;

            case 3:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.balanceSlider = ((System.Windows.Controls.Slider)(target));

            #line 12 "..\..\ControlPanel.xaml"
                this.balanceSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.BalanceSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        private void ShowControlPanel_Click(object sender, RoutedEventArgs e)
        {
            ControlPanel ctrlpanel = new ControlPanel(savedMediaBalance, savedMediaSpeed);

            ctrlpanel.Show();
        }