System.Web.UI.WebControls.Validation.fn_validator C# (CSharp) Method

fn_validator() public method

public fn_validator ( int current_view, int border, Color? color = null, System.Web.UI.WebControls.Panel _panel = null ) : bool
current_view int
border int
color Color?
_panel System.Web.UI.WebControls.Panel
return bool
        public bool fn_validator(int current_view = 0, int border = 0, Color? color = null, Panel _panel = null)
        {
            //looops through / iterates all items in form and checks for validation
            color.GetValueOrDefault(Color.Red);
            bool atleastone = false;
                
             foreach (Control a in _panel.Controls.Cast<Control>())
              {
                if (check_control(a, Color.Red, 4))
                {
                    atleastone = true;
                }
              }
             if (atleastone)
             {
                return true;
             }
            return false;
        }