Пример #1
0
    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);
    }
Пример #2
0
 void SelectHull(HullNameListItem hull)
 {
     hullName = hull.GetModel <string>();
     hullPosition.SetEmptyShip(hullName);
 }