public void Pop()
 {
     if (current_layer_ == null)
     {
         return;
     }
     current_layer_ = current_layer_.parent();
 }
Exemplo n.º 2
0
        public void pop()
        {
            if (this._currentLayer == null)
            {
                return;
            }

            this._currentLayer = this._currentLayer.parent;
        }
Exemplo n.º 3
0
        void _pushLayer(ContainerLayer layer)
        {
            if (this._rootLayer == null)
            {
                this._rootLayer    = layer;
                this._currentLayer = layer;
                return;
            }

            if (this._currentLayer == null)
            {
                return;
            }

            this._currentLayer.add(layer);
            this._currentLayer = layer;
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            var appConfig          = LoadConfiguration();
            var systemContextLayer = new SystemContextLayer();
            var containerLayer     = new ContainerLayer();
            var c4Style            = new C4Style();
            var c4Uploader         = new C4Uploader();

            //https://structurizr.com/workspace/62359
            var workspace = new Workspace("Cinema System", "This is a model of Cinema software system.");

            systemContextLayer.AddLayerToModel(workspace);
            containerLayer.AddLayerToModel(workspace);

            c4Style.CreateStyle(workspace);
            c4Uploader.UploadWorkspaceToStructurizr(workspace, appConfig.Structurizer);
        }
        protected void PushLayer(ContainerLayer layer)
        {
            if (root_layer_ == null)
            {
                root_layer_    = layer;
                current_layer_ = root_layer_;
                return;
            }

            if (current_layer_ == null)
            {
                return;
            }

            ContainerLayer newLayer = layer;

            current_layer_.Add(layer);
            current_layer_ = newLayer;
        }
 public static NativeEngineLayer MakeRetained(ContainerLayer layer)
 {
     return(new NativeEngineLayer(layer));
 }
 NativeEngineLayer(ContainerLayer layer)
 {
     _layer = layer;
 }