Ejemplo n.º 1
0
 // Token: 0x0600015E RID: 350 RVA: 0x00010C38 File Offset: 0x0000EE38
 public void method_8()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4(Class185.smethod_0(537659541), Class185.smethod_0(537700781), true, false);
             JObject jobject      = new JObject();
             string  propertyName = Class185.smethod_0(537662812);
             JObject jobject2     = new JObject();
             jobject2[Class185.smethod_0(537662693)] = Class185.smethod_0(537713814);
             jobject[propertyName] = jobject2;
             JObject jobject3 = jobject;
             JObject jobject4 = new JObject();
             jobject4[Class185.smethod_0(537661359)] = this.string_4;
             jobject4[Class185.smethod_0(537703519)] = this.string_5;
             JObject content = jobject4;
             jobject3[Class185.smethod_0(537662812)][Class185.smethod_0(537661391)] = new JArray(content);
             this.class70_0.method_12(Class185.smethod_0(537662888), jobject3, false).EnsureSuccessStatusCode();
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4(Class185.smethod_0(537661320), Class185.smethod_0(537700781), true, false);
             Thread.Sleep(GClass0.int_0);
             continue;
         }
         break;
     }
 }
Ejemplo n.º 2
0
    // Token: 0x06000035 RID: 53 RVA: 0x00008B18 File Offset: 0x00006D18
    public static void smethod_1()
    {
        if (!File.Exists(GClass0.string_0))
        {
            GClass0.smethod_2();
        }
        JObject jobject;

        try
        {
            jobject = JObject.Parse(File.ReadAllText(GClass0.string_0));
        }
        catch
        {
            jobject = new JObject();
        }
        GClass0.int_0     = (int)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699262)];
        GClass0.int_1     = (int)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537714228)];
        GClass0.string_1  = (string)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699234)];
        GClass0.bool_0    = (jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537714214)] != null && (bool)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537714214)]);
        GClass0.string_2  = (string)jobject[Class185.smethod_0(537714250)];
        GClass0.jarray_0  = (JArray)jobject[Class185.smethod_0(537701503)];
        GClass0.jobject_0 = (JObject)jobject[Class185.smethod_0(537701485)];
        GClass0.jobject_1 = (JObject)jobject[Class185.smethod_0(537701443)];
        GClass0.jobject_3 = (((JObject)jobject[Class185.smethod_0(537714300)] != null) ? ((JObject)jobject[Class185.smethod_0(537714300)]) : new JObject());
    }
Ejemplo n.º 3
0
 // Token: 0x0600015D RID: 349 RVA: 0x00010B2C File Offset: 0x0000ED2C
 public void method_7()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4(Class185.smethod_0(537659541), Class185.smethod_0(537700781), true, false);
             Dictionary <string, string> dictionary = Class70.smethod_1();
             dictionary[Class185.smethod_0(537659574)] = Class185.smethod_0(537659556);
             dictionary[Class185.smethod_0(537659600)] = Class185.smethod_0(537713814);
             dictionary[Class185.smethod_0(537659632)] = this.string_4;
             dictionary[Class185.smethod_0(537659440)] = this.string_5;
             this.class70_0.method_7(string.Format(Class185.smethod_0(537659465), this.string_10), dictionary, false);
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4(Class185.smethod_0(537661320), Class185.smethod_0(537700781), true, false);
             Thread.Sleep(GClass0.int_0);
             continue;
         }
         break;
     }
 }
Ejemplo n.º 4
0
 // Token: 0x0600015A RID: 346 RVA: 0x0000FF78 File Offset: 0x0000E178
 public void method_4()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4(Class185.smethod_0(537662763), Class185.smethod_0(537700781), true, false);
             JObject jobject = new JObject();
             jobject[Class185.smethod_0(537662812)] = new JObject();
             jobject[Class185.smethod_0(537662812)][Class185.smethod_0(537662792)] = this.jtoken_1[Class185.smethod_0(537662788)][Class185.smethod_0(537662792)];
             if (!(bool)this.class70_0.method_12(Class185.smethod_0(537662888), jobject, false).smethod_0()[Class185.smethod_0(537662834)])
             {
                 throw new Exception();
             }
             this.class4_0.method_4(Class185.smethod_0(537662827), Class185.smethod_0(537700781), true, false);
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4(Class185.smethod_0(537662600), Class185.smethod_0(537700781), true, false);
             Thread.Sleep(GClass0.int_0);
             continue;
         }
         break;
     }
 }
