private CheckInclinometer ( Brick brick, object value ) : bool | ||
brick | Brick | |
value | object | |
return | bool |
private bool CheckInclinometer(Brick brick, object value)
{
if (ServiceLocator.SensorService.IsInclinationEnabled())
{
return true;
}
if (value.GetType().Equals(typeof(FormulaNodeInclinationX)) ||
value.GetType().Equals(typeof(FormulaNodeInclinationY)))
{
brick.SensorUnsupported = Visibility.Visible;
return false;
}
return true;
}