private void LaunchMailSender() { var notification = new EmailNotification("Был достигнут лимит аккаунтов в центре", _myLimit); _notificationHandler.add_emal_botification_to_list(notification); if ((_notificationHandler.get_email_list_count() == 1) || (_notificationHandler.get_email_list_count() >= 10)) { AddToLog("Отправлено письмо с уведомлением"); _notificationHandler.launch_mail_sender(_myTitle); } }
public void add_emal_botification_to_list(EmailNotification e) { this._emailList.Add(e); }