Exemplo n.º 1
0
        private void trmCheckConnection_Tick(object sender, EventArgs e)
        {
            if (frmMain != null)
            {
                //ShowTipOnWindow("开始提交下注");
                //lblState.Text = frmMain.FengPan ? "aaa" : "bbb";
            }
            bool isSuccess = false;

            if (cbStart.Checked)
            {
                isSuccess = ServerFeiPan.checkLogin();
            }
            if (isSuccess == true)
            {
                ServerFeiPan.getYuE();
                lblState.Text = "使用中";
            }
            else
            {
                lblState.Text = "已停止";
            }
            lblYuE.Text    = ServerFeiPan.KeYongYuE.ToString();
            lblServer.Text = ServerFeiPan.FeidanUrl;
            lblName.Text   = ServerFeiPan.LoginName;
        }