public override void OnSlide(params object[] args) { links = (Forest <SystemLink>)screenSlider.sharedData["system"]; keys = (Dictionary <string, int[]>)screenSlider.sharedData["keys"]; hullName = (string)screenSlider.sharedData["hullName"]; free = links.ByElements().ToList(); tree.Clear(); tree.SetTree(links.BuildForest(l => new TreeNode <object>(l))); ship.SetEmptyShip(hullName); }
void SelectHull(HullNameListItem hull) { hullName = hull.GetModel <string>(); hullPosition.SetEmptyShip(hullName); }