Logika interakcji dla klasy MainWindow.xaml
Inheritance: WpfApp3.Window
コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Winn = ((WpfApp3.MainWindow)(target));
                return;

            case 2:

            #line 11 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.S1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.P1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:

            #line 16 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 6:
                this.S2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.P2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.S21 = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.WindowName = ((WpfApp3.MainWindow)(target));
                return;

            case 2:

            #line 14 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Open_CanExecute);

            #line default
            #line hidden

            #line 14 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Open_Executed);

            #line default
            #line hidden
                return;

            case 3:

            #line 15 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Play_CanExecute);

            #line default
            #line hidden

            #line 15 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Play_Executed);

            #line default
            #line hidden
                return;

            case 4:

            #line 16 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Pause_CanExecute);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Pause_Executed);

            #line default
            #line hidden
                return;

            case 5:

            #line 17 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.Stop_CanExecute);

            #line default
            #line hidden

            #line 17 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Stop_Executed);

            #line default
            #line hidden
                return;

            case 6:
                this.RowDisplay = ((System.Windows.Controls.Grid)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.RowDisplay.KeyDown += new System.Windows.Input.KeyEventHandler(this.KeyDownPause);

            #line default
            #line hidden

            #line 20 "..\..\MainWindow.xaml"
                this.RowDisplay.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Grid_MouseWheel);

            #line default
            #line hidden
                return;

            case 7:
                this.mePlayer = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 8:
                this.StackPanelButton = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 9:

            #line 41 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 42 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 11:
                this.StatusBarName = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 12:
                this.lblProgressStatus = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.sliProgress = ((System.Windows.Controls.Slider)(target));

            #line 60 "..\..\MainWindow.xaml"
                this.sliProgress.AddHandler(System.Windows.Controls.Primitives.Thumb.DragStartedEvent, new System.Windows.Controls.Primitives.DragStartedEventHandler(this.sliProgress_DragStarted));

            #line default
            #line hidden

            #line 60 "..\..\MainWindow.xaml"
                this.sliProgress.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.sliProgress_DragCompleted));

            #line default
            #line hidden

            #line 60 "..\..\MainWindow.xaml"
                this.sliProgress.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.sliProgress_ValueChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.pbVolume = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }