public static void DrawLayer(DevicePanel GraphicPanel, bool ShowLayer, bool EditLayer, Classes.Scene.EditorLayer layer)
 {
     if (layer != null)
     {
         if (ShowLayer || EditLayer)
         {
             layer.Draw(GraphicPanel);
         }
     }
 }