Example #1
0
        public dtoCPMlink(dtoCPMactivity source, ParsedActivityLink pal, Dictionary <Int64, dtoCPMactivity> dict)
        {
            try
            {
                Source  = source;
                Target  = dict[pal.Id];
                Type    = pal.LinkType;
                LeadLag = pal.LeadLag;

                Source.Predecessors.Add(this);
                Target.Successors.Add(this);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Example #2
0
        public dtoCPMlink(dtoCPMactivity source, ParsedActivityLink pal, dtoCPMactivity target)
        {
            try
            {
                Source  = source;
                Target  = target;
                Type    = pal.LinkType;
                LeadLag = pal.LeadLag;

                Source.Predecessors.Add(this);
                Target.Successors.Add(this);
            }
            catch (Exception ex)
            {
                throw;
            }
        }