private void OnIconRender(int index, GObject item)
    {
        ComIcon icon = item.asCom.GetChild("n0") as ComIcon;
        Dictionary <string, object> dc = (Dictionary <string, object>)data [index];
        Dictionary <string, object> dd = new Dictionary <string, object> ();
        Dictionary <string, object> ds = new Dictionary <string, object> ();
        bool isCar  = false;
        bool isShip = false;

        foreach (string v in dc.Keys)
        {
            if (v.ToString().StartsWith("C"))
            {
                isCar        = true;
                dd ["name"]  = v.ToString();
                dd ["value"] = dc [v.ToString()];
            }

            //			icon.SetData (v, dc [v], 1);
        }
        if (isCar)
        {
            icon.SetData(dd["name"].ToString(), dd["value"]);
        }
        else
        {
            icon.SetData(dc);
        }
    }
Beispiel #2
0
    private void Item_Render(int index, GObject go)
    {
        ComIcon vi = go.asCom.GetChild("n0") as ComIcon;

        vi.SetData(ld [index]);
    }