Esempio n. 1
0
        protected override void OnNextScrollItems()
        {
            if (m_tree.SelectedNode == null)
            {
                if (m_tree.Nodes.Count == 0 && m_bFillCalled == false)
                {
                    CustomCombo.EventArgsBindDropDownControl e = new CustomCombo.EventArgsBindDropDownControl(this, m_dropDownForm, m_tree);
                    OnDropDownControlBinding(e);
                }

                if (m_tree.Nodes.Count > 0)
                {
                    m_tree.SelectedNode = m_tree.Nodes[0];
                    base.Value          = m_tree.SelectedNode.Text;
                }
            }
            else
            {
                m_tree.SelectedNode = FindNextNode(m_tree);

                if (m_tree.SelectedNode != null)
                {
                    base.Value = m_tree.SelectedNode.Text;
                }
            }
        }
Esempio n. 2
0
        public void UserRaiseFillData()
        {
            CustomCombo.EventArgsBindDropDownControl e =
                new CustomCombo.EventArgsBindDropDownControl(this, m_dropDownForm, m_tree);

            OnDropDownControlBinding(e);
        }
Esempio n. 3
0
        protected override void OnDropDownControlBinding(CustomCombo.EventArgsBindDropDownControl e)
        {
            e.BindedControl = m_calendar;

            // in case when we do data load on scroll message then
            m_ctrlBinded     = m_calendar;
            m_bControlBinded = true;
        }
Esempio n. 4
0
        protected override void OnDropDownControlBinding(CustomCombo.EventArgsBindDropDownControl e)
        {
            e.BindedControl  = m_tree;
            m_tree.ImageList = m_imgList;
            RaiseFillTreeByData(e);

            // in case when we do data load on scroll message then
            m_ctrlBinded     = m_tree;
            m_bControlBinded = true;
        }
Esempio n. 5
0
 protected void RaiseFillTreeByData(CustomCombo.EventArgsBindDropDownControl e)
 {
     if (DataFill != null && m_bFillCalled == false)
     {
         EventArgsTreeDataFill ev = new EventArgsTreeDataFill(e);
         m_tree.BeginUpdate();
         DataFill(this, ev);
         m_tree.EndUpdate();
         m_bFillCalled = true;
     }
 }
Esempio n. 6
0
        protected override void OnDropDownControlBinding(CustomCombo.EventArgsBindDropDownControl e)
        {
            base.OnDropDownControlBinding(e);

            TreeView tree = (TreeView)e.BindedControl;

            tree.CheckBoxes    = true;
            tree.FullRowSelect = true;
            tree.HideSelection = false;
            tree.ShowLines     = false;
            tree.ShowPlusMinus = false;
            tree.ShowRootLines = false;
            tree.Sorted        = true;

            tree.AfterCheck += new TreeViewEventHandler(tree_AfterCheck);
        }
Esempio n. 7
0
        protected override void OnPrevScrollItems()
        {
            if( m_tree.SelectedNode == null )
              {
            if( m_tree.Nodes.Count == 0 && m_bFillCalled == false )
            {
              CustomCombo.EventArgsBindDropDownControl e = new CustomCombo.EventArgsBindDropDownControl( this, m_dropDownForm, m_tree );
              OnDropDownControlBinding( e );
            }

            if( m_tree.Nodes.Count > 0 )
            {
              m_tree.SelectedNode = m_tree.Nodes[0];
              base.Value = m_tree.SelectedNode.Text;
            }
              }
              else
              {
            m_tree.SelectedNode = FindPrevNode( m_tree );
            if( m_tree.SelectedNode != null )
            {
              base.Value = m_tree.SelectedNode.Text;
            }
              }
        }
Esempio n. 8
0
        public void UserRaiseFillData()
        {
            CustomCombo.EventArgsBindDropDownControl e =
            new CustomCombo.EventArgsBindDropDownControl( this, m_dropDownForm, m_tree );

              OnDropDownControlBinding( e );
        }
Esempio n. 9
0
 public EventArgsTreeDataFill(CustomCombo.EventArgsBindDropDownControl ev)
     : base(ev.Combo, ev.DropDownForm, ev.BindedControl)
 {
 }