private void getEmailuri() { try { incepeIncarcarea(); BColectieEmail lista = BEmail.GetListByParam(CDL.iStomaLab.CDefinitiiComune.EnumStare.Activa, null); if (!(lista.Count == flpListaEmailuri.Controls.Count)) { ImapClient client = new ImapClient(); foreach (var clientEmail in lista) { ControlAdresaEmail ctrlAdresaEmail = new ControlAdresaEmail(); ctrlAdresaEmail.Tag = clientEmail; this.flpListaEmailuri.Controls.Add(ctrlAdresaEmail); ctrlAdresaEmail.Initializeaza(clientEmail); } initControlGestiuneInbox(lista[0]); } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }
private void salveazaEmailuri() { BColectieEmail lista = BEmail.GetListByParam(CDL.iStomaLab.CDefinitiiComune.EnumStare.Activa, null); BEmail email = lista.GetById(lista[0].Id); ImapClient client = new ImapClient(); Logheaza(email, client); }