Exemplo n.º 1
0
        /// <summary>
        /// Handles the Validated event of the txtUserId control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void txtUserId_Validated(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txtUserId.Text.Trim())) return;

            using (var db = new UserBase())
                _user = db.GetById(txtUserId.Text.Trim());
        }