private void tsbRemoveWorktype_Click(object sender, EventArgs e) { if (editedWorkType != null) { editedWorkType.Delete(); editedWorkType = null; tsbRemoveWorktype.Enabled = false; UpdateLists(); } }