Пример #1
0
        private static void OnAlbumArtImageChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            AlbumArtDisplay AlbumArtDisplay = o as AlbumArtDisplay;

            if (AlbumArtDisplay != null)
            {
                AlbumArtDisplay.OnAlbumArtImageChanged((ImageSource)e.OldValue, (ImageSource)e.NewValue);
            }
        }
Пример #2
0
        private static object OnCoerceAlbumArtImage(DependencyObject o, object value)
        {
            AlbumArtDisplay AlbumArtDisplay = o as AlbumArtDisplay;

            if (AlbumArtDisplay != null)
            {
                return(AlbumArtDisplay.OnCoerceAlbumArtImage((ImageSource)value));
            }
            else
            {
                return(value);
            }
        }
Пример #3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.OpenFileMenuItem = ((System.Windows.Controls.MenuItem)(target));
     
     #line 31 "..\..\..\MainWindow.xaml"
     this.OpenFileMenuItem.Click += new System.Windows.RoutedEventHandler(this.OpenFileMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this.CloseMenuItem = ((System.Windows.Controls.MenuItem)(target));
     
     #line 35 "..\..\..\MainWindow.xaml"
     this.CloseMenuItem.Click += new System.Windows.RoutedEventHandler(this.CloseMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.DefaultThemeMenuItem = ((System.Windows.Controls.MenuItem)(target));
     
     #line 41 "..\..\..\MainWindow.xaml"
     this.DefaultThemeMenuItem.Checked += new System.Windows.RoutedEventHandler(this.DefaultThemeMenuItem_Checked);
     
     #line default
     #line hidden
     return;
     case 4:
     this.ExpressionDarkMenuItem = ((System.Windows.Controls.MenuItem)(target));
     
     #line 45 "..\..\..\MainWindow.xaml"
     this.ExpressionDarkMenuItem.Checked += new System.Windows.RoutedEventHandler(this.ExpressionDarkMenuItem_Checked);
     
     #line default
     #line hidden
     return;
     case 5:
     this.ExpressionLightMenuItem = ((System.Windows.Controls.MenuItem)(target));
     
     #line 49 "..\..\..\MainWindow.xaml"
     this.ExpressionLightMenuItem.Checked += new System.Windows.RoutedEventHandler(this.ExpressionLightMenuItem_Checked);
     
     #line default
     #line hidden
     return;
     case 6:
     this.clockDisplay = ((WPFSoundVisualizationLib.DigitalClock)(target));
     return;
     case 7:
     this.albumArtPanel = ((WPFSoundVisualizationLib.AlbumArtDisplay)(target));
     return;
     case 8:
     this.spectrumAnalyzer = ((WPFSoundVisualizationLib.SpectrumAnalyzer)(target));
     return;
     case 9:
     this.waveformTimeline = ((WPFSoundVisualizationLib.WaveformTimeline)(target));
     return;
     case 10:
     this.repeatStartTimeEdit = ((WPFSoundVisualizationLib.TimeEditor)(target));
     return;
     case 11:
     this.repeatStopTimeEdit = ((WPFSoundVisualizationLib.TimeEditor)(target));
     return;
     case 12:
     this.FileText = ((System.Windows.Controls.TextBox)(target));
     return;
     case 13:
     this.BrowseButton = ((System.Windows.Controls.Button)(target));
     
     #line 118 "..\..\..\MainWindow.xaml"
     this.BrowseButton.Click += new System.Windows.RoutedEventHandler(this.BrowseButton_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.PlayButton = ((System.Windows.Controls.Button)(target));
     
     #line 124 "..\..\..\MainWindow.xaml"
     this.PlayButton.Click += new System.Windows.RoutedEventHandler(this.PlayButton_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.PauseButton = ((System.Windows.Controls.Button)(target));
     
     #line 132 "..\..\..\MainWindow.xaml"
     this.PauseButton.Click += new System.Windows.RoutedEventHandler(this.PauseButton_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.StopButton = ((System.Windows.Controls.Button)(target));
     
     #line 140 "..\..\..\MainWindow.xaml"
     this.StopButton.Click += new System.Windows.RoutedEventHandler(this.StopButton_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Пример #4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.OpenFileMenuItem1 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 33 "..\..\..\MainWindow.xaml"
     this.OpenFileMenuItem1.Click += new System.Windows.RoutedEventHandler(this.OpenFileMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this.CloseMenuItem1 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 37 "..\..\..\MainWindow.xaml"
     this.CloseMenuItem1.Click += new System.Windows.RoutedEventHandler(this.CloseMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.DefaultThemeMenuItem1 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 43 "..\..\..\MainWindow.xaml"
     this.DefaultThemeMenuItem1.Checked += new System.Windows.RoutedEventHandler(this.DefaultThemeMenuItem_Checked);
     
     #line default
     #line hidden
     return;
     case 4:
     this.ExpressionDarkMenuItem1 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 47 "..\..\..\MainWindow.xaml"
     this.ExpressionDarkMenuItem1.Checked += new System.Windows.RoutedEventHandler(this.ExpressionDarkMenuItem_Checked);
     
     #line default
     #line hidden
     return;
     case 5:
     this.ExpressionLightMenuItem1 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 51 "..\..\..\MainWindow.xaml"
     this.ExpressionLightMenuItem1.Checked += new System.Windows.RoutedEventHandler(this.ExpressionLightMenuItem_Checked);
     
     #line default
     #line hidden
     return;
     case 6:
     this.clockDisplay1 = ((WPFSoundVisualizationLib.DigitalClock)(target));
     return;
     case 7:
     this.albumArtPanel1 = ((WPFSoundVisualizationLib.AlbumArtDisplay)(target));
     return;
     case 8:
     this.spectrumAnalyzer1 = ((WPFSoundVisualizationLib.SpectrumAnalyzer)(target));
     return;
     case 9:
     this.equalizer1 = ((WPFSoundVisualizationLib.Equalizer)(target));
     return;
     case 10:
     this.waveformTimeline1 = ((WPFSoundVisualizationLib.WaveformTimeline)(target));
     return;
     case 11:
     this.repeatStartTimeEdit1 = ((WPFSoundVisualizationLib.TimeEditor)(target));
     return;
     case 12:
     this.repeatStopTimeEdit1 = ((WPFSoundVisualizationLib.TimeEditor)(target));
     return;
     case 13:
     this.FileText1 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.BrowseButton1 = ((System.Windows.Controls.Button)(target));
     
     #line 120 "..\..\..\MainWindow.xaml"
     this.BrowseButton1.Click += new System.Windows.RoutedEventHandler(this.BrowseButton_Click1);
     
     #line default
     #line hidden
     return;
     case 15:
     this.PlayButton1 = ((System.Windows.Controls.Button)(target));
     
     #line 126 "..\..\..\MainWindow.xaml"
     this.PlayButton1.Click += new System.Windows.RoutedEventHandler(this.PlayButton_Click1);
     
     #line default
     #line hidden
     return;
     case 16:
     this.PauseButton1 = ((System.Windows.Controls.Button)(target));
     
     #line 134 "..\..\..\MainWindow.xaml"
     this.PauseButton1.Click += new System.Windows.RoutedEventHandler(this.PauseButton_Click1);
     
     #line default
     #line hidden
     return;
     case 17:
     this.StopButton1 = ((System.Windows.Controls.Button)(target));
     
     #line 142 "..\..\..\MainWindow.xaml"
     this.StopButton1.Click += new System.Windows.RoutedEventHandler(this.StopButton_Click1);
     
     #line default
     #line hidden
     return;
     case 18:
     this.OpenFileMenuItem = ((System.Windows.Controls.MenuItem)(target));
     
     #line 166 "..\..\..\MainWindow.xaml"
     this.OpenFileMenuItem.Click += new System.Windows.RoutedEventHandler(this.OpenFileMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.CloseMenuItem = ((System.Windows.Controls.MenuItem)(target));
     
     #line 170 "..\..\..\MainWindow.xaml"
     this.CloseMenuItem.Click += new System.Windows.RoutedEventHandler(this.CloseMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.DefaultThemeMenuItem = ((System.Windows.Controls.MenuItem)(target));
     
     #line 176 "..\..\..\MainWindow.xaml"
     this.DefaultThemeMenuItem.Checked += new System.Windows.RoutedEventHandler(this.DefaultThemeMenuItem_Checked);
     
     #line default
     #line hidden
     return;
     case 21:
     this.ExpressionDarkMenuItem = ((System.Windows.Controls.MenuItem)(target));
     
     #line 180 "..\..\..\MainWindow.xaml"
     this.ExpressionDarkMenuItem.Checked += new System.Windows.RoutedEventHandler(this.ExpressionDarkMenuItem_Checked);
     
     #line default
     #line hidden
     return;
     case 22:
     this.ExpressionLightMenuItem = ((System.Windows.Controls.MenuItem)(target));
     
     #line 184 "..\..\..\MainWindow.xaml"
     this.ExpressionLightMenuItem.Checked += new System.Windows.RoutedEventHandler(this.ExpressionLightMenuItem_Checked);
     
     #line default
     #line hidden
     return;
     case 23:
     this.clockDisplay = ((WPFSoundVisualizationLib.DigitalClock)(target));
     return;
     case 24:
     this.albumArtPanel = ((WPFSoundVisualizationLib.AlbumArtDisplay)(target));
     return;
     case 25:
     this.spectrumAnalyzer = ((WPFSoundVisualizationLib.SpectrumAnalyzer)(target));
     return;
     case 26:
     this.equalizer = ((WPFSoundVisualizationLib.Equalizer)(target));
     return;
     case 27:
     this.waveformTimeline = ((WPFSoundVisualizationLib.WaveformTimeline)(target));
     return;
     case 28:
     this.repeatStartTimeEdit = ((WPFSoundVisualizationLib.TimeEditor)(target));
     return;
     case 29:
     this.repeatStopTimeEdit = ((WPFSoundVisualizationLib.TimeEditor)(target));
     return;
     case 30:
     this.FileText = ((System.Windows.Controls.TextBox)(target));
     return;
     case 31:
     this.BrowseButton = ((System.Windows.Controls.Button)(target));
     
     #line 253 "..\..\..\MainWindow.xaml"
     this.BrowseButton.Click += new System.Windows.RoutedEventHandler(this.BrowseButton_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.PlayButton = ((System.Windows.Controls.Button)(target));
     
     #line 259 "..\..\..\MainWindow.xaml"
     this.PlayButton.Click += new System.Windows.RoutedEventHandler(this.PlayButton_Click);
     
     #line default
     #line hidden
     return;
     case 33:
     this.PauseButton = ((System.Windows.Controls.Button)(target));
     
     #line 267 "..\..\..\MainWindow.xaml"
     this.PauseButton.Click += new System.Windows.RoutedEventHandler(this.PauseButton_Click);
     
     #line default
     #line hidden
     return;
     case 34:
     this.StopButton = ((System.Windows.Controls.Button)(target));
     
     #line 275 "..\..\..\MainWindow.xaml"
     this.StopButton.Click += new System.Windows.RoutedEventHandler(this.StopButton_Click);
     
     #line default
     #line hidden
     return;
     case 35:
     this.crossFeeder = ((System.Windows.Controls.Slider)(target));
     
     #line 281 "..\..\..\MainWindow.xaml"
     this.crossFeeder.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.crossFeeder_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 36:
     this.txt_BPM = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }