示例#1
0
 private void buttonAdd_Click(object sender, EventArgs e)
 {
     ColorStopForm form = new ColorStopForm(values, -1);
     if (form.ShowDialog(this) == DialogResult.OK)
     {
         UpdatePreview();
         UpdateState();
     }
 }
示例#2
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();
            }
        }
示例#3
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            ColorStopForm form = new ColorStopForm(values, -1);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                UpdatePreview();
                UpdateState();
            }
        }
示例#4
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();
     }
 }