예제 #1
0
 public TcDwgOnLine_frm()
 {
     Class39.k1QjQlczC5Jf5();
     base..ctor();
     base.Load += this.TcDwgOnLine_frm_Load;
     TcDwgOnLine_frm.smethod_0(this);
     this.InitializeComponent();
 }
예제 #2
0
        private void TcDwgOnLine_frm_Load(object sender, EventArgs e)
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                TcDwgOnLine_frm.ChangeUserAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3947.100 Safari/537.36");
IL_15:
                num2 = 3;
                this.WebBrowser1.Navigate(this.URL);
IL_28:
                num2 = 4;
                this.TextBox2.Text = this.WebBrowser1.Document.Url.ToString();
IL_4A:
                goto IL_B2;
IL_4C:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_6E:
                goto IL_A7;
IL_70:
                num4 = num2;
                if (num <= -2)
                {
                    goto IL_4C;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_85 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_70;
            }
IL_A7:
            throw ProjectData.CreateProjectError(-2146828237);
IL_B2:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
예제 #3
0
 public static void ChangeUserAgent(string userAgent)
 {
     TcDwgOnLine_frm.UrlMkSetSessionOption(268435457, userAgent, userAgent.Length, 0);
 }