GraphicEditor.Model.ToolBehavior.GraphicContent.InitFromGeFile C# (CSharp) Method

InitFromGeFile() public method

public InitFromGeFile ( string fileName ) : GraphicContent
fileName string
return GraphicContent
        public GraphicContent InitFromGeFile(string fileName)
        {
            List<Layer> tempLayers = new List<Layer>(Layers);

            foreach (Layer layer in tempLayers)
                RemoveLayerEventHandler(layer);

            Command.InsertGeFile(fileName, this);
            
            return this;
        }
    }