private void timer1_Tick(object sender, EventArgs e) { //Send_Production_Rport(); button1_Click(sender, e); button2_Click(sender, e); Send_Report_ToEmail email = new Send_Report_ToEmail(user_id); email.Close(); }
private void Send_Report_ToEmail_Load(object sender, EventArgs e) { Get_Day_OfThisMonth(); Load_Emails(); button1_Click(sender, e); button2_Click(sender, e); Send_Report_ToEmail email = new Send_Report_ToEmail(user_id); email.Close(); //this.Close(); }