Ejemplo n.º 1
0
 internal void CreateFamilyRelation(TimTreeView treeView, string selectedValue, TimTreeViewPostType postType)
 {
     foreach (TimTreeViewNode child in this)
     {
         child.CreateFamilyRelation(treeView, selectedValue, postType);
     }
 }
Ejemplo n.º 2
0
 internal void CreateFamilyRelation(TimTreeView treeView, string selectedValue, string targetValue, string sourceValue, string populatedValue, string checkedValue, string contextValue, TimTreeViewPostType postType)
 {
     this._Owner           = treeView;
     this.ChildNodes.Owner = this;
     this.SetPropNode(treeView, this, selectedValue, targetValue, sourceValue, populatedValue, checkedValue, contextValue, postType);
     foreach (TimTreeViewNode child in this.ChildNodes)
     {
         child.Parent = this;
         child._Owner = treeView;
         bool @checked = child.Checked;
         if (@checked)
         {
             treeView.CheckedNodes.Add(child);
         }
         this.SetPropNode(treeView, child, selectedValue, targetValue, sourceValue, populatedValue, checkedValue, contextValue, postType);
         child.CreateFamilyRelation(treeView, selectedValue, targetValue, sourceValue, populatedValue, checkedValue, contextValue, postType);
     }
 }
Ejemplo n.º 3
0
        private void SetPropNode(TimTreeView treeView, TimTreeViewNode node, string selectedValue, string targetValue, string sourceValue, string populatedValue, string checkedValue, string contextValue, TimTreeViewPostType postType)
        {
            bool flag = postType == TimTreeViewPostType.Other;

            if (flag)
            {
                bool flag2 = node.Value.Equals(selectedValue);
                if (flag2)
                {
                    treeView.SelectedNode = node;
                }
                bool flag3 = node.Value.Equals(checkedValue);
                if (flag3)
                {
                    treeView.CheckedNode = node;
                }
                bool flag4 = node.Value.Equals(contextValue);
                if (flag4)
                {
                    treeView.ContextNode = node;
                }
                bool flag5 = node.Value.Equals(populatedValue) && !populatedValue.Trim().Equals(string.Empty);
                if (flag5)
                {
                    treeView.PopulatedNode = node;
                }
            }
            else
            {
                bool flag6 = postType == TimTreeViewPostType.Target;
                if (flag6)
                {
                    bool flag7 = node.Value.Equals(targetValue);
                    if (flag7)
                    {
                        treeView.TargetNode = node;
                    }
                }
                else
                {
                    bool flag8 = postType == TimTreeViewPostType.Source;
                    if (flag8)
                    {
                        bool flag9 = node.Value.Equals(sourceValue);
                        if (flag9)
                        {
                            treeView.SourceNode = node;
                        }
                    }
                    else
                    {
                        bool flag10 = postType == TimTreeViewPostType.Pop;
                        if (flag10)
                        {
                            bool flag11 = node.Value.Equals(populatedValue);
                            if (flag11)
                            {
                                treeView.PopulatedNode = node;
                            }
                        }
                    }
                }
            }
        }
Ejemplo n.º 4
0
 internal void CreateFamilyRelation(TimTreeView treeView, string selectedValue, TimTreeViewPostType postType)
 {
     this.CreateFamilyRelation(treeView, selectedValue, treeView.TargetValue, treeView.SourceValue, treeView.PopulatedValue, treeView.CheckedValue, treeView.ContextValue, postType);
 }