Пример #1
0
 public static void deleteLayer(
     LayerContainers.LayerDict layerDict,
     string layerId
     )
 {
     layerDict.layers.Remove(layerId);
 }
Пример #2
0
 public static void setLayerFields(
     LayerContainers.LayerDict layerDict,
     string layerId,
     Dictionary <string, string> fieldValues
     )
 {
     layerDict.layers[layerId].setFields(fieldValues);
 }
Пример #3
0
 public static Layers.LayersValidated validateLayerFields(
     LayerContainers.LayerDict layerDict,
     string layerId,
     Dictionary <string, string> fieldValues
     )
 {
     return(layerDict.layers[layerId].validateSetFields(fieldValues));
 }
Пример #4
0
 public static bool isValueReadonly(
     LayerContainers.LayerDict layerDict,
     string layerId,
     string valueId
     )
 {
     return(layerDict.layers[layerId].getValueIsReadonly(valueId));
 }
Пример #5
0
 public static bool compareFieldValue(
     LayerContainers.LayerDict layerDict,
     string layerId,
     string valueId,
     string valueToValidate
     )
 {
     return(layerDict.layers[layerId].compareFieldValue(valueId, valueToValidate));
 }
Пример #6
0
        public static void cloneLayer(
            LayerContainers.LayerDict layerDict,
            string sourceLayerId,
            string newLayerId
            )
        {
            if (layerDict.layers.ContainsKey(newLayerId))
            {
                throw new System.Exception("Layer with new id already exists");
            }
            if (!layerDict.layers.ContainsKey(sourceLayerId))
            {
                throw new System.Exception("Layer with source id does not exist");
            }

            layerDict.layers[newLayerId] = layerDict.layers[sourceLayerId].clone();
        }