Exemplo n.º 1
0
 protected override string GetID(IPSDLayerMappingStrategyComparable x)
 {
     return(x.name.ToLower());
 }
Exemplo n.º 2
0
 public bool Compare(IPSDLayerMappingStrategyComparable x, IPSDLayerMappingStrategyComparable y)
 {
     return(Comparer <T> .Default.Compare(GetID(x), GetID(y)) == 0 && IsGroup(x) == IsGroup(y));
 }
Exemplo n.º 3
0
 protected abstract T GetID(IPSDLayerMappingStrategyComparable layer);
Exemplo n.º 4
0
 protected virtual bool IsGroup(IPSDLayerMappingStrategyComparable layer)
 {
     return(layer.isGroup);
 }
Exemplo n.º 5
0
 protected override int GetID(IPSDLayerMappingStrategyComparable x)
 {
     return(x.layerID);
 }