private void button1_Click(object sender, RoutedEventArgs e)
 {
     if (DataModel.Instance.EmailList.Count > 0)
     {
         Setting s = new Setting(DataModel.Instance.EmailList[DataModel.Instance.EmailList.Count - 1]);
         s.GetNewMailCountLoop();
     }
 }
Exemplo n.º 2
0
 private void InitialEmail()
 {
     this.inWindow.UpdateMailCount();
     if (DataModel.Instance.EmailList != null && DataModel.Instance.EmailList.Count > 0)
     {
         foreach (EMailModal mode in DataModel.Instance.EmailList)
         {
             if (!mode.HasError)
             {
                 Setting s = new Setting(mode);
                 s.GetNewMailCountLoop();
             }
         }
     }
 }