Ejemplo n.º 1
0
 internal void initArgs(TimTreeViewNode targetBranch, TimTreeViewNode sourceBranch, string targetId, string SourceId, TimTreeViewDropMode mode)
 {
     this._TargetBranch = targetBranch;
     this._SourceBranch = sourceBranch;
     this._TargetTreeID = targetId;
     this._SourceTreeID = SourceId;
     this._DropDownMode = mode;
 }
Ejemplo n.º 2
0
 public TimTreeViewDragEventArgs(TimTreeViewNode target, TimTreeViewNode source)
 {
     this._Target = target;
     this._Source = source;
 }
 public TimTreeViewMenuClickEventArgs(string menuValue, TimTreeViewNode node)
 {
     this._MenuValue = menuValue;
     this._Node      = node;
 }
Ejemplo n.º 4
0
 public TimTreeViewNodeEventArgs(TimTreeViewNode node)
 {
     this._Node = node;
 }
Ejemplo n.º 5
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;
                            }
                        }
                    }
                }
            }
        }