private async void SavePreset() { using (LayoutService.Working("Saving...")) { await PresetManager.AddPresetAsync(Preset); JobManager.InitialiseJobs(Preset, ApplicationService.AppStoppingCancellationToken); if (OnAdd.HasDelegate) { await OnAdd.InvokeAsync(); } LayoutService.RaiseChange(); await InvokeAsync(StateHasChanged); } }
public async void OnAddEvent(SortableJSEvent e) { await OnAdd.InvokeAsync(new SortableEvent <TItem>(this, e)); }
private async Task AddValue() { await OnAdd.InvokeAsync(_currentValue); _currentValue = string.Empty; }