Exemplo n.º 1
0
 // Token: 0x060001D6 RID: 470 RVA: 0x0001171C File Offset: 0x0000F91C
 public void method_5(string string_7, string string_8, bool bool_3, bool bool_4)
 {
     if ((!this.bool_1 || bool_4) && string_7 != this.string_6)
     {
         this.string_6 = string_7;
         if (string_7.ToLower().Contains("error"))
         {
             string_8 = "red";
         }
         MainWindow.webView_0.QueueScriptCall(string.Format("updateTable('{0}','{1}',{2},7)", string_7.smethod_8(), string_8, this.jtoken_0["id"]));
         if (bool_3)
         {
             GClass3.smethod_0(string_7, "Task " + this.jtoken_0["id"]);
         }
         if (this.string_5 != null)
         {
             JObject jobject      = new JObject();
             string  propertyName = "quicktask";
             JObject jobject2     = new JObject();
             jobject2["id"]        = this.string_5;
             jobject2["status"]    = string_7;
             jobject2["color"]     = string_8;
             jobject[propertyName] = jobject2;
             Class60.smethod_0(jobject);
         }
     }
 }
 // Token: 0x06001310 RID: 4880 RVA: 0x00004934 File Offset: 0x00002B34
 internal void method_42(object object_0, Class60 class60_0)
 {
     if (this.delegate155_0 != null)
     {
         this.delegate155_0(object_0, class60_0);
     }
 }
Exemplo n.º 3
0
    public static int smethod_0(string A_0)
    {
        int     num    = 0;
        Class60 class2 = new Class60(A_0);

        while (class2.System.Collections.IEnumerator.MoveNext())
        {
            num++;
        }
        return(num);
    }
Exemplo n.º 4
0
    public static int[] smethod_10(string A_0)
    {
        if (string.IsNullOrEmpty(A_0))
        {
            return(new int[0]);
        }
        List <int> list = new List <int>();

        using (IEnumerator enumerator = new Class60(A_0).System.Collections.IEnumerable.GetEnumerator())
        {
            while (enumerator.MoveNext())
            {
                int current = (int)enumerator.Current;
                list.Add(current);
            }
        }
        return(list.ToArray());
    }
Exemplo n.º 5
0
 private static Assembly smethod_0(object object_0, ResolveEventArgs resolveEventArgs_0)
 {
     lock (hashtable_0)
     {
         string str  = resolveEventArgs_0.Name.Trim();
         object obj2 = hashtable_0[str];
         if (obj2 == null)
         {
             try
             {
                 string str2 = smethod_1(str);
                 foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
                 {
                     if (assembly.GetName().Name.ToUpper() == str2.ToUpper())
                     {
                         return(assembly);
                     }
                 }
             }
             catch
             {
             }
         }
         if (obj2 == null)
         {
             try
             {
                 RSACryptoServiceProvider.UseMachineKeyStore = true;
                 string s     = smethod_1(str);
                 byte[] bytes = Encoding.Unicode.GetBytes(s);
                 string name  = "b0494a1f-4bd3-" + Convert.ToBase64String(Class60.smethod_9(bytes));
                 Stream manifestResourceStream = typeof(Class64).Assembly.GetManifestResourceStream(name);
                 if (manifestResourceStream != null)
                 {
                     try
                     {
                         BinaryReader reader = new BinaryReader(manifestResourceStream)
                         {
                             BaseStream = { Position = 0L }
                         };
                         byte[] buffer = new byte[manifestResourceStream.Length];
                         reader.Read(buffer, 0, buffer.Length);
                         reader.Close();
                         bool     flag      = false;
                         Assembly assembly2 = null;
                         try
                         {
                             assembly2 = Assembly.Load(buffer);
                         }
                         catch (FileLoadException)
                         {
                             flag = true;
                         }
                         catch (BadImageFormatException)
                         {
                             flag = true;
                         }
                         if (flag)
                         {
                             string path = Path.Combine(Path.Combine(Path.GetTempPath(), name), s + ".dll");
                             if (!File.Exists(path))
                             {
                                 Directory.CreateDirectory(Path.GetDirectoryName(path));
                                 FileStream stream2 = new FileStream(path, FileMode.Create, FileAccess.Write);
                                 stream2.Write(buffer, 0, buffer.Length);
                                 stream2.Close();
                             }
                             assembly2 = Assembly.LoadFile(path);
                             hashtable_0.Add(str, assembly2);
                             return(assembly2);
                         }
                         hashtable_0.Add(str, assembly2);
                         return(assembly2);
                     }
                     catch
                     {
                     }
                 }
             }
             catch
             {
             }
             return(null);
         }
         return((Assembly)obj2);
     }
 }
Exemplo n.º 6
0
        // Token: 0x0600145E RID: 5214 RVA: 0x000251B0 File Offset: 0x000233B0
        public void Disconnect(int Result)
        {
            Class60 class60_ = new Class60(Result);

            this.class24_0.method_42(this.class24_0, class60_);
        }