private async Task ExecuteSaveDraft()
        {
            if (!CanSave())
            {
                return;
            }
            StartBeingBusy($"Saving new ‹{TypeDescription}› record ...");

            SaveNewRecord(Draft);
            await SaveNewRecordAsync(Draft);

            NewRecordSaved?.Invoke(this, Draft);

            AfterSaveCompleted(Draft);
        }
예제 #2
0
        private async Task ExecuteSaveDraft()
        {
            if (!CanSave())
            {
                return;
            }
            StartBeingBusy($"Saving new ‹{TypeDescription}› record ...");

            SaveNewRecord(Draft);
            await SaveNewRecordAsync(Draft);

            NewRecordSaved?.Invoke(this, Draft);
            SaveCompleted?.Invoke(this, EventArgs.Empty);

            StopBeingBusy();
            ReturnDialogResult(true);
        }