public GrupArayuzOlusturPopupWindow(NodeViewModel node) { this.node = node; InitializeComponent(); group = node.NodesCanvas.GroupList.Where(x => x.UniqueId == node.UniqueId).FirstOrDefault(); NodeComboBox.ItemsSource = group.NodeList; NodeComboBox.SelectedItem = group.NodeList.First(); }
public GroupDetailPopupWindow(GroupUngroupModel group) { this.group = new GroupUngroupModel(); this.group.UniqueId = group.UniqueId; this.group.Name = group.Name; this.group.NodeList = new List <NodeViewModel>(); foreach (var node in group.NodeList) { this.group.NodeList.Add(node); } this.group.InternalConnectList = group.InternalConnectList; this.group.ExternalConnectList = group.ExternalConnectList; this.group.InputList = group.InputList; this.group.OutputList = group.OutputList; InitializeComponent(); Loaded += Window_Loaded; }