protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); CreateButton.Text = TheGlobalisationService.GetString("create_workflow_configuration"); ((ButtonField)WorkflowConfigGridView.Columns[4]).Text = TheGlobalisationService.GetString("delete"); WorkflowConfigGridView.DataSource = WorkflowConfigurationService.Instance.ListConfigurations(); WorkflowConfigGridView.DataBind(); if (IsPostBack) { return; } // Typically you'd inherit from WorkflowConfiguration to create your own config types and use the helper to get th // list of options here. // WorkflowConfigsDropDownList.DataSource = TheHelper.WorkflowConfigurationTypes(); WorkflowConfigsDropDownList.DataSource = new List <Type> { typeof(WorkflowConfiguration) }; WorkflowConfigsDropDownList.DataTextField = "Name"; WorkflowConfigsDropDownList.DataValueField = "AssemblyQualifiedName"; WorkflowConfigsDropDownList.DataBind(); }
protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); WorkflowConfigGridView.DataSource = TheWorkflowConfigurationService.ListConfigurations(); WorkflowConfigGridView.DataBind(); if (IsPostBack) { return; } WorkflowConfigsDropDownList.DataSource = TheHelper.WorkflowConfigurationTypes(); WorkflowConfigsDropDownList.DataTextField = "Name"; WorkflowConfigsDropDownList.DataValueField = "AssemblyQualifiedName"; WorkflowConfigsDropDownList.DataBind(); WorkflowConfigsDropDownList.Visible = WorkflowConfigsDropDownList.Items.Count > 1; // EventService.Instance.OnChanged(EventArgs.Empty); }