private void ShowEmptySavedMail() { if (InvokeRequired) { Invoke(new Action(ShowEmptySavedMail)); return; } ListSavedMails.Controls.Clear(); Availble.AvailblePath.Clear(); EmptySavedMails.Show(); }
private void Saved_Load(object sender, EventArgs e) { ShowMailContents.Hide(); #region Check have saved mail or not if (!File.Exists(ListOfPath.SavedMailLogs) || new FileInfo(ListOfPath.SavedMailLogs).Length < 1) { EmptySavedMails.Show(); return; } else { EmptySavedMails.Hide(); } #endregion LoadSavedmails(); FirstTimeLoadFinish = true; // Call Timer Update System.Windows.Forms.Timer UpdateTimer = new System.Windows.Forms.Timer(); UpdateTimer.Interval = 10000; UpdateTimer.Tick += new EventHandler(CallUpdate); UpdateTimer.Start(); }