예제 #1
0
        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);
            }
        }
예제 #2
0
 public async void OnAddEvent(SortableJSEvent e)
 {
     await OnAdd.InvokeAsync(new SortableEvent <TItem>(this, e));
 }
예제 #3
0
        private async Task AddValue()
        {
            await OnAdd.InvokeAsync(_currentValue);

            _currentValue = string.Empty;
        }