private void SimulateCache(TextSegment code) { MainCTRL.cacheList = CacheController.UpdateCache(code, MainCTRL.DataSGDT, MainCTRL.cacheList, IsMRU, MainCTRL.rxSG); SetCacheDT(MainCTRL.GenerateCacheDT()); cacheHitLbl.Text = CacheController.CacheHit.ToString(); cacheMissLbl.Text = CacheController.CacheMiss.ToString(); cacheHitRateLbl.Text = CacheController.CacheHitRate(); cacheMissRateLbl.Text = CacheController.CacheMissRate(); }