コード例 #1
0
        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);
        }
コード例 #2
0
        protected void SavePropertiesButtonClick(object sender, EventArgs e)
        {
            var values = _ui.UiProperties.ToDictionary(uiProperty => uiProperty.PropertyName, uiProperty => uiProperty.Value);

            TheWorkflowConfigurationService.SetConfigurationProperties(_config.Id, values);
        }