private static void RemoveRandom_Activated(object sender, EventArgs e) { // Here, we remove the random items with the exception of the add and remove items submenu.Remove(item => item != addRandom && item != removeRandom); }