RPS.Config.getDomCheckboxValue C# (CSharp) Method

getDomCheckboxValue() private method

private getDomCheckboxValue ( string id ) : bool
id string
return bool
        private bool getDomCheckboxValue(string id)
        {
            HtmlElement he = this.getElementById(id);
            if (he == null) return false;
            switch (he.TagName.ToLower()) {
                case "input":
                    return (bool)he.GetAttribute("checked").ToLower().Equals("true");
                break;
                default:
                    Debug.WriteLine("getCheckboxValue called on non checkbox");
                break;
            }
            return false;
        }