예제 #1
0
        private void OnConnect(object sender)
        {
            string email = "";

            if (sender == btConnectEmail)
            {
                email = this.edEmail.Text;
            }
            else
            if (sender == btConnectEmail2)
            {
                email = this.edEmail2.Text;
            }

            try {
                email = email.Trim();
                var mailer = new EmailConnectionManager(email);
                mailer.Open();
            } catch (Exception exc)
            {
                Util.MsgError(this, AppInfo.Name, exc.Message);
            }

            return;
        }
예제 #2
0
        private void OnConnect(object sender)
        {
            string email = "";

            if ( sender == btConnectEmail ) {
                email = this.edEmail.Text;
            }
            else
            if ( sender == btConnectEmail2 ) {
                email = this.edEmail2.Text;
            }

            try {
                email = email.Trim();
                var mailer = new EmailConnectionManager( email );
                mailer.Open();
            } catch(Exception exc)
            {
                Util.MsgError( this, AppInfo.Name, exc.Message );
            }

            return;
        }