Exemple #1
0
        public void PageUp(ExGroupBox group)
        {
            Control ctrl = this;

            if (this.Controls[0].GetType() == typeof(ExFlowLayoutPanel))
            {
                ctrl = this.Controls[0];
            }

            for (int t = 0; t < ctrl.Controls.Count; t++)
            {
                if (ctrl.Controls[t].GetType() == typeof(ExGroupBox) &&
                    ctrl.Controls[t] == group)
                {
                    for (int i = t - 1; i >= 0; i--)
                    {
                        if (ctrl.Controls[i].GetType() == typeof(ExGroupBox))
                        {
                            SearchFirstCtrl((ExGroupBox)ctrl.Controls[i]);
                            return;
                        }
                    }
                }
            }
        }
Exemple #2
0
 public void PageDown(ExGroupBox grp)
 {
     if (this.Parent.GetType() == typeof(ExTabPage))
     {
         ((ExTabPage)this.Parent).PageDown(grp);
         return;
     }
 }
Exemple #3
0
 public void SearchFirstCtrl(ExGroupBox grp)
 {
     for (int t = 0; t < grp.Controls.Count; t++)
     {
         if (grp.Controls[t].GetType() != typeof(Label))
         {
             grp.Controls[t].Focus();
             return;
         }
     }
 }