示例#1
0
        public static async Task <bool> DeleteAsync(Authentication authentication, ITypeDescriptor descriptor)
        {
            var dialog = await DeleteTypeViewModel.CreateInstanceAsync(authentication, descriptor);

            if (dialog != null && await dialog.ShowDialogAsync() == true)
            {
                return(true);
            }
            return(false);
        }
示例#2
0
        public static async Task <bool> DeleteAsync(Authentication authentication, ITypeDescriptor descriptor)
        {
            var dialog = await DeleteTypeViewModel.CreateInstanceAsync(authentication, descriptor);

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