예제 #1
0
파일: Form1.cs 프로젝트: hjgode/eMdiMail
 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;
 }
예제 #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();
        }