Esempio n. 1
0
 private void ClickHandle(int index)
 {
     if (Disabled)
     {
         return;
     }
     Value = index + 1;
     ValueChanged.InvokeAsync(index + 1);
     OnChanged.InvokeAsync(index + 1);
 }
Esempio n. 2
0
        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();
        }
Esempio n. 4
0
 private async void OnFieldChanged(object?sender, FieldChangedEventArgs e) => await OnChanged.InvokeAsync();