/// <summary> /// Remove part from particular cutlist. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void bRemove_Click(object sender, EventArgs e) { string[] cl = cbCutlist.Text.Split(new string[] { "REV" }, StringSplitOptions.None); if (cl.Length > 1) { int clid = cd.GetCutlistID(cl[0].Trim(), cl[1].Trim()); if (cd.RemovePartFromCutlist(clid, propertySet) > 0) { UpdateCutlistBox(); } } if (Properties.Settings.Default.MakeSounds) { System.Media.SystemSounds.Beep.Play(); } }