/// <summary> /// Refresh/update the view with the provided genome. /// </summary> public override void RefreshView(object genome) { _box = null; _neatGenome = genome as NeatGenome; if (null == _neatGenome) { return; } // Decode genome. _box = _genomeDecoder.Decode(_neatGenome); // Generate new test case. _testCaseField.InitTestCase(_largeBoxTestCase++ % 3); // Paint test case and network response. PaintView(_box); }