protected virtual void RenderWarningsButton(HtmlTextWriter writer) { IWebFormInterface form = Forms.GetTopmostForm() as IWebFormInterface; if ((form != null) && (form.ErrorList != null) && HasNonAborts(form.ErrorList)) { RenderStatusButton(writer, Strings.Get("FormLoadWarningsButtonAlt"), @"images/formwarning.png", String.Format(@"Submit('{0}?WarningForFormID={1}',event)", (string)Context.Session["DefaultPage"], ((IWebElement)form).ID)); } }
private void LoadNextForm() { if ((_rootFormHost != null) && (_rootFormHost.NextRequest != null)) { IWebFormInterface newForm = (IWebFormInterface)NodeTypeTable.CreateInstance("FormInterface"); newForm.OnClosing += new CancelEventHandler(MainFormClosing); newForm.OnClosed += new EventHandler(MainFormClosed); newForm = (IWebFormInterface)_rootFormHost.LoadNext(newForm); _rootFormHost.Open(); newForm.Show(); } }
protected virtual void ProcessShowFormWarning(HttpContext context) { string formIDString = context.Request.QueryString["WarningForFormID"]; if ((formIDString != null) && (formIDString != String.Empty)) { IWebFormInterface form = GetForm(formIDString) as IWebFormInterface; if ((form != null) && (form.ErrorList != null)) { ShowFormWarnings(form.ErrorList); } } }
protected virtual void PreprocessFormRequest(HttpContext context) { // Propigate the request to the appropriate form string formIDString = context.Request.Form["FormID"]; if ((formIDString != null) && (formIDString != String.Empty)) { IWebFormInterface form = (IWebFormInterface)GetForm(formIDString); if (form != null) { form.PreprocessRequest(context); } } }