Esempio n. 1
0
        public CanMou_Keys()
        {
            Taobao_Login tb = new Taobao_Login();

            tb.Show();
            if (Manager.WaitTaobaoLogin(tb))
            {
                tb.Hide();
                InitializeComponent();

                this.StartPosition          = FormStartPosition.CenterScreen;
                webBrowser1                 = new ChromiumWebBrowser("http://www.taobao.com");
                webBrowser1.FrameLoadStart += Browser.BrowserFrameLoadStart;
                webBrowser1.FrameLoadEnd   += Browser.BrowserFrameLoadEnd;
                webBrowser1.Dock            = DockStyle.Fill;
                webBrowser1.Location        = new System.Drawing.Point(3, 3);
                webBrowser1.MinimumSize     = new System.Drawing.Size(20, 20);
                webBrowser1.Size            = new System.Drawing.Size(969, 653);
                webBrowser1.Anchor          = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
                tabPage1.Controls.Add(webBrowser1);
                webBrowser1.RequestContext = tb.webBrowser1.RequestContext;
                tb.Close();
                tb.Dispose();
            }
        }
Esempio n. 2
0
        public TB_ImgDelete()
        {
            //InitializeComponent();
            Taobao_Login tb = new Taobao_Login();

            tb.Show();
            if (Manager.WaitTaobaoLogin(tb))
            {
                tb.Hide();
                InitializeComponent();

                this.StartPosition          = FormStartPosition.CenterScreen;
                webBrowser1                 = new ChromiumWebBrowser("http://www.taobao.com");
                webBrowser1.FrameLoadStart += Browser.BrowserFrameLoadStart;
                webBrowser1.FrameLoadEnd   += Browser.BrowserFrameLoadEnd;
                webBrowser1.Size            = new Size(990, 725);
                //webBrowser1.Location = new Point(180, 12);
                webBrowser1.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
                tabPage1.Controls.Add(webBrowser1);
                webBrowser1.RequestContext = tb.webBrowser1.RequestContext;
                tb.Close();
                tb.Dispose();


                //webBrowser2 = new ChromiumWebBrowser("http://www.taobao.com");
                //webBrowser2.FrameLoadStart += Browser.BrowserFrameLoadStart;
                //webBrowser2.FrameLoadEnd += Browser.BrowserFrameLoadEnd;
                //webBrowser2.Size = new Size(990, 400);
                //webBrowser2.Location = new Point(0, 325);
                //webBrowser2.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;
                //webBrowser2.RequestContext = webBrowser1.RequestContext;
                //txt_url.Controls.Add(webBrowser2);


                //txt_chengfa.Text = XMLHelper.GetValue("TaoBao_Copy_ChengFa");
                //txt_jiafa.Text = XMLHelper.GetValue("TaoBao_Copy_JiaFa");
            }
        }