Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e) {
            string[] s1 = config1.Split('|');
            string[] s2 = config2.Split('|');

            server1 = new SmtpServer() { Host = s1[0], Port = s1[1].ToInt(), From = s1[2], To = s1[3], UserName = s1[4], Passwrod = s1[5] };
            server2 = new SmtpServer() { Host = s2[0], Port = s2[1].ToInt(), From = s2[2], To = s2[3], UserName = s2[4], Passwrod = s2[5] };

            property1.SelectedObject = server1;
            property2.SelectedObject = server2;
        }
Exemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            string[] s1 = config1.Split('|');
            string[] s2 = config2.Split('|');

            server1 = new SmtpServer()
            {
                Host = s1[0], Port = s1[1].ToInt(), From = s1[2], To = s1[3], UserName = s1[4], Passwrod = s1[5]
            };
            server2 = new SmtpServer()
            {
                Host = s2[0], Port = s2[1].ToInt(), From = s2[2], To = s2[3], UserName = s2[4], Passwrod = s2[5]
            };

            property1.SelectedObject = server1;
            property2.SelectedObject = server2;
        }