private void buttonAdd_Click(object sender, EventArgs e) { ColorStopForm form = new ColorStopForm(values, -1); if (form.ShowDialog(this) == DialogResult.OK) { UpdatePreview(); UpdateState(); } }
private void buttonEdit_Click(object sender, EventArgs e) { ColorStopForm form = new ColorStopForm(values, listViewStops.SelectedItems[0].Index + 1); if (form.ShowDialog(this) == DialogResult.OK) { UpdatePreview(); UpdateState(); } }