Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     if (startMDI())
     {
         _mySettings = new eMDIeMailSettings();
         _sendMail = new sendMail(_mySettings.MailAccount);
         if (!initMail())
         {
             MessageBox.Show("eMail account invalid. Setup an account and restart!");
             stopMDI();
             Application.Exit();
         }
         System.Diagnostics.Debug.WriteLine(_mySettings.Recipient);
     }
     btnSend.Enabled = false;
 }
Exemplo n.º 2
0
        public MailSettings(ref string sAccount)
        {
            InitializeComponent();

            _settings = new eMDIeMailSettings();
            _sRecipient = _settings.Recipient;

            _session = new OutlookSession();
            _account = _session.EmailAccounts[_settings.MailAccount];

            if (_settings.syncInBackground)
                chkSendRcvInBackground.Checked = true;
            else
                chkSendRcvInBackground.Checked = false;

            fillAccountList();
        }