Пример #1
0
 private void TreeControl_OnTreeNodeSelectEvent(object sender, TreeNodeSelectEventArgs e)
 {
     try
     {
         OnSelectObject(e.SelectedOblect);
     }
     catch (Exception ex)
     {
         Log.ShowError(ex);
     }
 }
Пример #2
0
        virtual protected void OnItemActivated()
        {
            if (SelectedNode != null && SelectedNode.Tag != null)
            {
                TreeNodeSelectEventArgs e = new TreeNodeSelectEventArgs();
                e.SelectedOblect = SelectedNode.Tag;

                e.DbClick = true;

                this.OnTreeNodeSelectEvent(this, e);
            }
        }
        virtual protected void OnItemActivated()
        {
            if (SelectedNode != null && SelectedNode.Tag != null)
            {
                TreeNodeSelectEventArgs e = new TreeNodeSelectEventArgs();
                object x = (SelectedNode.Tag is TreeObjectWrap) ? (SelectedNode.Tag as TreeObjectWrap).Tag : SelectedNode.Tag;
                e.SelectedOblect = x;

                e.DbClick = true;

                this.OnTreeNodeSelectEvent(this, e);
            }
        }
Пример #4
0
        virtual protected void OnItemSelected()
        {
            if (SelectedNode != null)
            {
                TreeNodeSelectEventArgs e = new TreeNodeSelectEventArgs();

                if (SelectedNode.Tag != null)
                {
                    e.SelectedOblect = SelectedNode.Tag;
                }

                if (OnTreeNodeSelectEvent != null)
                {
                    this.OnTreeNodeSelectEvent(this, e);
                }
            }
        }
        virtual protected void OnItemSelected()
        {
            if (SelectedNode != null)
            {
                TreeNodeSelectEventArgs e = new TreeNodeSelectEventArgs();

                if (SelectedNode.Tag != null)
                {
                    object x = (SelectedNode.Tag is TreeObjectWrap) ? (SelectedNode.Tag as TreeObjectWrap).Tag : SelectedNode.Tag;
                    e.SelectedOblect = x;
                }

                if (OnTreeNodeSelectEvent != null)
                {
                    this.OnTreeNodeSelectEvent(this, e);
                }
            }
        }