Example #1
0
 private bool AreLayerChanged(IList <string> oldNames, IList <Color> oldColors,
                              SortedDictionary <int, bool> oldVisibility)
 {
     if (LayerNames.Count != oldNames.Count)
     {
         return(true);
     }
     for (var i = 0; i < oldNames.Count; i++)
     {
         if (LayerNames[i] != oldNames[i])
         {
             return(true);
         }
     }
     if (LayerColors.Count != oldColors.Count)
     {
         return(true);
     }
     for (var i = 0; i < oldNames.Count; i++)
     {
         if (LayerColors[i] != oldColors[i])
         {
             return(true);
         }
     }
     foreach (var visibleItem in oldVisibility.Keys)
     {
         if (!VisibleIndices.ContainsKey(visibleItem))
         {
             return(true);
         }
     }
     return(false);
 }
Example #2
0
 public bool IsLayerVisible(int layerTagIndex)
 {
     return(Count != 0 && VisibleIndices.ContainsKey(layerTagIndex));
 }