public void SubmitLayerChanges()
 {
     if (CurrentLayer != null)
     {
         CurrentLayer.ID = Layers.Count;
         CurrentLayer.InitializeLayer();
         Layers.Add(CurrentLayer);
         foreach (Layer L in Layers)
         {
             L.MaxID = Layers.Count;
         }
     }
     CurrentLayer = null;
 }