private void CategoryName_Changed(object sender, EventArgs e) { apply.Enabled = ForbiddenChars != null && CategoryName.Intersect(ForbiddenChars).Count() == 0 && CategoryName.Length > 0; }