private async Task PrivatePileClickedAsync() { if (PileClickedAsync == null) { return; } await PileClickedAsync.Invoke(); }
private async Task PrivateClickAsync(BasicPileInfo <D> pile) { if (PileClickedAsync == null) { return; } await PileClickedAsync.Invoke(PileList.IndexOf(pile)); }
private async Task PrivatePileAsync(BasicPileInfo <FlinchCardInformation> card) { if (PileClickedAsync == null) { return; } await PileClickedAsync.Invoke(PileList.IndexOf(card)); }
public ControlCommand?ExtraCommand; //will not set this. if set, can enable too. this will allow this to be notified when enable change. protected virtual async Task OnPileClickedAsync(int index, BasicPileInfo <D> thisPile) { if (thisPile.IsEnabled == false) { return; //since tablets sometimes has the problem, this provides a way to catch so it still won't run after all. } if (PileClickedAsync == null) { return; } await PileClickedAsync.Invoke(index, thisPile); }