private void actionBox_SelectedIndexChanged(object sender, EventArgs e) { InternalBuildStep step = (InternalBuildStep)buildSeqList.SelectedItem; _currentConfig.RemoveStep(step); step.StepType = (BuildStepType)actionBox.SelectedIndex; buildSeqList.Items[buildSeqList.SelectedIndex] = step; _currentConfig.AddStep(step); UpdateStepOptions(); _needsSave = true; }