private void validEmail(object sender, CancelEventArgs e) { TextBox txt = sender as TextBox; e.Cancel = ValidationTool.EmailAddressIsWrong(erProvider, txt); }