Esempio n. 1
0
 private void PauseButton_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (PauseButton.Opacity == 1)
     {
         PauseButton.BeginAnimation(Grid.OpacityProperty, DownAnimation);
         PlayButton.BeginAnimation(Grid.OpacityProperty, UpAnimation);
         Connection.SendMessage(new MessageClass(Connection.ID, UserID, Commands.SetVideo, ID, false.ToString()));
     }
     else if (PauseButton.Opacity == 0)
     {
         PauseButton.BeginAnimation(Grid.OpacityProperty, UpAnimation);
         PlayButton.BeginAnimation(Grid.OpacityProperty, DownAnimation);
         Connection.SendMessage(new MessageClass(Connection.ID, UserID, Commands.SetVideo, ID, true.ToString()));
     }
 }