public void Open()
 {
     MemoryCardOpened?.Invoke(this, null);
     if (IsValidator == false)
     {
         if (cardOpen == false)
         {
             FlipOpen.Begin();
             cardOpen = true;
         }
         else
         {
             FlipClose.Begin();
             cardOpen = false;
         }
     }
 }
Пример #2
0
        private void CardTapped(object sender, TappedRoutedEventArgs e)
        {
            if (_isOpen)
            {
                FlipOpen.Begin();
                _isOpen = !_isOpen;
            }
            else
            {
                FlipClose.Begin();
                _isOpen = !_isOpen;
            }


            //if (Tap != null)
            //{
            //    Tap(this, e);
            //}
        }