Ejemplo n.º 1
0
        private void ValidateToken(ref DevExpress.XtraEditors.TokenEditValidateTokenEventArgs e)
        {
            if (mailRegex.IsMatch(e.Description))
            {
                e.IsValid = true;
                e.Value   = e.Description;

                teTo.Properties.Tokens.Add(new DevExpress.XtraEditors.TokenEditToken(e.Description,
                                                                                     new PopupDetails()
                {
                    Fullname   = "",
                    Email      = e.Description,
                    Telephone1 = "",
                    Telephone2 = ""
                }));
                SendKeys.Send("{TAB}");
            }
        }
Ejemplo n.º 2
0
 private void teBcc_ValidateToken(object sender, DevExpress.XtraEditors.TokenEditValidateTokenEventArgs e)
 {
     ValidateToken(ref e);
 }