Exemple #1
0
 protected override void OnClick(EventArgs e)
 {
     if (ControlList.data.current_game == null)
     {
         MessageBox.Show("Please Select a Game");
     }
     else
     {
         GameEditor ge = new GameEditor(ControlList.data.current_game);
         ge.ShowDialog();
         ge.Dispose();
     }
 }
        private void OnEditGamesListClicked(object sender, RoutedEventArgs e)
        {
            if (this.Splitter.EmulationManager.IsEmulationStarted)
            {
                Controls.MessageBox.Show(
                    "You can not edit games, when emulation is running!",
                    ApplicationInfo.AppName,
                    MessageBoxButton.OK,
                    MessageBoxImage.Error);

                return;
            }

            var gameEditor = new GameEditor();

            gameEditor.Owner = this;
            gameEditor.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            gameEditor.ShowDialog();
        }