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); }
private async Task PrivatePileClickedAsync(BasicPileInfo <D> pile) { await OnPileClickedAsync(PileList !.IndexOf(pile), pile); }