public override void Init() { checkTask = new UpdateCheckTask(); checkTask.CheckForUpdatesAsync(); game.Window.Keyboard.KeyDown += KeyDown; game.Window.Keyboard.KeyUp += KeyUp; Resize(); }
public override void Tick() { if( checkTask != null && !checkTask.Working ) { if( checkTask.Exception != null ) { updateCheckFailed = true; } else { lastStable = DateTime.Parse( checkTask.LatestStableDate, null, DateTimeStyles.AssumeUniversal ); lastDev = DateTime.Parse( checkTask.LatestDevDate, null, DateTimeStyles.AssumeUniversal ); validStable = Int32.Parse( checkTask.LatestStableSize ) > 50000; validDev = Int32.Parse( checkTask.LatestDevSize ) > 50000; } checkTask = null; game.MakeBackground(); Resize(); } }
public override void Tick() { if (checkTask != null && !checkTask.Working) { if (checkTask.Exception != null) { updateCheckFailed = true; } else { dev = checkTask.LatestDev; lastDev = dev.TimeBuilt; validDev = dev.DirectXSize > 50000 && dev.OpenGLSize > 50000; stable = checkTask.LatestStable; lastStable = stable.TimeBuilt; validStable = stable.DirectXSize > 50000 && stable.OpenGLSize > 50000; } checkTask = null; game.MakeBackground(); Resize(); } }
public override void Init() { checkTask = new UpdateCheckTask(); checkTask.CheckForUpdatesAsync(); Resize(); }