Пример #1
0
 protected void RemoveControlLayout(ControlLayout ctrl)
 {
     PreviousLayout();
     controls.Remove(ctrl);
 }
Пример #2
0
 protected void AddControlLayout(ControlLayout ctrl)
 {
     ctrl.SetModule(this);
     controls.Add(ctrl);
     currentControlLayout = controls[0];
 }
Пример #3
0
 public void PreviousLayout()
 {
     if (controls == null)
     {
         return;
     }
     int prev = controls.IndexOf(currentControlLayout) - 1;
     if (prev < 0)
     {
         prev = controls.Count - 1;
     }
     currentControlLayout = controls[prev];
     currentControlLayout.Select();
 }
Пример #4
0
 public void NextLayout()
 {
     if (controls == null)
     {
         return;
     }
     int next = controls.IndexOf(currentControlLayout) + 1;
     if (next >= controls.Count)
     {
         next = 0;
     }
     currentControlLayout = controls[next];
     currentControlLayout.Select();
 }
Пример #5
0
 public bool IsLayoutSelected(ControlLayout layout)
 {
     return currentControlLayout == layout;
 }
 public RadioButtonControlGroup(ControlLayout layout)
 {
     radioLayout = layout;
     radioControls = new List<RadioButtonControl>();
 }