Example #1
0
      public Form1() {
         InitializeComponent();
         objModel = new MailBaseModelContainer();
         objSmtpList = new List<SmtpHelper>();
         objSmtpList.Add(new SmtpHelper("Mail.ru", "smtp.mail.ru", 25));
         objSmtpList.Add(new SmtpHelper("GMail", "smtp.gmail.com", 58));
         objSmtpList.Add(new SmtpHelper("Yandex", "smtp.yandex.ru", 25));

         comboBox1.Items.AddRange(objSmtpList.Select(s => s.Name).ToArray());
         comboBox1.SelectedIndex = 0;

         textBox6.Text = strEmail;
         textBox7.Text = strPassword;

         timer1.Start();

         UpdateTree();
      }
Example #2
0
        public Form1()
        {
            InitializeComponent();
            objModel    = new MailBaseModelContainer();
            objSmtpList = new List <SmtpHelper>();
            objSmtpList.Add(new SmtpHelper("Mail.ru", "smtp.mail.ru", 25));
            objSmtpList.Add(new SmtpHelper("GMail", "smtp.gmail.com", 58));
            objSmtpList.Add(new SmtpHelper("Yandex", "smtp.yandex.ru", 25));

            comboBox1.Items.AddRange(objSmtpList.Select(s => s.Name).ToArray());
            comboBox1.SelectedIndex = 0;

            textBox6.Text = strEmail;
            textBox7.Text = strPassword;

            timer1.Start();

            UpdateTree();
        }