Пример #1
0
        public static async Task <bool> RenameAsync(Authentication authentication, IUserCategoryDescriptor descriptor)
        {
            var dialog = await RenameCategoryViewModel.CreateInstanceAsync(authentication, descriptor);

            if (dialog != null && await dialog.ShowDialogAsync() == true)
            {
                return(true);
            }
            return(false);
        }
Пример #2
0
        public static async Task <bool> RenameAsync(Authentication authentication, ITableCategoryDescriptor descriptor)
        {
            var comment = await LockAsync(authentication, descriptor, nameof(ITableCategory.RenameAsync));

            if (comment == null)
            {
                return(false);
            }
            var dialog = await RenameCategoryViewModel.CreateInstanceAsync(authentication, descriptor);

            var dialogResult = await ShowDialogAsync(dialog);

            await UnlockAsync(authentication, descriptor, comment);

            return(dialogResult);
        }
Пример #3
0
        public static async Task <bool> RenameAsync(Authentication authentication, IUserCategoryDescriptor descriptor)
        {
            var dialog = await RenameCategoryViewModel.CreateInstanceAsync(authentication, descriptor);

            return(dialog?.ShowDialog() == true);
        }