示例#1
0
 protected virtual void OnAfterItemExpand(TreeListItemEventArgs e)
 {
     if (AfterItemExpand != null)
     {
         AfterItemExpand(this, e);
     }
 }
示例#2
0
 protected virtual void OnItemDoubleClick(TreeListItemEventArgs e)
 {
     if (ItemDoubleClick != null)
     {
         ItemDoubleClick(this, e);
     }
 }
示例#3
0
 protected virtual void OnAfterItemCollapse(TreeListItemEventArgs e)
 {
     if (AfterItemCollapse != null)
     {
         AfterItemCollapse(this, e);
     }
 }
示例#4
0
 protected virtual void OnDemandLoad(TreeListItemEventArgs e)
 {
     if (DemandLoad != null)
     {
         DemandLoad(this, e);
     }
 }
示例#5
0
 protected virtual void OnAfterItemCheckChange(TreeListItemEventArgs e)
 {
     if (AfterItemCheckChange != null)
     {
         AfterItemCheckChange(this, e);
     }
 }
示例#6
0
        protected internal void RaiseAfterItemExpandEvent(TreeListItem item)
        {
            var e = new TreeListItemEventArgs {
                Item = item
            };

            OnAfterItemExpand(e);
        }
示例#7
0
        protected internal void RaiseDamanLoadEvent(TreeListItem item)
        {
            var e = new TreeListItemEventArgs {
                Item = item
            };

            OnDemandLoad(e);
        }
示例#8
0
        protected internal void RaiseAfterItemCheckChangeEvent(TreeListItem item)
        {
            var e = new TreeListItemEventArgs {
                Item = item
            };

            OnAfterItemCheckChange(e);
        }
示例#9
0
        protected internal void RaiseItemCheckChanged(TreeListItem item)
        {
            var e = new TreeListItemEventArgs {
                Item = item
            };

            OnItemCheckChanged(e);
        }
示例#10
0
        protected internal void RaiseItemClickEvent(TreeListItem item)
        {
            var e = new TreeListItemEventArgs {
                Item = item
            };

            OnItemClick(e);
        }
示例#11
0
        void TreeList_ItemClick(object sender, TreeListItemEventArgs e)
        {
            if (TreeList.ShowCheckBoxes)
            {
                return;
            }

            SetItem(GetDisplayText(e.Item), GetValue(e.Item));

            HideDropDown();
        }
示例#12
0
        void TreeList_AfterItemCheckChange(object sender, TreeListItemEventArgs e)
        {
            if (!TreeList.ShowCheckBoxes)
            {
                return;
            }

            var sb    = new StringBuilder();
            var array = new List <object>();

            foreach (var item in TreeList.CheckedItems)
            {
                if (sb.Length > 0)
                {
                    sb.Append(",");
                }

                sb.Append(GetDisplayText(item));
                array.Add(GetValue(item));
            }

            SetItem(sb.ToString(), array.Count == 0 ? null : array.ToArray());
        }
示例#13
0
 protected virtual void OnAfterItemExpand(TreeListItemEventArgs e)
 {
     AfterItemExpand?.Invoke(this, e);
 }
示例#14
0
 protected virtual void OnAfterItemCollapse(TreeListItemEventArgs e)
 {
     AfterItemCollapse?.Invoke(this, e);
 }
示例#15
0
 protected virtual void OnDemandLoad(TreeListItemEventArgs e)
 {
     DemandLoad?.Invoke(this, e);
 }
示例#16
0
 protected virtual void OnAfterItemCheckChange(TreeListItemEventArgs e)
 {
     AfterItemCheckChange?.Invoke(this, e);
 }
示例#17
0
 protected virtual void OnItemCheckChanged(TreeListItemEventArgs e)
 {
     ItemCheckChanged?.Invoke(this, e);
 }
示例#18
0
 protected virtual void OnItemDoubleClick(TreeListItemEventArgs e)
 {
     ItemDoubleClick?.Invoke(this, e);
 }