FireValidating() private method

private FireValidating ( CancelEventArgs ce ) : void
ce CancelEventArgs
return void
Example #1
0
        private bool ValidateControl(Control c)
        {
            CancelEventArgs e = new CancelEventArgs();

            c.FireValidating(e);

            if (e.Cancel)
            {
                return(false);
            }

            c.FireValidated();
            return(true);
        }
Example #2
0
		private bool ValidateControl (Control c)
		{
			CancelEventArgs e = new CancelEventArgs ();
			c.FireValidating (e);
			if (e.Cancel)
				return false;
			c.FireValidated ();
			return true;
		}