Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            ColorStopForm form = new ColorStopForm(values, -1);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                UpdatePreview();
                UpdateState();
            }
        }