Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #7
0
 public void RelateDynamically(string sequenceNumber, C4Item from, string label, C4Item to, string technology = "")
 {
     RelateDynamically(sequenceNumber, from.Alias, label, to.Alias, technology);
 }
Exemple #8
0
 public void Relate(C4Item from, string label, C4Item to, string technology = "")
 {
     Relate(from.Alias, label, to.Alias, technology);
 }