private void OptionsButtonClick(object sender, RoutedEventArgs e) { this.optionsWindow = new OptionsWindow(this); this.optionsWindow.Show(); OptionsWindowOpen = true; OptionsButton.IsEnabled = false; }