private void UpdateCountDown() { if (System.DateTime.Now.CompareTo(FriendDataManager.Instance.Recommend_expire_date) < 0) { TimeSpan ts1 = new TimeSpan(FriendDataManager.Instance.Recommend_expire_date.Ticks); TimeSpan ts2 = new TimeSpan(System.DateTime.Now.Ticks); TimeSpan ts3 = ts1.Subtract(ts2).Duration(); m_count_down_txt.Text = CommonTools.SecondToStringDay2Second(ts3.TotalSeconds); } else { m_count_down_txt.Text = "00:00:00"; } }