Exemple #1
0
 // Token: 0x06000023 RID: 35 RVA: 0x00008274 File Offset: 0x00006474
 internal void method_2()
 {
     if (GForm0.list_0.Count > 0)
     {
         ConcurrentDictionary <string, string>[] array = GForm0.list_0.Where(new Func <ConcurrentDictionary <string, string>, bool>(GForm0.Class0.class0_0.method_3)).ToArray <ConcurrentDictionary <string, string> >();
         for (int i = 0; i < array.Length; i++)
         {
             GForm0.Class2 @class = new GForm0.Class2();
             @class.concurrentDictionary_0 = array[i];
             GForm0.Class3 class2 = new GForm0.Class3();
             class2.class2_0 = @class;
             if (class2.class2_0.concurrentDictionary_0 == null)
             {
                 return;
             }
             bool flag  = false;
             bool flag2 = false;
             class2.webView_0 = GForm0.smethod_2(class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537706414)] == Class185.smethod_0(537692590), out flag2, out flag, out class2.string_0);
             if (!flag2)
             {
                 class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537706414)] = Class185.smethod_0(537692774);
             }
             class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537706450)] = class2.string_0;
             if (flag)
             {
                 class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537692776)] = Class185.smethod_0(537692590);
                 if (!flag2)
                 {
                     GForm0.soundPlayer_0.Play();
                 }
                 if (class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537692611)].Contains(Class185.smethod_0(537692180)))
                 {
                     class2.webView_0.LoadHtml(GForm0.smethod_5(class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537692629)], class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537692633)]), class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537692611)]);
                 }
                 else
                 {
                     class2.webView_0.LoadHtml(GForm0.smethod_4(class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537692629)], class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537692656)], class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537692633)], class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537692611)]), class2.class2_0.concurrentDictionary_0[Class185.smethod_0(537692611)]);
                 }
                 if (flag2)
                 {
                     new Task(new Action(class2.method_0)).Start();
                 }
             }
         }
         return;
     }
     if (GForm0.concurrentDictionary_1[Class185.smethod_0(537706437)] && !GForm0.webView_0.GetText().Contains(Class185.smethod_0(537706480)))
     {
         GForm0.smethod_7();
     }
 }
Exemple #2
0
    // Token: 0x0600000D RID: 13 RVA: 0x00006FE0 File Offset: 0x000051E0
    public void method_0()
    {
        BrowserOptions options = new BrowserOptions
        {
            EnableXSSAuditor  = new bool?(false),
            EnableWebSecurity = new bool?(false)
        };

        GForm0.webView_0 = new WebView();
        GForm0.webView_0.SetOptions(options);
        GForm0.webView_0.Create(this.panel_0.Handle);
        GForm0.webView_0.RegisterJSExtensionFunction(Class185.smethod_0(537692509), new JSExtInvokeHandler(this.method_1));
        GForm0.webView_0.CertificateError  += this.method_3;
        GForm0.webView_0.BeforeContextMenu += this.method_2;
        GForm0.concurrentDictionary_1[Class185.smethod_0(537706437)] = true;
        GForm0.webView_1 = this.threadRunner_0.CreateWebView();
        GForm0.webView_1.SetOptions(options);
        GForm0.webView_1.RegisterJSExtensionFunction(Class185.smethod_0(537692509), new JSExtInvokeHandler(this.method_1));
        GForm0.webView_1.CertificateError  += this.method_3;
        GForm0.webView_1.BeforeContextMenu += this.method_2;
        GForm0.concurrentDictionary_1[Class185.smethod_0(537706077)] = true;
        GForm0.webView_2 = this.threadRunner_0.CreateWebView();
        GForm0.webView_2.SetOptions(options);
        GForm0.webView_2.RegisterJSExtensionFunction(Class185.smethod_0(537692509), new JSExtInvokeHandler(this.method_1));
        GForm0.webView_2.CertificateError  += this.method_3;
        GForm0.webView_2.BeforeContextMenu += this.method_2;
        GForm0.concurrentDictionary_1[Class185.smethod_0(537706060)] = true;
        GForm0.webView_3 = this.threadRunner_0.CreateWebView();
        GForm0.webView_3.SetOptions(options);
        GForm0.webView_3.RegisterJSExtensionFunction(Class185.smethod_0(537692509), new JSExtInvokeHandler(this.method_1));
        GForm0.webView_3.CertificateError  += this.method_3;
        GForm0.webView_3.BeforeContextMenu += this.method_2;
        GForm0.concurrentDictionary_1[Class185.smethod_0(537706107)] = true;
        GForm0.smethod_7();
        this.gform2_0 = new GForm2();
    }