示例#1
0
            public CCForm(CCreator parent, ITisFormData form)
#endif
                : base(parent, form != null? form.Name:String.Empty,
                       parent == null || !parent.CurrentProfile.IgnoreExceptions ? CCUtils.GetSpecialTags(form) : null,
                       parent == null || !parent.CurrentProfile.IgnoreNamedUserTags ? CCUtils.GetNamedUserTags(form, false) : null,
                       parent == null || !parent.CurrentProfile.IgnoreUserTags ? CCUtils.GetUserTags(form, true) : null)
            {
                try
                {
                    if (pages == null)
                    {
                        pages = new List <CCPage>();
                    }
                    else
                    {
                        pages.Clear();
                    }

                    this.ParentCollection = form.ParentCollection;
                    this.FormType         = form.FormType;
                    this.EflowOwner       = form;
                    this.NamedParent      = form.ParentCollection.Name;

                    foreach (ITisPageData pg in form.LinkedPages)
                    {
                        pages.Add(new CCPage(this.ParentCreator, pg));
                    }
                }
                catch (Exception ex)
                {
                    ILog.LogError(ex);
                }
            }
示例#2
0
 internal CCForm(CCreator parent, ITisFormData form)
示例#3
0
 public CCForm(ITisFormData form)
     : this(null, form)
 {
 }