Ejemplo n.º 5
0
 // Token: 0x0600015C RID: 348 RVA: 0x00010958 File Offset: 0x0000EB58
 public void method_6()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4(Class185.smethod_0(537660028), Class185.smethod_0(537700781), true, false);
             HttpResponseMessage httpResponseMessage_ = this.class70_0.method_5(Class185.smethod_0(537659800), false);
             HtmlDocument        htmlDocument         = new HtmlDocument();
             htmlDocument.LoadHtml(httpResponseMessage_.smethod_3());
             this.string_4 = htmlDocument.DocumentNode.SelectSingleNode(Class185.smethod_0(537659823)).Attributes[Class185.smethod_0(537711408)].Value;
             this.string_5 = htmlDocument.DocumentNode.SelectSingleNode(Class185.smethod_0(537659664)).Attributes[Class185.smethod_0(537711408)].Value;
             this.string_7 = httpResponseMessage_.smethod_3().Replace(Class185.smethod_0(537711014), string.Empty).Split(new string[]
             {
                 Class185.smethod_0(537660158)
             }, StringSplitOptions.None)[1].Split(new char[]
             {
                 '"'
             })[0];
             this.class4_0.method_4(Class185.smethod_0(537659956) + this.string_10, Class185.smethod_0(537700781), true, false);
             this.class4_0.method_7(htmlDocument.DocumentNode.SelectSingleNode(Class185.smethod_0(537659738)).InnerText, Class185.smethod_0(537700781));
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4(Class185.smethod_0(537659763), Class185.smethod_0(537700781), true, false);
             Thread.Sleep(GClass0.int_0);
             continue;
         }
         break;
     }
 }
Ejemplo n.º 6
0
 // Token: 0x06000155 RID: 341 RVA: 0x0000F944 File Offset: 0x0000DB44
 public Class27(JToken jtoken_2)
 {
     try
     {
         this.jtoken_0 = jtoken_2;
         this.class4_0 = new Class4(jtoken_2);
         if (!this.class4_0.method_3(out this.jtoken_1))
         {
             this.class4_0.method_0(Class185.smethod_0(537663358), Class185.smethod_0(537700909), true);
         }
         else
         {
             this.string_1 = jtoken_2[Class185.smethod_0(537702300)].ToString().Split(new char[]
             {
                 '#'
             }).First <string>();
             this.string_2 = ((string)jtoken_2[Class185.smethod_0(537700008)]).Replace(Class185.smethod_0(537663330), string.Empty);
             if (this.string_2 == Class185.smethod_0(537663132) || this.string_2 == Class185.smethod_0(537663113))
             {
                 this.bool_0 = true;
             }
             this.bool_1    = (jtoken_2[Class185.smethod_0(537663111)] != null && (bool)jtoken_2[Class185.smethod_0(537663111)]);
             this.class70_0 = new Class70(this.class4_0.method_6(), Class185.smethod_0(537692910), 60, false, false, null, false);
             this.class70_0.httpClient_0.DefaultRequestHeaders.TryAddWithoutValidation(Class185.smethod_0(537663147), this.string_1);
         }
     }
     catch
     {
         this.class4_0.method_0(Class185.smethod_0(537663193), Class185.smethod_0(537700909), true);
     }
 }
Ejemplo n.º 7
0
 // Token: 0x06000159 RID: 345 RVA: 0x0000FE28 File Offset: 0x0000E028
 public void method_3()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4(Class185.smethod_0(537663094), Class185.smethod_0(537662875), true, false);
             JObject jobject = new JObject();
             jobject[Class185.smethod_0(537662856)] = this.string_0;
             jobject[Class185.smethod_0(537662905)] = Class185.smethod_0(537713814);
             HttpResponseMessage httpResponseMessage = this.class70_0.method_9(Class185.smethod_0(537662888), jobject, false);
             if (httpResponseMessage.smethod_3().Contains(Class185.smethod_0(537662962)))
             {
                 this.class4_0.method_4(Class185.smethod_0(537663011), Class185.smethod_0(537700781), true, false);
                 Thread.Sleep(GClass0.int_0);
                 this.method_2();
                 continue;
             }
             httpResponseMessage.EnsureSuccessStatusCode();
             this.class4_0.method_4(Class185.smethod_0(537662950), Class185.smethod_0(537700781), true, false);
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4(Class185.smethod_0(537662720), Class185.smethod_0(537700781), true, false);
             Thread.Sleep(GClass0.int_0);
             continue;
         }
         break;
     }
 }
