本文整理汇总了C#中HeliosActionEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# HeliosActionEventArgs类的具体用法?C# HeliosActionEventArgs怎么用?C# HeliosActionEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HeliosActionEventArgs类属于命名空间,在下文中一共展示了HeliosActionEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowAction_Execute
void ShowAction_Execute(object action, HeliosActionEventArgs e)
{
if (Profile != null)
{
Profile.ShowControlCenter();
}
}
示例2: ResetAction_Execute
void ResetAction_Execute(object action, HeliosActionEventArgs e)
{
if (Profile != null)
{
Profile.Reset();
}
}
示例3: StopAction_Execute
void StopAction_Execute(object action, HeliosActionEventArgs e)
{
if (Profile != null)
{
Profile.Stop();
}
}
示例4: IncrementAction_Execute
void IncrementAction_Execute(object action, HeliosActionEventArgs e)
{
if (e.Value.DoubleValue == 0d)
{
SourceInterface.SendData(_incrementData);
}
else
{
SourceInterface.SendData(_incrementPrefix + e.Value.StringValue);
}
}
示例5: FillColorAction_Execute
void FillColorAction_Execute(object action, HeliosActionEventArgs e)
{
try
{
FillColor = (Color)_colorConverter.ConvertFromInvariantString(e.Value.StringValue);
}
catch
{
ConfigManager.LogManager.LogWarning("Rectangle error converting color value. (Name=\"" + Name + "\", Value=\"" + e.Value.StringValue + "\")");
}
}
示例6: LaunchApplication_Execute
void LaunchApplication_Execute(object action, HeliosActionEventArgs e)
{
try
{
Process.Start(e.Value.StringValue);
}
catch (Exception ex)
{
ConfigManager.LogManager.LogError("Error caught launching external application (path=\"" + e.Value.StringValue + "\")", ex);
}
}
示例7: Altitude_Execute
void Altitude_Execute(object action, HeliosActionEventArgs e)
{
_needle.Rotation = _needleCalibration.Interpolate(e.Value.DoubleValue % 1000d);
_tensDrum.Value = e.Value.DoubleValue / 10000d;
// Setup then thousands drum to roll with the rest
double thousands = (e.Value.DoubleValue / 100d) % 100d;
if (thousands >= 99)
{
_tensDrum.StartRoll = thousands % 1d;
}
else
{
_tensDrum.StartRoll = -1d;
}
_drum.Value = e.Value.DoubleValue;
}
示例8: DecrementAction_Execute
void DecrementAction_Execute(object action, HeliosActionEventArgs e)
{
double newValue = _value.Value.DoubleValue - _argValue;
if (_loop)
{
while (newValue < _argMin)
{
newValue += (_argMax - _argMin);
}
}
else
{
newValue = Math.Max(_argMin, newValue);
}
_value.SetValue(new BindingValue(newValue), e.BypassCascadingTriggers);
SourceInterface.SendData(_actionData + _value.Value.DoubleValue.ToString(CultureInfo.InvariantCulture));
}
示例9: DecrementPosition_Execute
private void DecrementPosition_Execute(object action, HeliosActionEventArgs e)
{
long incrementValue = (long)e.Value.DoubleValue;
_targetPosition.SetValue(new BindingValue(_targetPosition.Value.DoubleValue - (incrementValue > 0 ? incrementValue : 1)), e.BypassCascadingTriggers);
Board.Device.SetStepperTargetPosition(Number, (long)_targetPosition.Value.DoubleValue);
}
示例10: Value_Execute
private void Value_Execute(object action, HeliosActionEventArgs e)
{
_value.SetValue(e.Value, e.BypassCascadingTriggers);
_targetPosition.SetValue(new BindingValue(_calibration.Interpolate(e.Value.DoubleValue)), e.BypassCascadingTriggers);
Board.Device.SetStepperTargetPosition(Number, (long)_targetPosition.Value.DoubleValue);
}
示例11: RightTemperature_Execute
private void RightTemperature_Execute(object action, HeliosActionEventArgs e)
{
_rigthTemperature.SetValue(e.Value, e.BypassCascadingTriggers);
_rightLargeNeedle.Rotation = _largeNeedleCalibration.Interpolate(e.Value.DoubleValue);
_rightSmallNeedle.Rotation = _smallNeedleCalibration.Interpolate(e.Value.DoubleValue % 100d);
}
示例12: TargetPosition_Execute
private void TargetPosition_Execute(object action, HeliosActionEventArgs e)
{
_targetPosition.SetValue(e.Value, e.BypassCascadingTriggers);
_servoBoard.SetTargetPosition(_servoNum, (long)e.Value.DoubleValue);
}
示例13: Course_Execute
private void Course_Execute(object action, HeliosActionEventArgs e)
{
_course.SetValue(e.Value, e.BypassCascadingTriggers);
_courseNeedle.Rotation = e.Value.DoubleValue - 180;
_innerBezelMarkers.Rotation = e.Value.DoubleValue - 180;
}
示例14: Heading_Execute
private void Heading_Execute(object action, HeliosActionEventArgs e)
{
_heading.SetValue(e.Value, e.BypassCascadingTriggers);
_compassCard.Rotation = e.Value.DoubleValue;
}
示例15: CurrentBatteryCapacity_Execute
private void CurrentBatteryCapacity_Execute(object action, HeliosActionEventArgs e)
{
_currentBatteryCapacity.SetValue(e.Value, e.BypassCascadingTriggers);
_currentNeedle.Rotation = _needleCalibration.Interpolate(e.Value.DoubleValue);
}