Exemple #1
0
 public MainForm(Emulator emul8)
 {
     this.emul8 = emul8;
     regs = new Registers(emul8);
     regs.Hide();
     code = new Code(emul8);
     code.Hide();
     InitializeComponent();
 }
Exemple #2
0
        public Main(MainForm form, Emulator emul8)
        {
            graphics = new GraphicsDeviceManager(this);
            this.IsFixedTimeStep = true;
            Content.RootDirectory = "Content";

            mainForm = form;
            regForm = form.regs;
            code = form.code;
            this.drawSurface = form.getDrawSurface();

            graphics.PreparingDeviceSettings +=
            new EventHandler<PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings);
            System.Windows.Forms.Control.FromHandle((this.Window.Handle)).VisibleChanged +=
            new EventHandler(Game1_VisibleChanged);

            this.emul8 = emul8;
        }