예제 #1
0
        public static C4Item Component(this C4Item parent, string name, string description, string technology, string alias = "", bool external = false, bool database = false)
        {
            C4Item newItem = new C4Component(name, description, technology, alias, external, database);

            parent.Add(newItem);
            return(parent);
        }
예제 #2
0
        public static C4Item System(this C4Item parent, string name, string description, string alias = "", bool external = false, bool database = false)
        {
            C4Item newItem = new C4System(name, description, alias, external, database);

            parent.Add(newItem);
            return(parent);
        }
예제 #3
0
        public static C4Item Person(this C4Item parent, string name, string description = "", string alias = "", bool external = false)
        {
            C4Item newItem = new C4Person(name, description, alias, external);

            parent.Add(newItem);
            return(parent);
        }
예제 #4
0
        public static C4Item Enterprise(this C4Item parent, string name, string alias = "", Action <C4Item> contains = null)
        {
            C4Item newItem = new C4Enterprise(name, alias);

            parent.Add(newItem);
            if (contains != null)
            {
                contains(newItem);
            }
            return(parent);
        }
예제 #5
0
        public static C4Item SystemBoundary(this C4Item parent, string name, string alias = "", Action <C4Item> contains = null)
        {
            C4Item newItem = new C4SystemBoundary(name, alias);

            parent.Add(newItem);
            if (contains != null)
            {
                contains(newItem);
            }
            return(parent);
        }
예제 #6
0
        public static C4Item Node(this C4Item parent, string name, string technology, string alias = "", Action <C4Item> contains = null)
        {
            C4Item newItem = new C4Node(name, technology, alias);

            parent.Add(newItem);
            if (contains != null)
            {
                contains(newItem);
            }
            return(parent);
        }