public FrmNangSuatCum() { InitializeComponent(); cumDAO = new CumDAO(); maxCountCum = cumDAO.GetMaxCountOfChuyen(); BuildGridView(); }
public void GetMailSchedule(bool isReconnect) { try { listMailSchedule = BLLMailSchedule.GetAll(); if (listMailSchedule == null) { MessageBox.Show("Không có cấu hình gửi mail."); } else { if (!isReconnect) { maxCountCum = cumDAO.GetMaxCountOfChuyen(); CreateToDataTableNSChuyen(); CreateToDataTableNSCum(); timerSendMailAndReadSound.Enabled = true; CheckForIllegalCrossThreadCalls = false; threadSendMail = new Thread(SendMail); threadSendMail.Start(); } } } catch (Exception) { } }