Example #1
0
        public void PushLayer()
        {
            // Insert a new layer at the end of the list. This is like a stack in which the 'top' is the end of the list

            Edit2DGraphLayer oNewLayer = new Edit2DGraphLayer();

            Edit2dGraphLayerList.Add(oNewLayer);

            MostRecentlySelectedLayer = oNewLayer;

            DrawShapes();
        }
        // ---------------------------------------------------
        public override void DrawShapes()
        {
            if (SubControl == 0)
            {
                this.Clear("#FFFFFF");

                DrawGrid();

                DrawAxis();
            }

            for (int i = 0; i < Edit2dGraphLayerList.Count; i++)
            {
                Edit2DGraphLayer olayer = Edit2dGraphLayerList.GetFrom(i);

                DrawShapes_Layer(olayer, olayer == MostRecentlySelectedLayer, bShowHandles);
            }
        }