Example #1
0
 void OnTransparentChecked()
 {
     if (IsTransparent)
     {
         visual.TurnSolidWireframeOff(context);
         visual.TurnTransparentWireframeOn(context);
     }
     else
     {
         visual.TurnTransparentWireframeOff(context);
         visual.TurnSolidWireframeOn(context);
     }
 }
Example #2
0
 public void HideWireframe(IContextState context)
 {
     if (wireframeComponent == null)
     {
         throw new InvalidOperationException();
     }
     if (wireframeComponent.IsTransparent)
     {
         Visual.TurnTransparentWireframeOff(context);
     }
     else
     {
         Visual.TurnSolidWireframeOff(context);
     }
     ActiveComponents.Remove(wireframeComponent);
     wireframeComponent = null;
 }