using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace LYFZ.Software.UI { public partial class frmBackupReminder : LYFZ.ComponentLibrary.BaseContentsFormMain { public frmBackupReminder() { InitializeComponent(); InitializeBakDate(); } /// /// 初化备份日期 /// void InitializeBakDate() { for (int i = 1; i <= 7; i++) { try { this.gpBackupReminder.Controls["lbdate" + i.ToString()].Text = SDateTime.Now.AddDays(-8 + i).ToString("yyyy-MM-dd"); } catch { } } } } }