Beispiel #1
0
 protected override async Task PrivateBoardSingleClickedAsync()
 {
     if (SetClickedAsync == null)
     {
         return;
     }
     await SetClickedAsync.Invoke(this);
 }
Beispiel #2
0
 private async Task ThisSet_ObjectClickedAsync(SetInfo <SU, CO, RU, T> thisSet, int deck, int section)
 {
     if (SetClickedAsync == null)
     {
         return;
     }
     SE tempSet = (SE)thisSet;
     await SetClickedAsync.Invoke(SetList.IndexOf(tempSet) + 1, section, deck);
 }
Beispiel #3
0
 private async Task ThisSet_SetClickedAsync(RummyHandObservable <S, C, R> thisSet)
 {
     if (SetClickedAsync == null)
     {
         return;
     }
     if (thisSet.DidClickObject == true)
     {
         thisSet.DidClickObject = false;
         return;
     }
     await SetClickedAsync.Invoke(SetList.IndexOf(thisSet) + 1); //wanted to make it one based.
 }
        protected override async Task PrivateBoardSingleClickedAsync()
        {
            if (SetClickedAsync == null)
            {
                return;
            }
            if (IsRun() == true)
            {
                return;
            }
            if (CanClickMainBoard() == false)
            {
                return;
            }
            int thisSection;

            thisSection = SectionClicked;
            if (CanExpandRuns == true)
            {
                thisSection = 1; // this means since it does not matter, will return 1.
            }
            SectionClicked = 0;  // reset back to 0
            await SetClickedAsync.Invoke(this, thisSection);
        }