Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        public BindingsPanel()
        {
            InitializeComponent();

            ProfileExplorerItems = new ProfileExplorerTreeItemCollection();
            LoadBindings(this);
            LoadSources(this);
        }
Ejemplo n.º 3
0
        public BindingsPanel()
        {
            InitializeComponent();

            ProfileExplorerItems = new ProfileExplorerTreeItemCollection();
            LoadBindings(this);
            LoadSources(this);
        }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 public ProfileExplorerPanel()
 {
     ProfileExplorerItems = new ProfileExplorerTreeItemCollection();
     InitializeComponent();
 }
Ejemplo n.º 6
0
 public ProfileExplorerPanel()
 {
     DataContext          = this;
     ProfileExplorerItems = new ProfileExplorerTreeItemCollection();
     InitializeComponent();
 }
Ejemplo n.º 7
0
 public ProfileExplorerPanel()
 {
     ProfileExplorerItems = new ProfileExplorerTreeItemCollection();
     InitializeComponent();
 }