Ejemplo n.º 1
0
 private void GetMailHeaders(object param)
 {
     if (SelectedFolder != "")
     {
         IsBrowserVisible = false;
         using (new BusyIndicator())
         {
             try
             {
                 _mailbox.SelectFolder(SelectedFolder);
                 Mails = _mailbox.GetMailHeaders();
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.Message, "Произошла ошибка!", MessageBoxButton.OK, MessageBoxImage.Error);
             }
         }
         IsBrowserVisible = !IsInputMailVisible && SelectedMailText != null;
     }
 }