示例#1
0
        public PlayForm(PinballMachine pbm, SelectionForm selectionForm)
        {
            InitializeComponent();

            // Initialize game
            originalMachine = pbm;
            game = new Game(pbm, Environment.UserName);
            gameView = new GameView(game);
            gameContainer = new WPFContainer(gameView);
            game.GameOver += onGameOver;
            //this.MinimumSize = gameView.MinimumSize;
            gameView.MouseUp += onMouseUp;
            gameView.MouseMove += onMouseMove;
            // Fill entire space
            gameContainer.Dock = DockStyle.Fill;

            mainContainer.ContentPanel.Controls.Add(gameContainer);

            this.selectionForm = selectionForm;

            debugModeButton.Checked =  Properties.Settings.Default.Debug;
        }
示例#2
0
 public EditorForm(PinballMachine pbm, SelectionForm selectionForm)
     : this()
 {
     this.selectionForm = selectionForm;
     loadMachine(pbm);
 }
示例#3
0
 public EditorForm(SelectionForm selectionForm)
     : this()
 {
     this.selectionForm = selectionForm;
 }