Пример #1
0
        public async Task <bool> RemoveAsync()
        {
            var canRemove = !HasChanges || await dialogService.ConfirmLocalizedAsync("Mindmap_Remove_Confirm");

            if (canRemove)
            {
                await documentFile.DeleteAsync();

                Close();
                Cleanup();
            }

            return(canRemove);
        }