Ejemplo n.º 8
0
        public override int Replace(Regex pattern, TextSelection textSelection, bool saveFormatting)
        {
            int num = 12;

            if (Class191.smethod_0(pattern))
            {
                throw new ArgumentException(BookmarkStart.b("愱儳圵䨷夹吻ḽ㌿㙁㙃⽅♇ⵉ汋ⵍㅏ㱑㩓㥕ⱗ穙㹛㭝䁟ݡॣᙥᱧ፩", num));
            }
            textSelection.method_1();
            Class185 class2 = this.FindAll(pattern);

            if (class2 == null)
            {
                return(0);
            }
            foreach (TextSelection selection in class2)
            {
                CharacterFormat characterFormat = null;
                if ((selection.StartTextRange != null) && saveFormatting)
                {
                    characterFormat = selection.StartTextRange.CharacterFormat;
                }
                int       num2           = selection.method_0();
                Paragraph ownerParagraph = selection.OwnerParagraph;
                if (selection.OwnerSDTInlineContent != null)
                {
                    textSelection.method_3(selection.OwnerSDTInlineContent, num2, saveFormatting, characterFormat);
                }
                else
                {
                    textSelection.method_2(ownerParagraph, num2, saveFormatting, characterFormat);
                }
            }
            return(class2.Count);
        }
Ejemplo n.º 9
0
        internal int method_26(Regex A_0, TextBodyPart A_1, bool A_2)
        {
            int num = 12;

            if (Class191.smethod_0(A_0))
            {
                throw new ArgumentException(BookmarkStart.b("愱儳圵䨷夹吻ḽ㌿㙁㙃⽅♇ⵉ汋ⵍㅏ㱑㩓㥕ⱗ穙㹛㭝䁟ݡॣᙥᱧ፩", num));
            }
            Class185 class2 = this.method_23(A_0);

            if (class2 == null)
            {
                return(0);
            }
            foreach (TextSelection selection in class2)
            {
                CharacterFormat characterFormat = null;
                if (A_2)
                {
                    characterFormat = selection.StartTextRange.CharacterFormat;
                }
                int       num2           = selection.method_0();
                Paragraph ownerParagraph = selection.OwnerParagraph;
                A_1.method_1(ownerParagraph.OwnerTextBody, ownerParagraph.method_5(), num2, characterFormat, A_2);
                if (base.Document.ReplaceFirst)
                {
                    break;
                }
            }
            return(class2.Count);
        }
Ejemplo n.º 10
0
 // Token: 0x060000B2 RID: 178 RVA: 0x0000C894 File Offset: 0x0000AA94
 public void method_8()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4(Class185.smethod_0(537660830), Class185.smethod_0(537700964), true, false);
             Dictionary <string, string> dictionary = Class70.smethod_1();
             dictionary[Class185.smethod_0(537686480)] = ((string)this.jtoken_1[Class185.smethod_0(537662788)][Class185.smethod_0(537660840)][Class185.smethod_0(537660835)]).Replace(Class185.smethod_0(537711014), string.Empty);
             dictionary[Class185.smethod_0(537660870)] = (string)this.jtoken_1[Class185.smethod_0(537662788)][Class185.smethod_0(537660840)][Class185.smethod_0(537660870)];
             dictionary[Class185.smethod_0(537660699)] = (string)this.jtoken_1[Class185.smethod_0(537662788)][Class185.smethod_0(537660840)][Class185.smethod_0(537660699)];
             dictionary[Class185.smethod_0(537686466)] = (string)this.jtoken_1[Class185.smethod_0(537662788)][Class185.smethod_0(537660840)][Class185.smethod_0(537660682)];
             dictionary[Class185.smethod_0(537686515)] = this.string_10;
             dictionary[Class185.smethod_0(537670350)] = Class185.smethod_0(537686503);
             HttpResponseMessage httpResponseMessage = this.class70_0.method_7(Class185.smethod_0(537686293), dictionary, false);
             if (httpResponseMessage.smethod_3().Contains(Class185.smethod_0(537686314)))
             {
                 this.class4_0.method_0(Class185.smethod_0(537686337), Class185.smethod_0(537700909), false);
             }
             string string_ = httpResponseMessage.Headers.GetValues(Class185.smethod_0(537686380)).First <string>().ToString();
             this.method_9(string_);
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4(Class185.smethod_0(537660605), Class185.smethod_0(537700781), true, false);
             Thread.Sleep(GClass0.int_1);
             continue;
         }
         break;
     }
 }
