public async Task BanAsync()
        {
            var dialog = await BanViewModel.CreateInstanceAsync(this.authentication, this);

            if (dialog != null)
            {
                await dialog.ShowDialogAsync();
            }
        }
Exemple #2
0
        public static async Task <bool> BanAsync(Authentication authentication, IUserDescriptor descriptor)
        {
            var dialog = await BanViewModel.CreateInstanceAsync(authentication, descriptor);

            if (dialog != null && await dialog.ShowDialogAsync() == true)
            {
                return(true);
            }
            return(false);
        }
Exemple #3
0
        public static async Task <bool> BanAsync(Authentication authentication, IUserDescriptor descriptor)
        {
            var dialog = await BanViewModel.CreateInstanceAsync(authentication, descriptor);

            return(dialog?.ShowDialog() == true);
        }
Exemple #4
0
        public async Task BanAsync()
        {
            var dialog = await BanViewModel.CreateInstanceAsync(this.authentication, this);

            dialog?.ShowDialog();
        }