예제 #1
0
        private void OnMarkAs(bool passed)
        {
            if (RecentCards != null && RecentCards.Any())
            {
                var currentItem = RecentCards.First();
                currentItem.RecallOk = passed;

                currentItem.Refresh();
            }
        }
예제 #2
0
        private void OnMarkFlip()
        {
            if (RecentCards != null && RecentCards.Any())
            {
                var currentItem = RecentCards.First();

                if (currentItem.RecallOk.HasValue)
                {
                    var old = currentItem.RecallOk.Value;
                    currentItem.RecallOk = !old;
                }
                else
                {
                    currentItem.RecallOk = true;
                }

                currentItem.Refresh();
            }
        }