Ejemplo n.º 11
0
    // Token: 0x060004DD RID: 1245 RVA: 0x0002AA08 File Offset: 0x00028C08
    public override int imethod_8(byte[] byte_2, int int_1, int int_2, byte[] byte_3, int int_3)
    {
        if (int_2 < 0)
        {
            throw new ArgumentException(Class185.smethod_0(537694875));
        }
        int num  = this.imethod_2();
        int num2 = this.imethod_4(int_2);

        if (num2 > 0 && int_3 + num2 > byte_3.Length)
        {
            throw new Exception1(Class185.smethod_0(537694976));
        }
        int num3 = 0;
        int num4 = this.byte_1.Length - this.int_0;

        if (int_2 > num4)
        {
            Array.Copy(byte_2, int_1, this.byte_1, this.int_0, num4);
            num3      += this.interface6_0.imethod_4(this.byte_1, 0, byte_3, int_3);
            this.int_0 = 0;
            int_2     -= num4;
            int_1     += num4;
            while (int_2 > this.byte_1.Length)
            {
                num3  += this.interface6_0.imethod_4(byte_2, int_1, byte_3, int_3 + num3);
                int_2 -= num;
                int_1 += num;
            }
        }
        Array.Copy(byte_2, int_1, this.byte_1, this.int_0, int_2);
        this.int_0 += int_2;
        return(num3);
    }
Ejemplo n.º 12
0
 // Token: 0x060000AD RID: 173 RVA: 0x0000C1BC File Offset: 0x0000A3BC
 public void method_3()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4(Class185.smethod_0(537689213), Class185.smethod_0(537700781), true, false);
             HttpResponseMessage httpResponseMessage = this.class70_0.method_5(string.Format(Class185.smethod_0(537686942), new object[]
             {
                 this.string_0,
                 this.string_5,
                 Class172.smethod_0((string)this.jtoken_1[Class185.smethod_0(537660189)][Class185.smethod_0(537660334)], false),
                 (string)this.jtoken_1[Class185.smethod_0(537660189)][Class185.smethod_0(537660362)]
             }), true);
             httpResponseMessage.EnsureSuccessStatusCode();
             this.string_8 = httpResponseMessage.smethod_0()[Class185.smethod_0(537687011)][0][Class185.smethod_0(537674058)].ToString();
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4(Class185.smethod_0(537686793), Class185.smethod_0(537700781), true, false);
             Thread.Sleep(GClass0.int_1);
             continue;
         }
         break;
     }
 }
Ejemplo n.º 13
0
 // Token: 0x060000A6 RID: 166 RVA: 0x0000B7C0 File Offset: 0x000099C0
 public Class13(JToken jtoken_2, string string_11, string string_12)
 {
     try
     {
         this.jtoken_0 = jtoken_2;
         this.class4_0 = new Class4(jtoken_2);
         if (!this.class4_0.method_3(out this.jtoken_1))
         {
             this.class4_0.method_0(Class185.smethod_0(537663358), Class185.smethod_0(537700909), true);
         }
         else
         {
             this.string_0 = string_11;
             this.string_1 = string_12;
             this.string_3 = (string)jtoken_2[Class185.smethod_0(537702300)];
             this.string_4 = ((string)jtoken_2[Class185.smethod_0(537700008)]).Replace(Class185.smethod_0(537663330), string.Empty);
             if (this.string_4 == Class185.smethod_0(537663132) || this.string_4 == Class185.smethod_0(537663113))
             {
                 this.bool_0 = true;
             }
             this.jobject_0 = new JObject();
             this.jobject_0[Class185.smethod_0(537713963)] = Class185.smethod_0(537689874);
             this.jobject_0[Class185.smethod_0(537689940)] = string_12;
             this.class70_0 = new Class70(this.class4_0.method_6(), Class185.smethod_0(537692910), 10, false, false, this.jobject_0, false);
         }
     }
     catch
     {
         this.class4_0.method_0(Class185.smethod_0(537663193), Class185.smethod_0(537700909), true);
     }
 }
