private void OkeyBT_Click(object sender, RoutedEventArgs e) { this.Hide(); var windowGame = new WindowGame(); windowGame.ThemeL.Text = SelectTehmeCB.SelectedValue.ToString(); windowGame.ShowDialog(); this.Show(); }
private void SelectTehmeCB_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { this.Hide(); var windowGame = new WindowGame(); windowGame.ThemeL.Text = SelectTehmeCB.SelectedValue.ToString(); windowGame.ShowDialog(); this.Show(); } }