private async void Button_Click(object sender, RoutedEventArgs e) { var res = await ComicProcessor.CallRestLogin(txtRun.Text, txtPass.Password); if (res == "Correcto") { Administrador _mostrar = new Administrador(); this.Close(); _mostrar.ShowDialog(); } else { await this.ShowMessageAsync("Error", "El usuario no es valido"); } }