// Token: 0x06000509 RID: 1289 RVA: 0x000055BB File Offset: 0x000037BB public Struct42(string string_0) { this.class58_0 = new Class58 { class12_0 = Class120.smethod_0(string_0) }; }
private void method_26(Class120 class120_1) { if ((class120_1 != null) && this.method_34(class120_1, JsonSchemaType.String)) { this.method_18(class120_1); string str = this.jsonReader_0.Object_0.ToString(); if (class120_1.Nullable_1.HasValue) { if (str.Length > class120_1.Nullable_1) { this.method_16("String '{0}' exceeds maximum length of {1}.".smethod_1(CultureInfo.InvariantCulture, str, class120_1.Nullable_1), class120_1); } } if (class120_1.Nullable_0.HasValue) { if (str.Length < class120_1.Nullable_0) { this.method_16("String '{0}' is less than minimum length of {1}.".smethod_1(CultureInfo.InvariantCulture, str, class120_1.Nullable_0), class120_1); } } if (class120_1.IList_0 != null) { foreach (string str2 in class120_1.IList_0) { if (!Regex.IsMatch(str, str2)) { this.method_16("String '{0}' does not match regex pattern '{1}'.".smethod_1(CultureInfo.InvariantCulture, str, str2), class120_1); } } } } }
private void method_25(Class120 class120_1) { if ((class120_1 != null) && this.method_34(class120_1, JsonSchemaType.Boolean)) { this.method_18(class120_1); } }
private bool method_31(Class120 class120_1, string string_0) { if ((class120_1.IDictionary_0 != null) && class120_1.IDictionary_0.ContainsKey(string_0)) { return(true); } if (class120_1.IDictionary_1 != null) { bool flag; using (IEnumerator <string> enumerator = class120_1.IDictionary_1.Keys.GetEnumerator()) { while (enumerator.MoveNext()) { string current = enumerator.Current; if (Regex.IsMatch(string_0, current)) { goto Label_004E; } } goto Label_005E; Label_004E: flag = true; } return(flag); } Label_005E: return(false); }
private void method_16(string string_0, Class120 class120_1) { IJsonLineInfo info = this; string message = info.HasLineInfo() ? (string_0 + " Line {0}, position {1}.".smethod_1(CultureInfo.InvariantCulture, info.LineNumber, info.LinePosition)) : string_0; this.method_17(new JsonSchemaException(message, null, this.String_0, info.LineNumber, info.LinePosition)); }
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 bool smethod_5(string string_1) { bool flag = false; Class120.enum11_0 = (Class120.Enum11) 0; bool result; if (string_1 == null || string_1.Length == 0) { result = flag; } else { Class120.enum11_0 = Class120.smethod_4(string_1); if (Class120.enum11_0 == (Class120.Enum11) 0) { result = flag; } else { flag = true; RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\ZAR\\X", true); if (registryKey == null) { registryKey = Registry.CurrentUser.CreateSubKey("SOFTWARE\\ZAR\\X"); } registryKey.SetValue("kkk", string_1); result = flag; } } return(result); }
// Token: 0x06002BDE RID: 11230 RVA: 0x000AA630 File Offset: 0x000A8830 public byte[] method_0() { byte[] result; using (MemoryStream memoryStream = new MemoryStream()) { Class120.smethod_0(memoryStream, 1, (int)this.Action); Class120.smethod_0(memoryStream, 2, (int)this.UpdateStep); for (int i = 0; i < this.ExtraData.Count; i++) { if (!string.IsNullOrEmpty(this.ExtraData[i])) { if (this.ExtraDataIsRTF[i]) { memoryStream.WriteByte(128); } Class120.smethod_5(memoryStream, 3, this.ExtraData[i]); } } if (this.ProcessID != 0) { Class120.smethod_0(memoryStream, 4, this.ProcessID); } if (this.Progress > -1 && this.Progress <= 100) { Class120.smethod_0(memoryStream, 5, this.Progress); } if (this.ResponseType != Enum28.const_1) { Class120.smethod_0(memoryStream, 6, (int)this.ResponseType); } memoryStream.WriteByte(byte.MaxValue); result = memoryStream.ToArray(); } return(result); }
private DateTime method_1() { if (!this.nullable_0.HasValue) { Class120 class2 = Class120.smethod_0(Class62.string_2); this.nullable_0 = new DateTime?(class2.method_0()); } return(this.nullable_0.Value); }
private bool method_34(Class120 class120_1, JsonSchemaType jsonSchemaType_0) { if (!JsonSchemaGenerator.smethod_0(new JsonSchemaType?(class120_1.JsonSchemaType_0), jsonSchemaType_0)) { this.method_16("Invalid type. Expected {0} but got {1}.".smethod_1(CultureInfo.InvariantCulture, class120_1.JsonSchemaType_0, jsonSchemaType_0), class120_1); return(false); } return(true); }
internal static ArrayList smethod_4(string string_0, object object_0) { Class120 class2 = smethod_5(string_0); if (class2 == null) { return(new ArrayList()); } return(class2.method_2(object_0, false)); }
private void method_18(Class120 class120_1) { if (class120_1 != null) { JsonSchemaType?nullable = this.method_19(); if (nullable.HasValue && JsonSchemaGenerator.smethod_0(new JsonSchemaType?(class120_1.JsonSchemaType_1), nullable.Value)) { this.method_16("Type {0} is disallowed.".smethod_0(CultureInfo.InvariantCulture, nullable), class120_1); } } }
private void method_27(Class120 class120_1) { if ((class120_1 != null) && this.method_34(class120_1, JsonSchemaType.Integer)) { this.method_18(class120_1); object obj2 = this.jsonReader_0.Object_0; if (class120_1.Nullable_4.HasValue) { if (JValue.smethod_7(JTokenType.Integer, obj2, class120_1.Nullable_4) > 0) { this.method_16("Integer {0} exceeds maximum value of {1}.".smethod_1(CultureInfo.InvariantCulture, obj2, class120_1.Nullable_4), class120_1); } if (class120_1.Boolean_2 && (JValue.smethod_7(JTokenType.Integer, obj2, class120_1.Nullable_4) == 0)) { this.method_16("Integer {0} equals maximum value of {1} and exclusive maximum is true.".smethod_1(CultureInfo.InvariantCulture, obj2, class120_1.Nullable_4), class120_1); } } if (class120_1.Nullable_3.HasValue) { if (JValue.smethod_7(JTokenType.Integer, obj2, class120_1.Nullable_3) < 0) { this.method_16("Integer {0} is less than minimum value of {1}.".smethod_1(CultureInfo.InvariantCulture, obj2, class120_1.Nullable_3), class120_1); } if (class120_1.Boolean_1 && (JValue.smethod_7(JTokenType.Integer, obj2, class120_1.Nullable_3) == 0)) { this.method_16("Integer {0} equals minimum value of {1} and exclusive minimum is true.".smethod_1(CultureInfo.InvariantCulture, obj2, class120_1.Nullable_3), class120_1); } } if (class120_1.Nullable_2.HasValue) { bool flag; if (obj2 is BigInteger) { BigInteger integer = (BigInteger)obj2; if (!Math.Abs((double)(class120_1.Nullable_2.Value - Math.Truncate(class120_1.Nullable_2.Value))).Equals((double)0.0)) { flag = integer != 0L; } else { flag = (integer % new BigInteger(class120_1.Nullable_2.Value)) != 0L; } } else { flag = !smethod_3(((double)Convert.ToInt64(obj2, CultureInfo.InvariantCulture)) % class120_1.Nullable_2.Value); } if (flag) { this.method_16("Integer {0} is not evenly divisible by {1}.".smethod_1(CultureInfo.InvariantCulture, JsonConvert.ToString(obj2), class120_1.Nullable_2), class120_1); } } } }
static PlugInTree() { ilog_0 = LogUtil.GetLogger <PlugInTree>(); class120_0 = new Class120(); list_0 = new List <PlugIn>(); dictionary_0 = new Dictionary <string, Interface3>(); dictionary_0.Add("Class", new Class121()); dictionary_0.Add("ToolbarItem", new Class124()); dictionary_0.Add("MenuItem", new Class128()); dictionary_0.Add("TreeNode", new Class119()); dictionary_0.Add("TreeNode_All", new Class127()); }
// Token: 0x0600050C RID: 1292 RVA: 0x00028D9C File Offset: 0x00026F9C public string method_1() { string text; if (this.method_0(out text)) { return(text); } object obj = Struct42.object_0; lock (obj) { if (this.method_0(out text)) { return(text); } Class179 class179_ = this.class58_0.class12_0.class179_0; object obj2 = class179_.object_0; byte[] byte_; bool bool_; lock (obj2) { byte_ = class179_.byte_0; bool_ = class179_.bool_0; if (class179_.bool_1) { if (byte_ == null) { throw new Exception("Unable to decrypt string data: encrypted value is null"); } } else { WeakReference weakReference_ = this.class58_0.class12_0.weakReference_1; string text2 = ((weakReference_ != null) ? weakReference_.Target : null) as string; if (text2 == null) { throw new Exception("Unable to obtain original string data"); } text = string.Copy(text2); Class120.smethod_3(text2); } class179_.bool_1 = true; } if (text == null) { text = Class120.smethod_2(byte_, bool_); } this.method_2(text); } return(text); }
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 string Authorize() { if (this.string_1 != Class62.string_0) { return("100"); } if (SecurityHelper.MD5String(Class62.string_1) != this.string_2) { return("101"); } if (this.bool_2 && (DateTime.Now > this.dateTime_0)) { return("102"); } Enum5 enum2 = this.method_4(); if (enum2 != ((Enum5)0)) { return("106 - " + Class120.smethod_1(enum2)); } if (this.bool_0) { bool flag = true; try { flag = this.AllowStartNewInstance("http://59.175.145.163/AuthorizeService.asmx"); } catch { try { flag = this.AllowStartNewInstance("http://ws.oraycn.com/AuthorizeService.asmx"); } catch { } } if (!flag) { return("103"); } } if ((this.enum3_0 == ((Enum3)1)) && !this.CheckToken(this.string_0)) { return("104"); } return(null); }
private void method_30(Class120 class120_1) { if (class120_1 != null) { string key = Convert.ToString(this.jsonReader_0.Object_0, CultureInfo.InvariantCulture); if (this.class91_0.Dictionary_0.ContainsKey(key)) { this.class91_0.Dictionary_0[key] = true; } if (!class120_1.Boolean_4 && !this.method_31(class120_1, key)) { this.method_16("Property '{0}' has not been defined and the schema does not allow additional properties.".smethod_0(CultureInfo.InvariantCulture, key), class120_1); } this.class91_0.String_0 = key; } }
private IEnumerable <string> method_0(Class120 class120_0) { if ((class120_0 == null) || (class120_0.IDictionary_0 == null)) { return(Enumerable.Empty <string>()); } if (func_3 == null) { func_3 = new Func <KeyValuePair <string, Class120>, bool>(JsonValidatingReader.Class91.smethod_3); } if (func_4 == null) { func_4 = new Func <KeyValuePair <string, Class120>, string>(JsonValidatingReader.Class91.smethod_4); } return(class120_0.IDictionary_0.Where <KeyValuePair <string, Class120> >(func_3).Select <KeyValuePair <string, Class120>, string>(func_4)); }
private static void smethod_6(PlugIn plugIn_0) { if (plugIn_0.method_5()) { foreach (Class135 class2 in plugIn_0.method_4().Values) { Class120 class3 = smethod_7(class120_0, class2.Name); foreach (Function function in class2.method_0()) { bool flag = false; using (List <Function> .Enumerator enumerator3 = class3.method_1().GetEnumerator()) { while (enumerator3.MoveNext()) { Function current = enumerator3.Current; if (current.Id.Equals(function.Id)) { goto Label_0092; } } goto Label_00A5; Label_0092: flag = true; } Label_00A5: if (!flag) { string str; bool flag2 = true; if (function.Properties.TryGetValue("class", out str)) { flag2 = ((Interface2)plugIn_0.method_9(str)).imethod_3(); } if (flag2) { class3.method_1().Add(function); } } } } } list_0.Add(plugIn_0); }
private static Class120 smethod_7(Class120 class120_1, string string_0) { if ((string_0 == null) || (string_0.Length == 0)) { return(class120_1); } string[] strArray = string_0.Split(new char[] { '/' }); Class120 class2 = class120_1; for (int i = 0; i < strArray.Length; i++) { if (!class2.method_0().ContainsKey(strArray[i])) { class2.method_0()[strArray[i]] = new Class120(); } class2 = class2.method_0()[strArray[i]]; } return(class2); }
// Token: 0x06000338 RID: 824 RVA: 0x0001BA18 File Offset: 0x00019C18 protected override void Finalize() { try { object object_ = this.class179_0.object_0; lock (object_) { if (!this.class179_0.bool_1) { this.class179_0.byte_0 = Class120.smethod_1(this.string_0); this.class179_0.bool_1 = true; Class120.smethod_3(this.string_0); } } } finally { base.Finalize(); } }
internal static Class120 smethod_5(string string_0) { if ((string_0 == null) || (string_0.Length == 0)) { return(null); } string[] strArray = string_0.Split(new char[] { '/' }); Class120 class2 = class120_0; for (int i = 0; i < strArray.Length; i++) { if (!class2.method_0().ContainsKey(strArray[i])) { ilog_0.ErrorFormat("不存在的插件路径:{0}", strArray[i]); return(null); } class2 = class2.method_0()[strArray[i]]; } return(class2); }
public static void RefreshLoad() { class120_0 = new Class120(); list_0 = new List <PlugIn>(); SQLUtil.smethod_1(); ServiceFactory.ClearService(); smethod_3(FileUtil.SearchDirectory(Path.Combine(FileUtil.ApplicationRootPath, "plugin"), ".plugin")); ilog_0.Info("运行自动执行程序..."); foreach (object obj2 in smethod_4("/Aisino/Auto", null)) { Interface2 interface2 = obj2 as Interface2; if (interface2 != null) { interface2.imethod_0(); } else { ilog_0.ErrorFormat("自动执行功能类型错误:{0}", obj2.GetType().ToString()); } } }
private void method_23(Class120 class120_1) { if (class120_1 != null) { int num = this.class91_0.Int32_0; if (class120_1.Nullable_6.HasValue) { if (num > class120_1.Nullable_6) { this.method_16("Array item count {0} exceeds maximum count of {1}.".smethod_1(CultureInfo.InvariantCulture, num, class120_1.Nullable_6), class120_1); } } if (class120_1.Nullable_5.HasValue) { if (num < class120_1.Nullable_5) { this.method_16("Array item count {0} is less than minimum count of {1}.".smethod_1(CultureInfo.InvariantCulture, num, class120_1.Nullable_5), class120_1); } } } }
private void method_29(Class120 class120_1) { if ((class120_1 != null) && this.method_34(class120_1, JsonSchemaType.Float)) { this.method_18(class120_1); double num = Convert.ToDouble(this.jsonReader_0.Object_0, CultureInfo.InvariantCulture); if (class120_1.Nullable_4.HasValue) { if (num > class120_1.Nullable_4) { this.method_16("Float {0} exceeds maximum value of {1}.".smethod_1(CultureInfo.InvariantCulture, JsonConvert.ToString(num), class120_1.Nullable_4), class120_1); } if (class120_1.Boolean_2) { if (num == class120_1.Nullable_4) { this.method_16("Float {0} equals maximum value of {1} and exclusive maximum is true.".smethod_1(CultureInfo.InvariantCulture, JsonConvert.ToString(num), class120_1.Nullable_4), class120_1); } } } if (class120_1.Nullable_3.HasValue) { if (num < class120_1.Nullable_3) { this.method_16("Float {0} is less than minimum value of {1}.".smethod_1(CultureInfo.InvariantCulture, JsonConvert.ToString(num), class120_1.Nullable_3), class120_1); } if (class120_1.Boolean_1) { if (num == class120_1.Nullable_3) { this.method_16("Float {0} equals minimum value of {1} and exclusive minimum is true.".smethod_1(CultureInfo.InvariantCulture, JsonConvert.ToString(num), class120_1.Nullable_3), class120_1); } } } if (class120_1.Nullable_2.HasValue && !smethod_3(smethod_2(num, class120_1.Nullable_2.Value))) { this.method_16("Float {0} is not evenly divisible by {1}.".smethod_1(CultureInfo.InvariantCulture, JsonConvert.ToString(num), class120_1.Nullable_2), class120_1); } } }
// Token: 0x0600184E RID: 6222 RVA: 0x00041A6C File Offset: 0x0003FC6C public void method_0() { lock (Class175.object_0) { using (FileStream fileStream = new FileStream(this.string_1, FileMode.Create, FileAccess.Write)) { Class120.smethod_8(fileStream, "AUIF"); Class120.smethod_4(fileStream, 1, this.LastCheckedForUpdate); Class120.smethod_0(fileStream, 2, (int)this.UpdateStepOn); if (!string.IsNullOrEmpty(this.UpdateVersion)) { Class120.smethod_5(fileStream, 4, this.UpdateVersion); } if (!string.IsNullOrEmpty(this.ChangesInLatestVersion)) { Class120.smethod_5(fileStream, 5, this.ChangesInLatestVersion); Class120.smethod_1(fileStream, 6, this.ChangesIsRTF); } fileStream.WriteByte(byte.MaxValue); } } }
private void method_22(Class120 class120_1) { if (class120_1 != null) { Dictionary <string, bool> source = this.class91_0.Dictionary_0; if (source != null) { if (func_3 == null) { func_3 = new Func <KeyValuePair <string, bool>, bool>(JsonValidatingReader.smethod_7); } if (func_4 == null) { func_4 = new Func <KeyValuePair <string, bool>, string>(JsonValidatingReader.smethod_8); } List <string> list = source.Where <KeyValuePair <string, bool> >(func_3).Select <KeyValuePair <string, bool>, string>(func_4).ToList <string>(); if (list.Count > 0) { this.method_16("Required properties are missing from object: {0}.".smethod_0(CultureInfo.InvariantCulture, string.Join(", ", list.ToArray())), class120_1); } } } }
public abstract void Visit(Class120 c);
public override void Visit(Class120 c) { }