ShowSelectedImage() public method

public ShowSelectedImage ( bool isSelected ) : void
isSelected bool
return void
Exemplo n.º 1
0
        void HandleMemorizationCellTapped(MemorizationCell cell, NSIndexPath indexPath)
        {
            selected [indexPath.Row] = !selected [indexPath.Row];

            var item       = data [indexPath.Row];
            var isSelected = selected [indexPath.Row];

            if (isSelected)
            {
                selectedVerses.Add(item);
            }
            else
            {
                selectedVerses.Remove(item);
            }

            cell.ShowSelectedImage(isSelected);
        }
Exemplo n.º 2
0
        void HandleMemorizationCellTapped(MemorizationCell cell, NSIndexPath indexPath)
        {
            if (Tour.Instance.Step == 5)
            {
                Tour.Instance.StepCompleted(5);
            }

            selected [indexPath.Row] = !selected [indexPath.Row];

            var item       = data [indexPath.Row];
            var isSelected = selected [indexPath.Row];

            if (isSelected)
            {
                selectedVerses.Add(item);
            }
            else
            {
                selectedVerses.Remove(item);
            }

            cell.ShowSelectedImage(isSelected);
        }
        void HandleMemorizationCellTapped(MemorizationCell cell, NSIndexPath indexPath)
        {
            selected [indexPath.Row] = !selected [indexPath.Row];

            var item = data [indexPath.Row];
            var isSelected = selected [indexPath.Row];
            if (isSelected) {
                selectedVerses.Add (item);
            } else {
                selectedVerses.Remove (item);
            }

            cell.ShowSelectedImage (isSelected);
        }
        void HandleMemorizationCellTapped(MemorizationCell cell, NSIndexPath indexPath)
        {
            if (Tour.Instance.Step == 5) {
                Tour.Instance.StepCompleted (5);
            }

            selected [indexPath.Row] = !selected [indexPath.Row];

            var item = data [indexPath.Row];
            var isSelected = selected [indexPath.Row];
            if (isSelected) {
                selectedVerses.Add (item);
            } else {
                selectedVerses.Remove (item);
            }

            cell.ShowSelectedImage (isSelected);
        }