Esempio n. 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);
        }
Esempio n. 2
0
        public static async Task <bool> DeleteAsync(Authentication authentication, ITypeDescriptor descriptor)
        {
            var dialog = await DeleteTypeViewModel.CreateInstanceAsync(authentication, descriptor);

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