private void timer1_Tick(object sender, EventArgs e) { if (DateTime.Now.Day == '1') { ExeMySQLCommand cmd = new ExeMySQLCommand(); int year = DateTime.Today.Year; int month = DateTime.Today.Month; cmd.CreateMonthRetrnData(year, month); } }
public Form1() { InitializeComponent(); this.Text = "服务器"; RemotingServer.Start(); Hide(); notifyIcon1.Visible = true; notifyIcon1.ShowBalloonTip(30); timer1.Start(); ExeMySQLCommand cmd = new ExeMySQLCommand(); int year = DateTime.Today.Year; int month = DateTime.Today.Month; //cmd.CreateMonthRetrnData(year, month); //cmd.CreateSeasonRetrnData(year, month); //cmd.CreateCustomRetrnData(); }