private void ActorsListBox_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { character = (CharacterFilter)actorsListBox.SelectedItem; CharacterDescriptionWindow characterDescriptionWindow = new CharacterDescriptionWindow(character.Name, actors); characterDescriptionWindow.Show(); }
private void ActorsListBox_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { character = (CharacterFilter)actorsListBox.SelectedItem; CharacterDescriptionWindow characterDescriptionWindow = new CharacterDescriptionWindow(character.Name, actors); characterDescriptionWindow.Show(); } }