Exemplo n.º 1
0
 private void AddLayerNode(VectorLayerWrapper layer)
 {
     _syncContext.Post((o) =>
     {
         var l = o as VectorLayerWrapper;
         if (l != null)
         {
             SubItems.AddDatabaseLayer(l.Layer, l.MultipleGeometries);
         }
     }, layer);
 }
Exemplo n.º 2
0
 private void AddLayerNode(VectorLayerWrapper layer)
 {
     Logger.Current.Trace("AddLayerNode (Post): " + layer.Layer.Name);
     _syncContext.Send(o =>
     {
         var l = o as VectorLayerWrapper;
         if (l != null)
         {
             SubItems.AddDatabaseLayer(l.Layer, l.MultipleGeometries);
             Logger.Current.Trace(l.Layer.Name + " added as node");
         }
         else
         {
             Logger.Current.Trace("In AddLayerNode. l is null.");
         }
     }, layer);
 }