private void LoadBindings() { if (BindingObject != null) { ClearBindings(); BindingItems = new ProfileExplorerTreeItemCollection(); if (BindingType == BindingPanelType.Input) { ProfileExplorerTreeItem inputBindings = new ProfileExplorerTreeItem(BindingObject, ProfileExplorerTreeItemType.Action | ProfileExplorerTreeItemType.Binding); if (inputBindings.HasChildren) { foreach (ProfileExplorerTreeItem item in inputBindings.Children) { BindingItems.Add(item); } } } else if (BindingType == BindingPanelType.Output) { ProfileExplorerTreeItem outputBindings = new ProfileExplorerTreeItem(BindingObject, ProfileExplorerTreeItemType.Trigger | ProfileExplorerTreeItemType.Binding); if (outputBindings.HasChildren) { foreach (ProfileExplorerTreeItem item in outputBindings.Children) { BindingItems.Add(item); } } } } else { BindingItems = null; } }
public BindingsPanel() { InitializeComponent(); ProfileExplorerItems = new ProfileExplorerTreeItemCollection(); LoadBindings(this); LoadSources(this); }
public BindingsPanel() { InitializeComponent(); ProfileExplorerItems = new ProfileExplorerTreeItemCollection(); LoadBindings(this); LoadSources(this); }
private ProfileExplorerTreeItem(string name, string description, ProfileExplorerTreeItem parent, ProfileExplorerTreeItemType includeTypes) { _parent = new WeakReference(parent); _name = name; _description = description; _itemType = ProfileExplorerTreeItemType.Folder; _includeTypes = includeTypes; _children = new ProfileExplorerTreeItemCollection(); }
public ProfileExplorerPanel() { ProfileExplorerItems = new ProfileExplorerTreeItemCollection(); InitializeComponent(); }
public ProfileExplorerPanel() { DataContext = this; ProfileExplorerItems = new ProfileExplorerTreeItemCollection(); InitializeComponent(); }
public ProfileExplorerPanel() { ProfileExplorerItems = new ProfileExplorerTreeItemCollection(); InitializeComponent(); }