Ejemplo n.º 1
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MetalXmas2010;component/MainPage.xaml", System.UriKind.Relative));
     this.ScrollingBackgroundStoryboard = ((System.Windows.Media.Animation.Storyboard)(this.FindName("ScrollingBackgroundStoryboard")));
     this.HideDriedelPlayerAnimation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("HideDriedelPlayerAnimation")));
     this.HideComment1Animation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("HideComment1Animation")));
     this.ShowComment1Animation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("ShowComment1Animation")));
     this.HideComment2Animation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("HideComment2Animation")));
     this.ShowComment2Animation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("ShowComment2Animation")));
     this.ShowAllCommentsListAnimation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("ShowAllCommentsListAnimation")));
     this.HideAllCommentsListAnimation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("HideAllCommentsListAnimation")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.Background1 = ((System.Windows.Controls.Image)(this.FindName("Background1")));
     this.Background2 = ((System.Windows.Controls.Image)(this.FindName("Background2")));
     this.Comment1 = ((MetalXmas2010.CommentBlock)(this.FindName("Comment1")));
     this.Comment2 = ((MetalXmas2010.CommentBlock)(this.FindName("Comment2")));
     this.FullscreenMode = ((System.Windows.Controls.Button)(this.FindName("FullscreenMode")));
     this.AllCommentsList = ((System.Windows.Controls.Border)(this.FindName("AllCommentsList")));
     this.DriedelOpeningPlayer = ((MetalXmas2010.SongPlayer)(this.FindName("DriedelOpeningPlayer")));
 }
Ejemplo n.º 2
0
		private void PlayerStarted(SongPlayer startedPlayer)
		{
			foreach (var otherPlayer in _songPlayers.Except(new[] { startedPlayer }))
			{
				otherPlayer.Stop();
			}
		}