Example #1
0
        internal VectorImage AddLayer()
        {
            VectorImage img = new VectorImage();

            layers.Add(img);
            img.Name = "Layer " + layers.Count;
            return(img);
        }
Example #2
0
 internal void RemoveLayer(VectorImage img)
 {
     layers.Remove(img);
     if (layers.Count == 0)
     {
         AddLayer();
     }
     if (selectedLayer >= layers.Count)
     {
         selectedLayer = layers.Count - 1;
     }
 }
Example #3
0
 internal void Set(VectorImage img)
 {
     selectedLayer = layers.IndexOf(img);
 }