private void olvOutputParameters_CellEditStarting(object sender, BrightIdeasSoftware.CellEditEventArgs e) { OutputParameterMap parameterMap = (OutputParameterMap)e.RowObject; if (e.Column == olvColumnOutputParameterType) { ComboBox cb = e.AttachEditCombobox(ComboBoxStyle.DropDownList, Enum.GetValues(typeof(OutputParameterType)), false); cb.SelectedItem = parameterMap.ParameterType; } if (e.Column == olvColumnInputParameterName && parameterMap.ParameterType == OutputParameterType.Return) { e.Control.Enabled = false; } if (e.Column == olvColumnOutputParameterStateVariable) { ComboBox cb = e.AttachEditCombobox(ComboBoxStyle.DropDown); cb.BindEditableStateVariables(this.StepEditContext.StateVariables.Primitives(), parameterMap.StateVariable); } if (e.Column == olvColumnOutputParameterXMLOutputMode) { ComboBox cb = e.AttachEditCombobox(ComboBoxStyle.DropDownList, Enum.GetValues(typeof(XMLFieldOutputMode)), false); cb.SelectedItem = parameterMap.XMLFieldOutputMode; } if (e.Column == olvColumnOutputParameterPersistenceMode) { CheckBox cb = e.AttachEditControl <CheckBox>(); cb.Checked = parameterMap.PersistenceMode == PersistenceMode.Persisted; } }
private void olvInputParameters_CellEditStarting(object sender, BrightIdeasSoftware.CellEditEventArgs e) { if (e.Column == olvColumnInputParameterValue) { InputParameterMap parameterMap = (InputParameterMap)e.RowObject; OLVOutputValueEditor olvOutputValueEditor = e.AttachEditControl <OLVOutputValueEditor>(); olvOutputValueEditor.SetContext(StepEditContext.StateVariables, parameterMap.ParameterValue, parameterMap.TrimVariableValueWhitespace); } }
private void olvTableResults_CellEditStarting(object sender, BrightIdeasSoftware.CellEditEventArgs e) { TableResultMap tableResultMap = (TableResultMap)e.RowObject; if (e.Column == olvColumnTableResultStateVariable) { ComboBox cb = e.AttachEditCombobox(ComboBoxStyle.DropDown); cb.BindEditableStateVariables(this.StepEditContext.StateVariables.Primitives(), tableResultMap.StateVariable); } if (e.Column == olvColumnTableResultXMLOutputMode) { ComboBox cb = e.AttachEditCombobox(ComboBoxStyle.DropDownList, Enum.GetValues(typeof(XMLFieldOutputMode)), false); cb.SelectedItem = tableResultMap.XMLFieldOutputMode; } if (e.Column == olvColumnTableResultPersistenceMode) { CheckBox cb = e.AttachEditControl <CheckBox>(); cb.Checked = tableResultMap.PersistenceMode == PersistenceMode.Persisted; } }