Inheritance: System.Web.UI.WebControls.CompositeControl, IRockControl
Example #1
0
        /// <summary>
        /// Creates the control(s) necessary for prompting user for a new value
        /// </summary>
        /// <param name="configurationValues">The configuration values.</param>
        /// <param name="id"></param>
        /// <returns>
        /// The control
        /// </returns>
        public override System.Web.UI.Control EditControl( Dictionary<string, ConfigurationValue> configurationValues, string id )
        {
            WorkflowPicker editControl = new WorkflowPicker { ID = id };

            if ( configurationValues != null && configurationValues.ContainsKey( WORKFLOW_TYPE_KEY ) )
            {
                int workflowTypeId = 0;
                if ( Int32.TryParse( configurationValues[WORKFLOW_TYPE_KEY].Value, out workflowTypeId ) && workflowTypeId > 0 )
                {
                    editControl.WorkflowTypeId = workflowTypeId;
                }
            }

            return editControl;
        }