예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\MainWindow.xaml"
                ((WpfAppAudio.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.Adv = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 22 "..\..\MainWindow.xaml"
                this.clickSound.Click += new System.Windows.RoutedEventHandler(this.clickSound_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.SoundPlayer1 = ((System.Windows.Controls.SoundPlayerAction)(target));
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:
                this.SoundPlayer2 = ((System.Windows.Controls.SoundPlayerAction)(target));
                return;
            }
            this._contentLoaded = true;
        }
        // Token: 0x0600564F RID: 22095 RVA: 0x0017E5C0 File Offset: 0x0017C7C0
        private static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SoundPlayerAction soundPlayerAction = (SoundPlayerAction)d;

            soundPlayerAction.OnSourceChangedHelper((Uri)e.NewValue);
        }