Beispiel #1
0
        public void get_User_Info()
        {
            //label1.Text = Common.User_Name;

            label1.Left = (this.Width - label1.Width) / 2;
            int expiry_Date = Auto_class.Expiry_time(Common.ReNew_time);

            if (Convert.ToInt32(expiry_Date) > 0)
            {
                label2.Text = "剩余有效期:" + expiry_Date + "天";
            }
            else
            {
                label2.Text = "剩余有效期:已到期";
            }

            label2.Left = (this.Width - label2.Width) / 2;
        }