public MainForm() { InitializeComponent(); _programNameVersion = $"{Application.ProductName} {Application.ProductVersion}"; _stopwatchFrequency = Stopwatch.Frequency; _config = PluginfunConfig.Load(); _emulatedSystem = new EmulatedSystem(); _emulationInitialised = new NotifyValue <bool>(false); _emulationPaused = new NotifyValue <bool>(false); LoadDynamicComponents(); PrepareUserInterface(); PrepareDataBindings(); InitBitmaps(); Application.Idle += (s, ev) => { while (_emulationInitialised && !_emulationPaused && ApplicationStillIdle) { RunFrame(); } }; }
public ConfigForm(IEmulatedSystem emulatedSystem) { InitializeComponent(); Text = $"{emulatedSystem.Name} Configuration"; Configuration = emulatedSystem.Configuration.Copy(); PrepareUserInterface(); }
public void Load(IWorkspace workspace) { // grab a reference to the system this._system = workspace.RuntimeManager.System; // create a new WebDevice (default parameters) this._webDevice = new WebDevice(); // register the device with the controllers this._system.MemoryController.RegisterMemoryDevice(this._webDevice); }
public void Initialise(IEmulatedSystem system) { this._system = system; // load default data this._lastBorderColourIndex = -1; this._bootScreen = Resources.ResourceHelper.Boot; this._fontData = LoadFontFromImage(Resources.ResourceHelper.Font); this._paletteData = CreateDefaultPalette().ToArray(); // hook up rendering stuff this._workspace.RuntimeManager.UI.AddDisplayContentProvider(this); this._writeableBitmap = new WriteableBitmap(128, 96, 96, 96, PixelFormats.Bgr32, null); CompositionTarget.Rendering += RenderCallback; }
public void Initialise(IEmulatedSystem system) { this._system = system; this._workspace.RuntimeManager.UI.KeyEvent += UiOnKeyEvent; }
public void Initialise(IEmulatedSystem system) { this._system = system; this._workspace.RuntimeManager.UI.AddDisplayContentProvider(this); }
public void Initialise(IEmulatedSystem system) { this._system = system; }