public async Task BanAsync() { var dialog = await BanViewModel.CreateInstanceAsync(this.authentication, this); if (dialog != null) { await dialog.ShowDialogAsync(); } }
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); }
public static async Task <bool> BanAsync(Authentication authentication, IUserDescriptor descriptor) { var dialog = await BanViewModel.CreateInstanceAsync(authentication, descriptor); return(dialog?.ShowDialog() == true); }
public async Task BanAsync() { var dialog = await BanViewModel.CreateInstanceAsync(this.authentication, this); dialog?.ShowDialog(); }