Esempio n. 1
0
        private bool clockstop = false;                                                    //定时关闭 true:停止 false:继续

        public BatchChaxunWindow(UserClass user)
        {
            InitializeComponent();
            DeleteCookies deleteCookies = new DeleteCookies();

            deleteCookies.SuppressWininetBehavior();
            if (File.Exists(filesavepath))
            {
                //账号信息文件存在
                StreamReader reader = new StreamReader(filesavepath);
                string       acce   = reader.ReadToEnd();
                if (!acce.Trim().Equals(""))
                {
                    string[] accearray = acce.Split('\n');
                    for (int i = 0; i < accearray.Length; i++)
                    {
                        string exce = accearray[i];
                        if (exce.IndexOf("caiji") >= 0)
                        {
                            this.pathTb.Text = exce.Substring(exce.IndexOf('@') + 1);
                        }
                    }
                    reader.Close();
                }
            }
            if (this.pathTb.Text.Trim().Equals(""))
            {
                this.pathTb.Text = SelectFolder.getWinPath();
            }
            this.user             = user;
            xianzhi.Content       = "*最多输入" + user.gatherresourcecount + "条资源!";
            this.ContentRendered += MLoad;
            this.webBrower.ObjectForScripting = new ChaXunScriptEvent(this);
        }
Esempio n. 2
0
        private bool CanOperation = false;//可以操作
        public ALCRMWindow()
        {
            InitializeComponent();
            DeleteCookies deleteCookies = new DeleteCookies();

            deleteCookies.SuppressWininetBehavior();
            this.ContentRendered += MLoad;
        }
Esempio n. 3
0
        private bool clockstop = false; //定时关闭 true:停止 false:继续
        public QuanLiangXinZeng()
        {
            InitializeComponent();
            DeleteCookies deleteCookies = new DeleteCookies();

            deleteCookies.SuppressWininetBehavior();
            this.user             = user;
            this.ContentRendered += MLoad;
            this.webBrower.ObjectForScripting = new ChaXunScriptEvent(this);
        }
Esempio n. 4
0
        private bool pausestop = false; //定时关闭 true:停止 false:继续

        public BatchTiaoRuWindow(UserClass user)
        {
            InitializeComponent();
            //清除cookies
            DeleteCookies deleteCookies = new DeleteCookies();

            deleteCookies.SuppressWininetBehavior();
            this.user             = user;
            xianzhi.Content       = "*最多输入" + user.tiaoruresourcecount + "条资源!";
            this.ContentRendered += MLoad;
            this.webBrower.ObjectForScripting      = new TiaoRuScriptEvent(this);
            this.pickWebBrowser.ObjectForScripting = new TiaoRuPickScriptEvent(this);
        }