/// <summary>
 /// Sets the LCD rotation to use.  This must be called before WPF is used.
 /// </summary>
 /// <param name="rotation">The rotation to use.</param>
 /// <returns>true if this rotation is supported, false otherwise.</returns>
 public bool SetLCDRotation(LCDRotation rotation)
 {
     if (_lcdControllerConfig != _config)
     {
         throw new InvalidOperationException("Cannot set LCD rotation on displays that are not LCD controller based");
     }
     if (_wpfWindow != null || _simpleGraphics != null)
     {
         throw new InvalidOperationException("Cannot set LCD rotation once SimpleGraphics or WPF is used");
     }
     return(Mainboard.SetLCDRotation(rotation));
 }
예제 #2
0
 /// <summary>
 /// Sets the LCD rotation to use.  This must be called before WPF is used.
 /// </summary>
 /// <param name="rotation">The rotation to use.</param>
 /// <returns>true if this rotation is supported, false otherwise.</returns>
 public bool SetLCDRotation(LCDRotation rotation) {
     if (_lcdControllerConfig != _config) throw new InvalidOperationException("Cannot set LCD rotation on displays that are not LCD controller based");
     if (_wpfWindow != null || _simpleGraphics != null) throw new InvalidOperationException("Cannot set LCD rotation once SimpleGraphics or WPF is used");
     return Mainboard.SetLCDRotation(rotation);
 }