public ComponentCreationWindow(string prompt, TreeViewItem items, AssignmentDelegate assignmentDelegate) { InitializeComponent(); _assignmentDelegate = assignmentDelegate; Prompt.Content = prompt; _componentCreationWindowTreeView = new ComponentCreationWindowTreeView(); _componentCreationWindowTreeView.ComponentManagerTreeView.Items.Add(items); _componentCreationWindowTreeView.Margin = new Thickness(0,30,0,0); GeneralGrid.Children.Add(_componentCreationWindowTreeView); GeneralGrid.Height = 185; Height = 225; }
public ComponentCreationWindow(string prompt, TreeViewItem items, TreeViewItem itemsExtension, AssignmentDelegateExtended assignmentDelegate) { InitializeComponent(); _assignmentDelegateExtended = assignmentDelegate; Prompt.Content = prompt; _componentCreationWindowTreeView = new ComponentCreationWindowTreeView(); _componentCreationWindowTreeView.ComponentManagerTreeView.Items.Add(items); _componentCreationWindowTreeView.Margin = new Thickness(0, 30, 0, 0); _componentCreationWindowTreeViewExtended = new ComponentCreationWindowTreeView(); _componentCreationWindowTreeViewExtended.ComponentManagerTreeView.Items.Add(itemsExtension); _componentCreationWindowTreeViewExtended.Margin = new Thickness(0, 142, 0, 0); GeneralGrid.Children.Add(_componentCreationWindowTreeView); GeneralGrid.Children.Add(_componentCreationWindowTreeViewExtended); GeneralGrid.Height = 297; Height = 337; }