Exemplo n.º 1
0
        private void fjl_btn_LoginCheckIn_Click(object sender, EventArgs e)
        {
            var btn = (Button)sender;

            if (btn.Text.Contains("开始"))
            {
                FenJianLiScheduling.Start("签到");
                btn.Text = "停止签到";
            }
            else
            {
                FenJianLiScheduling.Stop("签到");
                btn.Text = "开始签到";
            }
        }
Exemplo n.º 2
0
        private void fjl_btn_ContactInfomation_Click(object sender, EventArgs e)
        {
            var btn = (Button)sender;

            if (btn.Text.Contains("开始"))
            {
                FenJianLiScheduling.Start("下载");
                btn.Text = "停止下载";
            }
            else
            {
                FenJianLiScheduling.Stop("下载");
                IsDisposedUserLock();
                btn.Text = "开始下载";
            }
        }
Exemplo n.º 3
0
        private void SchedulingShowForm_Load(object sender, EventArgs e)
        {
            CheckForIllegalCrossThreadCalls = false;

            var cache = new CacheFactory <Models.Schedule>();

            var schedule = cache.GetCache("Schedule").Data;

            Global.TotalMatch        = schedule?.TotalMatch ?? 0;
            Global.TotalMatchSuccess = schedule?.TotalMatchSuccess ?? 0;
            Global.TotalDownload     = schedule?.TotalDownload ?? 0;

            tim_RefreshSchedule.Start();

            FenJianLiScheduling.Start(this, cnf); // 启动纷简历调度
            //Pin101Scheduling.Start(this, cnf); // 启动101pin调度
        }
Exemplo n.º 4
0
        private void fjl_btn_RegisterActivation_Click(object sender, EventArgs e)
        {
            var btn = (Button)sender;

            if (btn.Text.Contains("开始"))
            {
                cnf.Show();
                FenJianLiScheduling.Start("注册");
                FenJianLiScheduling.Start("激活");
                btn.Text = "停止注册激活";
            }
            else
            {
                cnf.Close();
                FenJianLiScheduling.Stop("注册");
                FenJianLiScheduling.Stop("激活");
                btn.Text = "开始注册激活";
            }
        }