public static ReproduceStep Duplicate(this ReproduceStep step) { return(new ReproduceStep { Text = step.Text.Duplicate(), }); }
private void EditStepByItem(ReproduceStep step) { if (step == null) { return; } var index = steps.IndexOf(step); using (var dlg = new InputBox()) { dlg.Text = "Edit Reproduce Step"; dlg.Prompt = string.Format("Step {0}:", index + 1); dlg.Input = step.Text; if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { step.Text = dlg.Input; steps.ResetItem(index); } } }