private void RefreshPushGiftBtn() { this.m_push_gift_count_txt.Text = PushGiftManager.Instance.GetLoginTypeCount().ToString(); if (PushGiftManager.Instance.GetLoginTypeCount() > 0) { this.m_push_gift_left_time_txt.Text = CommonTools.SecondToStringDay2Minute((double)(PushGiftManager.Instance.GetLoginTypeLeftTime())); TimeModule.Instance.SetTimeInterval(UpdatePushGiftTimer, 30.0f); m_push_gift_btn.Visible = true; } else { TimeModule.Instance.RemoveTimeaction(UpdatePushGiftTimer); m_push_gift_btn.Visible = false; } }
private void UpdatePushGiftTimer() { this.m_push_gift_left_time_txt.Text = CommonTools.SecondToStringDay2Minute((double)(PushGiftManager.Instance.GetLoginTypeLeftTime())); }