private void method_1() { PlugInTree.smethod_3(this.list_0); ilog_0.Info("运行自动执行程序..."); FormSplashHelper.MsgWait("正在运行自动执行程序..."); foreach (object obj2 in PlugInTree.smethod_4("/Aisino/Auto", null)) { object[] objArray = obj2 as object[]; Interface2 interface2 = objArray[0] as Interface2; if (interface2 != null) { interface2.imethod_0(); Function function = objArray[1] as Function; if (function != null) { string str = "false"; if (function.Properties.TryGetValue("runOnce", out str) && string.Equals(str, bool.TrueString, StringComparison.OrdinalIgnoreCase)) { PropertyUtil.SetValue(function.Id + "HasRunOnce", "1", true); } } } else { ilog_0.ErrorFormat("自动执行功能类型错误:{0}", obj2.GetType().ToString()); } } }
public static void Load(AisinoTVW aisinoTVW_0, object object_0, string string_0, bool bool_0) { if (aisinoTVW_0.ImageList != null) { foreach (string str in ResourceUtil.dictionary_0.Keys) { if (ResourceUtil.GetBitmap(str) != null) { aisinoTVW_0.ImageList.Images.Add(str, ResourceUtil.GetBitmap(str)); } } } Class120 class2 = PlugInTree.smethod_5(string_0); if (class2 != null) { foreach (object obj2 in class2.method_2(object_0, bool_0)) { if (!bool_0 && (obj2 is TreeNodeCommand)) { aisinoTVW_0.Nodes.Add((TreeNodeCommand)obj2); } else if (bool_0 && (obj2 is TreeNodeCommand_All)) { aisinoTVW_0.Nodes.Add((TreeNodeCommand_All)obj2); } } } }
public static void SetFuctionEnable(string string_2, bool bool_0) { foreach (PlugIn @in in PlugInTree.smethod_0()) { Dictionary <string, Class135> .Enumerator enumerator = @in.method_4().GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <string, Class135> current = enumerator.Current; using (List <Aisino.Framework.Plugin.Core.Plugin.Function> .Enumerator enumerator3 = current.Value.method_0().GetEnumerator()) { Aisino.Framework.Plugin.Core.Plugin.Function function; while (enumerator3.MoveNext()) { function = enumerator3.Current; string id = function.Id; if (function.Id.Equals(string_2)) { goto Label_0074; } } continue; Label_0074: function.method_3(bool_0); break; } } } }
public static void RunFuction(string string_2) { foreach (PlugIn @in in PlugInTree.smethod_0()) { Dictionary <string, Class135> .Enumerator enumerator = @in.method_4().GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <string, Class135> current = enumerator.Current; using (List <Aisino.Framework.Plugin.Core.Plugin.Function> .Enumerator enumerator3 = current.Value.method_0().GetEnumerator()) { Aisino.Framework.Plugin.Core.Plugin.Function function; Interface2 interface2; while (enumerator3.MoveNext()) { function = enumerator3.Current; string id = function.Id; if (function.Id.Equals(string_2) && function.HasPermit) { goto Label_0080; } } continue; Label_0080: interface2 = (Interface2)function.PlugIn.method_9(function.Properties["class"]); interface2.imethod_0(); break; } } } }
public static Dictionary <string, string>[] GetPlugIn() { ArrayList list = new ArrayList(); foreach (PlugIn @in in PlugInTree.smethod_0()) { if ([email protected]("hidden") || [email protected]["hidden"].Equals("true")) { StringBuilder builder = new StringBuilder(); foreach (Class132 class2 in @in.method_2()) { builder.Append(class2.Assembly).Append(";"); } Dictionary <string, string> properties = new Dictionary <string, string>(); properties = @in.Properties; if (!properties.ContainsKey("dll")) { properties.Add("dll", builder.ToString(0, builder.Length - 1)); } if (!properties.ContainsKey("menifest")) { properties.Add("menifest", @in.method_0()); } list.Add(properties); } } return((Dictionary <string, string>[])list.ToArray(typeof(Dictionary <string, string>))); }
public static void Load(Aisino.Framework.Plugin.Core.Controls.OutlookBar.OutlookBar outlookBar_0, object object_0, string string_0, bool bool_0) { Class120 class2 = PlugInTree.smethod_5(string_0); if (class2 != null) { OutlookBarNodeCollection nodes = smethod_2(class2.method_2(object_0, bool_0)); for (int i = nodes.Count - 1; i >= 0; i--) { outlookBar_0.Nodes.Add(nodes[i]); } } }
public static void Load(NavigatePage navigatePage_0, object object_0, string string_0, bool bool_0) { Class120 class2 = PlugInTree.smethod_5(string_0); if (class2 != null) { NavigateMenuNode node = smethod_0(class2.method_2(object_0, bool_0)); if (((node != null) && (node.Node != null)) && (node.Node.Count > 0)) { navigatePage_0.Nodes = node; } } }
public static void Load(object object_0, ToolStripItemCollection toolStripItemCollection_0, string string_0) { Class120 class2 = PlugInTree.smethod_5(string_0); if (class2 != null) { foreach (object obj2 in class2.method_2(object_0, false)) { if (obj2 is ToolStripItem) { toolStripItemCollection_0.Add((ToolStripItem)obj2); } } } }
internal static void smethod_6(string string_2, bool bool_0) { foreach (PlugIn @in in PlugInTree.smethod_0()) { Dictionary <string, Class135> .Enumerator enumerator = @in.method_4().GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <string, Class135> current = enumerator.Current; foreach (Aisino.Framework.Plugin.Core.Plugin.Function function in current.Value.method_0()) { string id = function.Id; if (function.Id.Equals(string_2)) { function.method_1(bool_0); } } } } }