当前位置: 首页>>代码示例>>C#>>正文


C# HeliosActionEventArgs类代码示例

本文整理汇总了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();
     }
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:7,代码来源:ProfileInterface.cs

示例2: ResetAction_Execute

 void ResetAction_Execute(object action, HeliosActionEventArgs e)
 {
     if (Profile != null)
     {
         Profile.Reset();
     }
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:7,代码来源:ProfileInterface.cs

示例3: StopAction_Execute

 void StopAction_Execute(object action, HeliosActionEventArgs e)
 {
     if (Profile != null)
     {
         Profile.Stop();
     }
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:7,代码来源:ProfileInterface.cs

示例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);
     }
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:11,代码来源:RotaryEncoder.cs

示例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 + "\")");
     }            
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:11,代码来源:RectangleDecoration.cs

示例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);
     }
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:11,代码来源:ProfileInterface.cs

示例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;
        }
开发者ID:Heliflyer,项目名称:helios,代码行数:17,代码来源:Altimeter.cs

示例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));
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:17,代码来源:Axis.cs

示例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);
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:6,代码来源:EosStepper.cs

示例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);
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:6,代码来源:EosStepper.cs

示例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);
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:6,代码来源:EGT.cs

示例12: TargetPosition_Execute

 private void TargetPosition_Execute(object action, HeliosActionEventArgs e)
 {
     _targetPosition.SetValue(e.Value, e.BypassCascadingTriggers);
     _servoBoard.SetTargetPosition(_servoNum, (long)e.Value.DoubleValue);
 }
开发者ID:Heliflyer,项目名称:helios,代码行数:5,代码来源:PhidgetsServo.cs

示例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;
 }
开发者ID:oskargargas,项目名称:helios,代码行数:6,代码来源:NPP.cs

示例14: Heading_Execute

 private void Heading_Execute(object action, HeliosActionEventArgs e)
 {
     _heading.SetValue(e.Value, e.BypassCascadingTriggers);
     _compassCard.Rotation = e.Value.DoubleValue;
 }
开发者ID:oskargargas,项目名称:helios,代码行数:5,代码来源:NPP.cs

示例15: CurrentBatteryCapacity_Execute

 private void CurrentBatteryCapacity_Execute(object action, HeliosActionEventArgs e)
 {
     _currentBatteryCapacity.SetValue(e.Value, e.BypassCascadingTriggers);
     _currentNeedle.Rotation = _needleCalibration.Interpolate(e.Value.DoubleValue);
 }
开发者ID:oskargargas,项目名称:helios,代码行数:5,代码来源:BatteryCapacity.cs


注:本文中的HeliosActionEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。