public partial class Partner Element private Dictionary string Element

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
public partial class Partner : Element
{
private Dictionary<string, Element> stepDic = new Dictionary<string, Element>();
public Partner(partner _partner)
{
try
{
if (_partner.step != null)
{
foreach (step _step in _partner.step)
{
if (!stepDic.ContainsKey(_step.id))
{
Step innerStep = new Step(_step);
stepDic.Add(innerStep.ID, innerStep);
}
}
}
base.Type = ElementType.Partner;
base.ID = _partner.id;
}
catch (Exception e)
{
ManageException.LogException(e, "Partner constructor");
}
}
}