private bool HandleLayers(AppCommand command) { switch (command) { case AppCommand.AddDatabase: LayerHelper.OpenOgrLayer(); return(true); case AppCommand.Open: LayerHelper.AddLayer(LayerType.All); return(true); case AppCommand.AddRaster: LayerHelper.AddLayer(LayerType.Raster); return(true); case AppCommand.AddVector: LayerHelper.AddLayer(LayerType.Vector); return(true); case AppCommand.RemoveLayer: LayerHelper.RemoveLayer(); return(true); case AppCommand.ZoomToLayer: LayerHelper.ZoomToLayer(); return(true); case AppCommand.CreateLayer: Editor.RunCommand(EditorCommand.CreateLayer); return(true); } return(false); }