user interface - can C# read in a xml file to change its gui at runtime -
i making application generate , sql scripts template , after taking input different fields user.
there many templates, gui needs adjust fields user filling out.
in interest of keeping scalable, i'd rather not hardcode guis program, have read xml file , change based on template user has selected.
this preferred because if new template arise, program needs xml file corresponds template. , actual code not need changed. have eyes set on using c# this, have experiences using it. open suggestions other languages though.
edit: project work, , wanted sure possible c# before convincing employers expand using c#.
you sort of thing subclassing windows.forms.form , adding constructor accept xml file parameter. add parser xml file interpret instructions labels , fields want add consistent form design (say, 2 columns label field name on left , actual input field on right, achievable filling form tablelayoutpanel). need lay out design constraints beginning , stick them.
this visual studio when create form through designer anyway, i'd suggest start creating example form manually , looking @ kind of code places in form's designer.cs file
Comments
Post a Comment