private void Button_Start_Click(object sender, EventArgs e)
        {
            switch (button_Start.Text)
            {
            case "开始检测":
                if (!YH_Client.AutoLogin(dataGridView_warehouse, username, password))
                {
                    return;
                }
                if ("".Equals(dzhPath))
                {
                    MessageBox.Show("请先选择大智慧安装目录!");
                    return;
                }
                CheckBuyTimer.Start();
                button_Start.Text = "停止检测";
                break;

            case "停止检测":
                CheckBuyTimer.Stop();
                button_Start.Text = "开始检测";
                break;
            }
        }
 private void CheckClient()
 {
     YH_Client.AutoLogin(dataGridView_warehouse, username, password);
 }