예제 #1
0
 private async Task PrivateColumnAsync(PileInfoCP pile)
 {
     if (ColumnClickedAsync == null)
     {
         return;
     }
     await ColumnClickedAsync.Invoke(PileList.IndexOf(pile));
 }
예제 #2
0
 private async Task PrivateDoubleAsync(PileInfoCP pile)
 {
     if (DoubleClickedAsync == null)
     {
         return;
     }
     await DoubleClickedAsync.Invoke(PileList.IndexOf(pile));
 }
예제 #3
0
 public virtual void LoadBoard()
 {
     if (NumberOfPiles == 0)
     {
         throw new BasicBlankException("Must have at least 1 pile");
     }
     NumberOfPiles.Times(x =>
     {
         PileInfoCP thisPile = new PileInfoCP();
         PileList.Add(thisPile);
     });
 }