コード例 #1
0
        public FormContent(string name)
        {
            if (name == null)
            {
                throw new ArgumentNullException();
            }

            this.name = name;

            container = null;

            hidden = null;

            cssClass = string.Empty;
        }
コード例 #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);
        }
コード例 #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);
        }