Ejemplo n.º 14
0
    // Token: 0x060002B3 RID: 691 RVA: 0x00018F88 File Offset: 0x00017188
    public static void smethod_13(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
    {
        OpenFileDialog openFileDialog = new OpenFileDialog();

        openFileDialog.Filter = Class185.smethod_0(537699280);
        openFileDialog.Title  = Class185.smethod_0(537699326);
        if (openFileDialog.ShowDialog() == DialogResult.OK)
        {
            JObject jobject = JObject.Parse(new StreamReader(openFileDialog.FileName).ReadToEnd().ToString());
            GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537699100)).smethod_0();
            GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537699181)).smethod_0();
            GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537702007), jobject[Class185.smethod_0(537701443)].ToString().smethod_6()));
            GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537701790), jobject[Class185.smethod_0(537701503)].ToString().smethod_6()));
            GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537699025), jobject[Class185.smethod_0(537701485)].ToString().smethod_6()));
            GClass0.jarray_0  = JArray.Parse(jobject[Class185.smethod_0(537701503)].ToString());
            GClass0.jobject_0 = JObject.Parse(jobject[Class185.smethod_0(537701485)].ToString());
            GClass0.jobject_1 = JObject.Parse(jobject[Class185.smethod_0(537701443)].ToString());
            GClass0.int_1     = (int)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699211)];
            GClass0.int_0     = (int)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699262)];
            GClass0.string_1  = ((jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699234)] == null) ? string.Empty : jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699234)].ToString());
            Class68.smethod_1();
            GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537699067));
            GClass0.smethod_2();
        }
    }
Ejemplo n.º 15
0
 // Token: 0x06000515 RID: 1301 RVA: 0x0002BC04 File Offset: 0x00029E04
 private void webView_0_LoadCompleted(object sender, LoadCompletedEventArgs e)
 {
     Thread.Sleep(500);
     this.method_2();
     this.webView_0.RegisterJSExtensionFunction(Class185.smethod_0(537715225), new JSExtInvokeHandler(this.method_8));
     this.webView_0.RegisterJSExtensionFunction(Class185.smethod_0(537715221), new JSExtInvokeHandler(this.method_9));
 }
Ejemplo n.º 16
0
 // Token: 0x0600015F RID: 351 RVA: 0x00010D74 File Offset: 0x0000EF74
 public void method_9()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4(Class185.smethod_0(537661418), Class185.smethod_0(537700781), true, false);
             Dictionary <string, string> dictionary = Class70.smethod_1();
             dictionary[Class185.smethod_0(537661206)] = this.string_7;
             dictionary[Class185.smethod_0(537661240)] = (this.string_6.Contains(Class185.smethod_0(537696580)) ? this.string_6.Replace(Class185.smethod_0(537661237), string.Empty) : (this.string_6.Replace(Class185.smethod_0(537661237), string.Empty) + Class185.smethod_0(537661229)));
             HttpResponseMessage httpResponseMessage = this.class70_0.method_7(string.Format(Class185.smethod_0(537661222), this.string_10), dictionary, false);
             httpResponseMessage.EnsureSuccessStatusCode();
             this.string_8 = httpResponseMessage.smethod_0()[Class185.smethod_0(537692633)].ToString();
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4(Class185.smethod_0(537661084), Class185.smethod_0(537700781), true, false);
             Thread.Sleep(GClass0.int_0);
             continue;
         }
         break;
     }
 }
