private void ClickHandle(int index) { if (Disabled) { return; } Value = index + 1; ValueChanged.InvokeAsync(index + 1); OnChanged.InvokeAsync(index + 1); }
private async Task ChangeHandle(ChangeEventArgs e) { Checked = !Checked; if (Parent != null) { await Parent.CheckTagger(Checked, Value); } await CheckedChanged.InvokeAsync(Checked); await OnChanged.InvokeAsync(Checked); }
protected async Task HandleClickOfNode() { await OnNodeClicked.InvokeAsync(Node); if (Node.IsDisabled || !IsParentNode) { return; } Node.IsExpanded = !Node.IsExpanded; await OnChanged.InvokeAsync(); }
private async void OnFieldChanged(object?sender, FieldChangedEventArgs e) => await OnChanged.InvokeAsync();