Ejemplo n.º 1
0
 internal static void smethod_5(ToolStripItem object_0, Aisino.Framework.Plugin.Core.Plugin.Function function_0)
 {
     if (function_0 != null)
     {
         if (function_0.Properties.ContainsKey("icon"))
         {
             object_0.Image = ResourceUtil.GetBitmap(function_0.Properties["icon"]);
         }
         if (function_0.Properties.ContainsKey("layout"))
         {
             object_0.TextImageRelation = smethod_4(function_0.Properties["layout"]);
         }
         if (function_0.Properties.ContainsKey("tip"))
         {
             object_0.ToolTipText = StringUtil.Parse(function_0.Properties["tip"]);
         }
         if (function_0.Properties.ContainsKey("label"))
         {
             object_0.Text = StringUtil.Parse(function_0.Properties["label"]);
         }
         if ((object_0 is ToolStripMenuItem) && function_0.Properties.ContainsKey("shortcut"))
         {
             ((ToolStripMenuItem)object_0).ShortcutKeys = smethod_3(function_0.Properties["shortcut"]);
         }
     }
 }
Ejemplo n.º 2
0
 public static void SetText(TreeNodeCommand treeNodeCommand_0, Aisino.Framework.Plugin.Core.Plugin.Function function_0)
 {
     if (function_0 != null)
     {
         if (function_0.Properties.ContainsKey("tip"))
         {
             treeNodeCommand_0.ToolTipText = StringUtil.Parse(function_0.Properties["tip"]);
         }
         if (function_0.Properties.ContainsKey("label"))
         {
             treeNodeCommand_0.Text = StringUtil.Parse(function_0.Properties["label"]);
         }
     }
 }