Ejemplo n.º 1
0
 /// <summary>
 /// Changes the render mode of this container. Note! changing the rendermode means that the CHILDREN render differently, not this container
 /// </summary>
 /// <param name="mode"></param>
 public void ChangeRenderMode(ContainerRenderMode mode)
 {
     RenderMode = mode;
     OnAdd     -= ChildToLinear;
     if (RenderMode == ContainerRenderMode.Linear)
     {
         OnAdd += ChildToLinear;
     }
     AdjustChildren();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Changes the render mode of the selected container
 /// </summary>
 /// <param name="sender">Event sender</param>
 /// <param name="mode">new render mode</param>
 private void ChangeSelectedRenderMode(RadioButton sender, ContainerRenderMode mode)
 {
     if (OpenPlan != null)
     {
         if (OpenPlan.SelectedContainer != null)
         {
             if (sender.Checked)
             {
                 OpenPlan.SelectedContainer.ChangeRenderMode(mode);
             }
         }
     }
 }