private void MyEllipseScatterViewItemHover(object sender, RoutedIdentifiedHoverEventArgs e)
 {
     if (e.RoutedEvent == IdentifiedEvents.PreviewIdentifiedHoverOverEvent)
     {
         AddIdentityHovering(e.ClientId);
     }
     else if (e.RoutedEvent == IdentifiedEvents.PreviewIdentifiedHoverOutEvent)
         RemoveIdentityHovering(e.ClientId);
 }
 private void Ellipse_HoverOver(object sender, RoutedIdentifiedHoverEventArgs e)
 {
     CenterButtonAnimations();
     if (Session.Instance.GlobalState == Restaurant.Model.States.Ordering)
     {
         if (Session.Instance.GetPerson(e.ClientId).State == Restaurant.Model.States.Ordering)
         {
             e.ClientId.PersonalizedView.Add(new ConfirmOrderPersonalView());
         }
     }
     else if (Session.Instance.GlobalState == Restaurant.Model.States.Eating)
     {
         if (Session.Instance.GetPerson(e.ClientId).State == Restaurant.Model.States.Eating)
         {
             e.ClientId.PersonalizedView.Add(new GoToPaymentPersonalView());
         }
     }
     else if (Session.Instance.GlobalState == Restaurant.Model.States.Checkout)
     {
         Person p = Session.Instance.GetPerson(e.ClientId);
         if (p.State == Restaurant.Model.States.Checkout && p.PaymentAmount > 0)
         {
             e.ClientId.PersonalizedView.Add(new ConfirmPaymentPersonalView(p));
         }
     }
 }
 private void Ellipse_HoverOut(object sender, RoutedIdentifiedHoverEventArgs e)
 {
     CenterButtonAnimations();
     e.ClientId.PersonalizedView.Remove();
 }
 private void onIdentifiedHoverOver(object sender, RoutedIdentifiedHoverEventArgs e)
 {
     e.Source = this;
     _hoveringOverCounter++;
     if (_hoveringOverCounter > 1)
     {
         e.Handled = true;
     }
 }
 private void onIdentifiedHoverMove(object sender, RoutedIdentifiedHoverEventArgs e)
 {
     //Debug.WriteLine(string.Format("HoverMove: Source: {0}. Org. Source: {1}", e.Source, e.OriginalSource ));
     //e.Source = this;
     e.Source = this;
 }
 private void Transfer_HoverOut(object sender, RoutedIdentifiedHoverEventArgs e)
 {
     if (!this.Owner.ClientId.Equals(e.ClientId))
     {
         //TransferButton.IsEnabled = false;
     }
 }
 private void Transfer_HoverOver(object sender, RoutedIdentifiedHoverEventArgs e)
 {
     if (!this.Owner.ClientId.Equals(e.ClientId) && OrderLinesCount > 0)
     {
         //TransferButton.IsEnabled = true;
     }
 }
 private void OrderOne_HoverOver(object sender, RoutedIdentifiedHoverEventArgs e)
 {
     //((IdentifiedSurfaceButton)e.Source).IsEnabled = true;
 }
 private void CancelOne_HoverOut(object sender, RoutedIdentifiedHoverEventArgs e)
 {
     // ((IdentifiedSurfaceButton)e.Source).IsEnabled = false;
 }
 private void BlockedButton_HoverOver(object sender, RoutedIdentifiedHoverEventArgs e)
 {
     //mySecureButton.IsEnabled = true;
 }