public void FromNodeFamily(NodeFamily nodeFamily) { IdentifierPartRangeControl.FromRanges(nodeFamily.Ranges); validationTemplateBox.Text = nodeFamily.ValidationTemplate; FamilyName.Text = nodeFamily.Name; var windows = new List <Window>(); foreach (var conditionalProperty in nodeFamily.ConditionalProperties) { var window = new NodeConditionalPropertyWindow(); window.FromConditionalProperty(conditionalProperty); windows.Add(window); } PropertiesControl.SetNewWindows(windows); }
public void FromEdgeFamily(EdgeFamily edgeFamily) { IdentifierPartRangeControl.FromRanges(edgeFamily.Ranges); validationTemplateBox.Text = edgeFamily.ValidationTemplate; FamilyName.Text = edgeFamily.Name; SetNodeFamilies(edgeFamily.Target.NodeFamilyName, edgeFamily.Source.NodeFamilyName); _targetWindow = new EdgeEndControl(edgeFamily.Target); _sourceWindow = new EdgeEndControl(edgeFamily.Source); _targetWindow.EdgeEndIdParts.ForEach(x => Debug.WriteLine($"{x.IdPart}, {x.Template}")); var windows = new List <Window>(); foreach (var conditionalProperty in edgeFamily.ConditionalProperties) { var window = new EdgeConditionalPropertyWindow(); window.FromConditionalProperty(conditionalProperty); windows.Add(window); } PropertiesControl.SetNewWindows(windows); }