Exemple #1
0
 private void buttonRemoveColorSet_Click(object sender, EventArgs e)
 {
     if (listViewColorSets.SelectedItems.Count > 0)
     {
         string item = listViewColorSets.SelectedItems[0].Text;
         if (!_data.RemoveColorSet(item))
         {
             MessageBox.Show("Error removing Color Set!");
         }
     }
     UpdateColorSetsList();
     UpdateGroupBoxWithColorSet(null, null);
 }
Exemple #2
0
		private void buttonRemoveColorSet_Click(object sender, EventArgs e)
		{
			if (listViewColorSets.SelectedItems.Count > 0) {
				string item = listViewColorSets.SelectedItems[0].Text;
				if (!_data.RemoveColorSet(item)) {
					//messageBox Arguments are (Text, Title, No Button Visible, Cancel Button Visible)
					MessageBoxForm.msgIcon = SystemIcons.Error; //this is used if you want to add a system icon to the message form.
					var messageBox = new MessageBoxForm("Error removing Color Set!", "Error", false, false);
					messageBox.ShowDialog();
				}
			}
			UpdateColorSetsList();
			UpdateGroupBoxWithColorSet(null, null);
		}