private void LoadForm() { Affinity.SystemSetting ss = new Affinity.SystemSetting(this.phreezer); ss.Load(Affinity.SystemSetting.DefaultCode); pnlForm.Controls.Clear(); pnlForm.Controls.Add(xmlForm.GetFormFieldControl(rtype.Definition, ss.Data)); }
override protected void PageBase_Init(object sender, System.EventArgs e) { // we have to call the base first so phreezer is instantiated base.PageBase_Init(sender, e); int id = NoNull.GetInt(Request["id"], 0); request = new Affinity.Request(this.phreezer); this.request.Load(id); // add the form for the request details XmlForm xf = new XmlForm(this.request.Account); pnlDetails.Controls.Add(xf.GetFormFieldControl(request.RequestType.Definition, request.Xml)); }
private void LoadForm() { pnlPreferences.Controls.Clear(); pnlPreferences.Controls.Add(xmlForm.GetFormFieldControl(rtype.Definition, this.account.PreferencesXml)); }