public bool SetTLWidgetIndex(string name, int value) { try { xpBaseWidget baseWidget; if (Immutable.Engine._engine.GetWidgetByName(name, out baseWidget)) { xpTextListWidget clock = (xpTextListWidget)baseWidget; clock.ItemIndex = value; return(true); } else { return(false); } } catch { Console.WriteLine("Can't find widget '" + name + "' in graphics xpression engine."); return(false); } }
public bool SetTLWidgetList(string name, string[] value) { try { xpBaseWidget baseWidget; if (Immutable.Engine._engine.GetWidgetByName(name, out baseWidget)) { xpTextListWidget clock = (xpTextListWidget)baseWidget; clock.ClearStrings(); value.Select(T => clock.AddString(T)); return(true); } else { return(false); } } catch { Console.WriteLine("Can't find widget '" + name + "' in graphics xpression engine."); return(false); } }