Ejemplo n.º 17
0
 // Token: 0x06000226 RID: 550 RVA: 0x00014FC0 File Offset: 0x000131C0
 public void method_3()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4(Class185.smethod_0(537663094), Class185.smethod_0(537700781), true, false);
             this.dictionary_0[Class185.smethod_0(537657715)] = this.string_3;
             HttpResponseMessage httpResponseMessage = this.class70_0.method_7(string.Format(Class185.smethod_0(537657499), this.string_4), this.dictionary_0, false);
             while (httpResponseMessage.smethod_3().Contains(Class185.smethod_0(537657508)))
             {
                 this.class4_0.method_4(Class185.smethod_0(537657530), Class185.smethod_0(537700781), true, false);
                 Thread.Sleep(Settings.Default.retry_delay);
                 httpResponseMessage = this.class70_0.method_7(string.Format(Class185.smethod_0(537657499), this.string_4), this.dictionary_0, false);
             }
             HtmlDocument htmlDocument = new HtmlDocument();
             htmlDocument.LoadHtml(httpResponseMessage.smethod_3());
             this.class4_0.method_7(htmlDocument.DocumentNode.SelectSingleNode(Class185.smethod_0(537657590)).InnerText, Class185.smethod_0(537700781));
             httpResponseMessage.EnsureSuccessStatusCode();
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4(Class185.smethod_0(537662720), Class185.smethod_0(537700781), true, false);
             Thread.Sleep(Settings.Default.retry_delay);
             continue;
         }
         break;
     }
 }
Ejemplo n.º 18
0
        // Token: 0x06000103 RID: 259 RVA: 0x0000E5CC File Offset: 0x0000C7CC
        internal void method_0()
        {
            JObject jobject = Class20.smethod_4(this.bitmap_0);

            try
            {
                this.jobject_0[this.int_0.ToString()] = new JObject();
                JToken jtoken = this.jobject_0[this.int_0.ToString()];
                object key    = Class185.smethod_0(537704272);
                bool   value;
                if (jobject[Class185.smethod_0(537704268)][Class185.smethod_0(537704318)].Count <JToken>() <= 0)
                {
                    value = false;
                }
                else
                {
                    IEnumerable <JToken> source = jobject[Class185.smethod_0(537704268)][Class185.smethod_0(537704318)];
                    Func <JToken, bool>  predicate;
                    if ((predicate = this.func_0) == null)
                    {
                        predicate = (this.func_0 = new Func <JToken, bool>(this.method_1));
                    }
                    value = (source.Where(predicate).Count <JToken>() > 0);
                }
                jtoken[key] = value;
                this.jobject_0[this.int_0.ToString()][Class185.smethod_0(537704318)] = jobject[Class185.smethod_0(537704268)][Class185.smethod_0(537704318)];
                GClass3.smethod_0(Class185.smethod_0(537704297) + this.int_0, Class185.smethod_0(537704074));
            }
            catch
            {
                Console.WriteLine(jobject);
            }
        }
Ejemplo n.º 19
0
    // Token: 0x060000FD RID: 253 RVA: 0x0000E510 File Offset: 0x0000C710
    public static JObject smethod_4(Bitmap bitmap_0)
    {
        JObject result2;

        try
        {
            HttpClient httpClient = new HttpClient();
            httpClient.DefaultRequestHeaders.Add(Class185.smethod_0(537703933), string.Empty);
            string              requestUri       = Class185.smethod_0(537703709);
            ByteArrayContent    byteArrayContent = new ByteArrayContent((byte[])new ImageConverter().ConvertTo(bitmap_0, typeof(byte[])));
            HttpResponseMessage result;
            try
            {
                byteArrayContent.Headers.ContentType = new MediaTypeHeaderValue(Class185.smethod_0(537703781));
                result = httpClient.PostAsync(requestUri, byteArrayContent).Result;
            }
            finally
            {
                ((IDisposable)byteArrayContent).Dispose();
            }
            result2 = result.smethod_0();
        }
        catch (Exception)
        {
            result2 = new JObject();
        }
        return(result2);
    }
Ejemplo n.º 20
0
 // Token: 0x06000101 RID: 257 RVA: 0x00003613 File Offset: 0x00001813
 internal string method_1(HtmlNode htmlNode_0)
 {
     return(htmlNode_0.Attributes[Class185.smethod_0(537704228)].Value.Split(new char[]
     {
         ';'
     })[1]);
 }
Ejemplo n.º 21
0
    // Token: 0x060001F9 RID: 505 RVA: 0x00012EF8 File Offset: 0x000110F8
    public static string smethod_3()
    {
        string result;

        try
        {
            string text = null;
            foreach (ManagementBaseObject managementBaseObject in new ManagementClass(Class185.smethod_0(537707973)).GetInstances())
            {
                text = ((ManagementObject)managementBaseObject).Properties[Class185.smethod_0(537708011)].Value.ToString();
            }
            if (text == null)
            {
                result = Class185.smethod_0(537707805);
            }
            else
            {
                result = text;
            }
        }
        catch
        {
            result = Class185.smethod_0(537707805);
        }
        return(result);
    }
