public void GetWorksetVisibilities(ViewPlan viewPlan, List <WorksetId> worksetIds) { try { foreach (var wsId in worksetIds) { if (!WorksetVisibilities.ContainsKey(wsId)) { WorksetVisibilities.Add(wsId, viewPlan.GetWorksetVisibility(wsId)); } } } catch (Exception) { // ignored } }