예제 #1
0
        private void SetDelege()
        {
            ShowProgress();
            TxtAccessToken.Text = "";
            DoRequestAccessToken invote = RequestAccessToken;

            invote.BeginInvoke(AsyncCallback, invote);
        }
예제 #2
0
 /// <summary>
 ///  获取access_token
 /// </summary>
 /// Author  : 俞立钢
 /// Company : 绍兴标点电子技术有限公司
 /// Created : 2014-10-15 10:09:03
 private void BtnAccessToken_Click(object sender, EventArgs e)
 {
     _baseInfo = GetBaseInfo();
     //判access_token是否过期
     if (!PublicFun.JudgeAccessToken(_baseInfo.StartDateTime, _baseInfo.EndDateTime))
     {
         MessageBox.Show("该access_token没有过期,不需要重新获取!");
         return;
     }
     ShowProgress();
     DoRequestAccessToken invote = RequestAccessToken;
     invote.BeginInvoke(AsyncCallback, invote);
 }
예제 #3
0
        /// <summary>
        ///  获取access_token
        /// </summary>
        /// Author  : 俞立钢
        /// Company : 绍兴标点电子技术有限公司
        /// Created : 2014-10-15 10:09:03
        private void BtnAccessToken_Click(object sender, EventArgs e)
        {
            _baseInfo = GetBaseInfo();
            //判access_token是否过期
            if (!PublicFun.JudgeAccessToken(_baseInfo.StartDateTime, _baseInfo.EndDateTime))
            {
                MessageBox.Show("该access_token没有过期,不需要重新获取!");
                return;
            }
            ShowProgress();
            TxtAccessToken.Text = "";
            DoRequestAccessToken invote = RequestAccessToken;

            invote.BeginInvoke(new Action(() => HidePrgCreate()));
        }