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); }
protected void SavePropertiesButtonClick(object sender, EventArgs e) { var values = _ui.UiProperties.ToDictionary(uiProperty => uiProperty.PropertyName, uiProperty => uiProperty.Value); TheWorkflowConfigurationService.SetConfigurationProperties(_config.Id, values); }