ATMLCommonLibrary.controls.path.PathControl.OnValidating C# (CSharp) Method

OnValidating() protected method

protected OnValidating ( CancelEventArgs e ) : void
e CancelEventArgs
return void
        protected override void OnValidating( CancelEventArgs e )
        {
            base.OnValidating( e );
            errorProvider1.SetError(this.NodeListControl1, "" );
            if (this.NodeListControl1.Items.Count < 2)
            {
                errorProvider1.SetError(lblError, "A minimum of 2 nodes are required." );
                tabControl1.TabPages[0].BackColor = Color.LightCoral;
                e.Cancel = true;
            }
        }