protected virtual void OnOutputModeChanged(UserOutputMode newOutputMode) { if (OutputModeChanged == null) { return; } OutputModeChanged(this, new EventArgs <UserOutputMode>(newOutputMode)); }
internal UserOutput(UserOutputType outputType, UserOutputMode outputMode, ushort threshold) { OutputType = outputType; OutputMode = outputMode; Threshold = OutputType == UserOutputType.Rpm ? (ushort)(threshold * 100) : threshold; }