private void addColorButton_Click(object sender, EventArgs e) { var f = new ModifyColorSetForm(this.Colors); f.ShowDialog(); if (f.Succesful) { this._isModified = true; this.ColorsDescriptions.Add(f.ColorSetDescription); this.refreshColors(); } }
private void colorsListBox_DoubleClick(object sender, EventArgs e) { if (this.colorsListBox.SelectedIndex != -1) { var f = new ModifyColorSetForm(this.Colors, this.ColorsDescriptions[this.colorsListBox.SelectedIndex]); f.ShowDialog(); if (f.Succesful) { this._isModified = true; this.ColorsDescriptions[this.colorsListBox.SelectedIndex] = f.ColorSetDescription; this.refreshColors(); } } }