public static async Task <bool> KickAsync(Authentication authentication, IUserDescriptor descriptor) { var dialog = await KickViewModel.CreateInstanceAsync(authentication, descriptor); if (dialog != null && await dialog.ShowDialogAsync() == true) { return(true); } return(false); }
public Kick(IMainWindowTelnet telnet, string playerID = "") { InitializeComponent(); var model = new KickModel(telnet) { Name = playerID }; model.Ended += Model_Ended; var vm = new KickViewModel(model); DataContext = vm; }
public static async Task <bool> KickAsync(Authentication authentication, IUserDescriptor descriptor) { var dialog = await KickViewModel.CreateInstanceAsync(authentication, descriptor); return(dialog?.ShowDialog() == true); }