示例#1
0
        private void buttonChange_Click(object sender, EventArgs e)
        {
            ColorHighlight form = new ColorHighlight(listBox1.SelectedIndex);

            form.Owner = this;
            form.ShowDialog();
            Data[listBox1.SelectedIndex] = (Owner as MainForm).ColorConditions[listBox1.SelectedIndex][0].ToString();
            listBox1.DataSource          = null;
            listBox1.DataSource          = Data;
            //listBox1.ResetText();
        }
        private void добавитьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ColorHighlight form = new ColorHighlight();

            form.Owner = (Form)this;
            form.ShowDialog();

            if (form.DialogResult != DialogResult.Cancel)
            {
                Coloring(ColorConditions.Count - 1);
            }
        }