Esempio n. 1
0
        protected virtual void InitM_Base(string name="", C_Base cpu=null
					, Mem_Base prgMem = null, Mem_Base wrkMem = null
					, Vid_Base vid=null, Disp_Base disp=null)
        {
            _settings = settings.main;
            _pathSettings = _settings.paths;

            meta = new metaData(name);
            _timer = new System.Timers.Timer();
            _timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed);

            m_cpu = cpu;
            _programMemory = prgMem;
            _workingMemory = wrkMem;
            m_video = vid;
            m_display = disp;

            //ThreadStart ts = new ThreadStart(
            interval = 0;
            _threadStart = new ThreadStart(this.Runner);

            rewindStates = new state[rewindMax];
        }
Esempio n. 2
0
        protected virtual void InitTheMainControl()
        {
            InitializeComponent();
            inputHandler ih = settings.main.inputHandler;
            BackColor = Color.Black;
            //pnl_display.GotFocus += new EventHandler(pnlDisplay_GotFocus);
            _settings = settings.main;
            _systemSettings = _settings.system;
            _systemSettings.focusControl = this;

            ih.altHandler = this;
            KeyDown += new KeyEventHandler(ih.HandleKeyDown);
            pnl_display.KeyDown += new KeyEventHandler(ih.HandleKeyDown);
            KeyUp += new KeyEventHandler(ih.HandleKeyUp);
            pnl_display.KeyUp += new KeyEventHandler(ih.HandleKeyUp);

            ResetProperties();
        }