private static void ShowGraphicsBySelectedType(GraphicsTypesEnum graphicsType) { switch (graphicsType) { case GraphicsTypesEnum.Solution: ShowGeocalulatorGraphics(); ShowVisibilityGraphics(); ShowProfileGraphics(); break; case GraphicsTypesEnum.Geocalculator: ShowGeocalulatorGraphics(); break; case GraphicsTypesEnum.Visibility: ShowVisibilityGraphics(); break; case GraphicsTypesEnum.Profile: ShowProfileGraphics(); break; case GraphicsTypesEnum.None: return; } }
private static void ClearGraphicsBySelectedType(GraphicsTypesEnum graphicsType) { var graphicsLayerManager = GraphicsLayerManager.GetGraphicsLayerManager(ArcMapInstance.Document.ActiveView); switch (graphicsType) { case GraphicsTypesEnum.All: graphicsLayerManager.RemoveAllGraphicsFromMap(); break; case GraphicsTypesEnum.AllButSolution: graphicsLayerManager.RemoveSolutionGraphics(true); break; case GraphicsTypesEnum.Solution: graphicsLayerManager.RemoveSolutionGraphics(false); break; case GraphicsTypesEnum.Geocalculator: graphicsLayerManager.RemoveModuleGeometryFromMap(null, MilSpaceGraphicsTypeEnum.GeoCalculator); break; case GraphicsTypesEnum.Visibility: graphicsLayerManager.RemoveModuleGeometryFromMap(null, MilSpaceGraphicsTypeEnum.Visibility); break; case GraphicsTypesEnum.Profile: graphicsLayerManager.RemoveModuleGeometryFromMap(null, MilSpaceGraphicsTypeEnum.Session); break; case GraphicsTypesEnum.None: return; } }