protected override void OnInit(EventArgs e) { base.OnInit(e); SaveCriteriaButton.Text = TheGlobalisationService.GetString("save_criteria"); var criteriaId = Convert.ToInt32(Request["id"]); _instantiationCriteria = TheWorkflowInstantiationCriteriaService.GetCriteria(criteriaId); _entityUi = TheWorkflowEntityUiResolver.Resolve(_instantiationCriteria); foreach (var control in _entityUi.Render(_instantiationCriteria)) { CiteriaControlsPanel.Controls.Add(control); } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); SaveCriteriaButton.Text = TheGlobalisationService.GetString("save_criteria"); var criteriaId = Convert.ToInt32(Request["id"]); _instantiationCriteria = TheWorkflowInstantiationCriteriaService.GetCriteria(criteriaId); Log.Debug(string.Format("Got criteria of type {0}", _instantiationCriteria.GetType())); _entityUi = TheWorkflowEntityUiResolver.Resolve(_instantiationCriteria); // if (IsPostBack) return; foreach (var control in _entityUi.Render(_instantiationCriteria)) { CiteriaControlsPanel.Controls.Add(control); } }