private static void ProcessQuery(List<Layer> layers, Query query) { switch (query.Operation) { case Operations.Add: case Operations.Remove: IntersectLayer(layers, query.Layer); break; case Operations.Question: ShowLayer(layers, query.Layer); break; } }