Ejemplo n.º 22
0
    // Token: 0x060001FA RID: 506 RVA: 0x00012FA4 File Offset: 0x000111A4
    public static string smethod_4()
    {
        string result;

        try
        {
            StringBuilder stringBuilder = new StringBuilder();
            foreach (ManagementBaseObject managementBaseObject in new ManagementObjectSearcher(Class185.smethod_0(537707787)).Get())
            {
                ManagementObject managementObject = (ManagementObject)managementBaseObject;
                object           value            = managementObject[Class185.smethod_0(537707818)];
                stringBuilder.Append(Convert.ToString(value));
                stringBuilder.Append(':');
                value = managementObject[Class185.smethod_0(537707869)];
                stringBuilder.Append(Convert.ToString(value));
            }
            if (stringBuilder == null)
            {
                result = Class185.smethod_0(537707805);
            }
            else
            {
                result = stringBuilder.ToString();
            }
        }
        catch
        {
            result = Class185.smethod_0(537707805);
        }
        return(result);
    }
Ejemplo n.º 23
0
 // Token: 0x06000041 RID: 65 RVA: 0x00008E30 File Offset: 0x00007030
 public Class4(JToken jtoken_2)
 {
     this.jtoken_1 = jtoken_2;
     this.string_2 = jtoken_2[Class185.smethod_0(537700008)].ToString();
     GForm1.dictionary_0[(int)jtoken_2[Class185.smethod_0(537703519)]][Class185.smethod_0(537710986)] = string.Empty;
     this.method_4(Class185.smethod_0(537710911), Class185.smethod_0(537700781), true, false);
 }
Ejemplo n.º 24
0
    // Token: 0x06000049 RID: 73 RVA: 0x00009320 File Offset: 0x00007520
    public string method_6()
    {
        string result;

        try
        {
            if (this.jtoken_1[Class185.smethod_0(537692535)].ToString() != Class185.smethod_0(537710839))
            {
                result = this.jtoken_1[Class185.smethod_0(537692535)].ToString();
            }
            else
            {
                short  num     = Convert.ToInt16(GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537710819), this.jtoken_1[Class185.smethod_0(537703519)])).smethod_0());
                JArray jarray_ = GClass0.jarray_0;
                if ((int)num > jarray_.Count <JToken>() - 1)
                {
                    GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537710606), this.jtoken_1[Class185.smethod_0(537703519)]));
                    result = null;
                }
                else
                {
                    string text = jarray_[(int)num][Class185.smethod_0(537692535)].ToString();
                    GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537710680), text, this.jtoken_1[Class185.smethod_0(537703519)]));
                    result = text;
                }
            }
        }
        catch
        {
            GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537710606), this.jtoken_1[Class185.smethod_0(537703519)]));
            result = null;
        }
        return(result);
    }
Ejemplo n.º 25
0
 // Token: 0x06000132 RID: 306 RVA: 0x0000F0E0 File Offset: 0x0000D2E0
 public static async void smethod_11(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
 {
     if (Class173.form_0 == null)
     {
         Class173.dateTime_0 = GForm3.dateTime_0;
         Dictionary <string, string> dictionary = Class70.smethod_1();
         dictionary[Class185.smethod_0(537709009)] = Class173.string_4;
         dictionary[Class185.smethod_0(537709048)] = Class185.smethod_0(537709042);
         dictionary[Class185.smethod_0(537709026)] = Class185.smethod_0(537708828);
         dictionary[Class185.smethod_0(537708814)] = GClass0.string_2;
         TaskAwaiter <HttpResponseMessage> taskAwaiter = new Class70(null, Class185.smethod_0(537692910), 10, false, true, null, false).method_8(Class185.smethod_0(537708856), dictionary, false).GetAwaiter();
         if (!taskAwaiter.IsCompleted)
         {
             await taskAwaiter;
             TaskAwaiter <HttpResponseMessage> taskAwaiter2;
             taskAwaiter  = taskAwaiter2;
             taskAwaiter2 = default(TaskAwaiter <HttpResponseMessage>);
         }
         Class173.form_0 = new GForm6(taskAwaiter.GetResult().Headers.Location.ToString());
         Class173.form_0.Show();
         GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537708884));
     }
     else
     {
         Class173.form_0.WindowState = FormWindowState.Normal;
         Class173.form_0.BringToFront();
     }
 }
