Exemple #1
0
        public Lifeline CreateLifeline(string id, string name)
        {
            var lifeline = new Lifeline(this, id, name, Lifelines.Count);

            Rows.Extend(lifeline);
            Lifelines.Add(lifeline);
            return(lifeline);
        }
        public void AddLifeline(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ActivityDiagramRuleException();
            }

            if (Lifelines == null)
            {
                Lifelines = new List <Lifeline>();
            }

            Lifelines.Add(new Lifeline()
            {
                Name = name
            });
        }