コード例 #1
0
ファイル: XPressionWCF.cs プロジェクト: ESWorks/XPressionLink
 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);
     }
 }
コード例 #2
0
ファイル: XPressionWCF.cs プロジェクト: ESWorks/XPressionLink
 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);
     }
 }