Ejemplo n.º 26
0
 // Token: 0x0600012A RID: 298 RVA: 0x0000380B File Offset: 0x00001A0B
 private static void smethod_3(object object_0, SuccessArgs successArgs_0)
 {
     if (Class23.bool_0)
     {
         GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537710549));
     }
 }
Ejemplo n.º 27
0
    // Token: 0x06000157 RID: 343 RVA: 0x0000FBBC File Offset: 0x0000DDBC
    public string method_1(string string_13)
    {
        HtmlDocument htmlDocument = new HtmlDocument();

        htmlDocument.LoadHtml(this.string_11);
        return(htmlDocument.DocumentNode.SelectSingleNode(string.Format(Class185.smethod_0(537663224), string_13)).Attributes[Class185.smethod_0(537711408)].Value);
    }
Ejemplo n.º 28
0
 // Token: 0x06000163 RID: 355 RVA: 0x000114DC File Offset: 0x0000F6DC
 public void method_13()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4(Class185.smethod_0(537658294), Class185.smethod_0(537700964), true, false);
             HttpResponseMessage httpResponseMessage = this.class70_0.method_5(string.Format(Class185.smethod_0(537658333), this.string_12), false);
             if (httpResponseMessage.StatusCode != HttpStatusCode.Found)
             {
                 throw new Exception();
             }
             if (httpResponseMessage.smethod_3().Contains(Class185.smethod_0(537658352)))
             {
                 this.class4_0.method_9(false);
                 this.class4_0.method_0(Class185.smethod_0(537658349), Class185.smethod_0(537658124), false);
             }
             else
             {
                 this.class4_0.method_9(true);
                 this.class4_0.method_0(Class185.smethod_0(537660491), Class185.smethod_0(537700909), false);
             }
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4(Class185.smethod_0(537658168), Class185.smethod_0(537700781), true, false);
             Thread.Sleep(GClass0.int_0);
             continue;
         }
         break;
     }
 }
Ejemplo n.º 29
0
 // Token: 0x06000156 RID: 342 RVA: 0x0000FB18 File Offset: 0x0000DD18
 public void method_0()
 {
     try
     {
         this.class4_0.method_8();
         this.method_2();
         this.method_3();
         this.method_4();
         this.method_5(false);
         if (this.bool_1)
         {
             this.method_14();
         }
         else
         {
             this.method_9();
             this.method_10();
             this.method_11();
             this.method_12();
             this.method_13();
         }
     }
     catch
     {
     }
     finally
     {
         this.class4_0.method_0(Class185.smethod_0(537663178), Class185.smethod_0(537700909), true);
     }
 }
Ejemplo n.º 30
0
 // Token: 0x06000160 RID: 352 RVA: 0x00010EC8 File Offset: 0x0000F0C8
 public void method_10()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4(Class185.smethod_0(537661118), Class185.smethod_0(537700781), true, false);
             HttpResponseMessage httpResponseMessage = this.class70_0.method_5(string.Format(Class185.smethod_0(537661145), this.string_8), true);
             httpResponseMessage.EnsureSuccessStatusCode();
             HtmlDocument htmlDocument = new HtmlDocument();
             htmlDocument.LoadHtml(httpResponseMessage.smethod_3());
             foreach (HtmlNode htmlNode in ((IEnumerable <HtmlNode>)htmlDocument.DocumentNode.SelectNodes(Class185.smethod_0(537661018))))
             {
                 this.dictionary_0[htmlNode.Attributes[Class185.smethod_0(537712143)].Value] = htmlNode.Attributes[Class185.smethod_0(537711408)].Value;
             }
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4(Class185.smethod_0(537661053), Class185.smethod_0(537700781), true, false);
             Thread.Sleep(GClass0.int_0);
             continue;
         }
         break;
     }
 }
 public override void Visit(Class185 c) { }
 public abstract void Visit(Class185 c);