Exemplo n.º 1
0
        public FormContent(string name)
        {
            if (name == null)
            {
                throw new ArgumentNullException();
            }

            this.name = name;

            container = null;

            hidden = null;

            cssClass = string.Empty;
        }
Exemplo n.º 2
0
        public FormGroup GetGroupByName(string name)
        {
            foreach (var g in Contents.OfType <FormGroup>())
            {
                if (g.Name == name)
                {
                    return(g);
                }

                FormGroup formGroup = g.GetGroup(name);

                if (formGroup != null)
                {
                    return(formGroup);
                }
            }

            return(null);
        }
Exemplo n.º 3
0
        public FormGroup GetGroup(string path)
        {
            foreach (var g in Contents.OfType <FormGroup>())
            {
                if (g.Path == path)
                {
                    return(g);
                }

                FormGroup formGroup = g.GetGroup(path);

                if (formGroup != null)
                {
                    return(formGroup);
                }
            }

            return(null);
        }