示例#1
0
        public static List <SmartFormViewProperties> GetControlProperties(string ViewName, Guid ControlGUID)
        {
            FormsManager frm = formmanager();

            SourceCode.Forms.Authoring.View view = new SourceCode.Forms.Authoring.View(frm.GetViewDefinition(ViewName));

            SourceCode.Forms.Authoring.Control control = view.Controls[ControlGUID];

            Properties prop = new Properties();

            return(prop.ArtefactProperties(control.Properties));
        }
示例#2
0
        public static SmartFormViewProperties GetControlExpressions(string FormName, Guid ControlGUID)
        {
            List <SmartFormView> list = new List <SmartFormView>();
            FormsManager         frm  = formmanager();


            SourceCode.Forms.Authoring.Form form = new SourceCode.Forms.Authoring.Form(frm.GetFormDefinition(FormName));

            SourceCode.Forms.Authoring.Control control = form.Controls[ControlGUID];

            Properties prop = new Properties();

            return(prop.ArtefactControlExpressions(control.Expression));
        }
示例#3
0
        public static List <SmartFormViewProperties> GetControlStyleProperties(string FormName, Guid ControlGUID)
        {
            FormsManager frm = formmanager();



            SourceCode.Forms.Authoring.Form form = new SourceCode.Forms.Authoring.Form(frm.GetFormDefinition(FormName));

            SourceCode.Forms.Authoring.Control control = form.Controls[ControlGUID];



            Properties prop = new Properties();

            return(prop.ArtefactStyleProperties(control.Styles));
        }