This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
namespace DTS.Common.Enums.DASFactory
{
public enum S6DBDiagnosticChannelList
{
//These match previous Base channels
InputVoltage = 0,
BackupVoltage = 1,
TemperatureC = 2,
BatterySoc = 3,
//These are the rest of the DB diag channels
DiagInputVoltage = 100,
DiagMcuTemperature = 101,
DiagChargerPower = 102,
DiagChargerInputCurrent = 103,
//DiagChargerDischargeCurrent = 104,
DiagEnv_1_Temperature = 104, //Internal
DiagEnv_1_Humidity = 105, //Internal
DiagEnv_2_Temperature = 106,
DiagEnv_2_Humidity = 107,
DiagEnv_3_Temperature = 108,
DiagEnv_3_Humidity = 109,
DiagEnv_4_Temperature = 110,
DiagEnv_4_Humidity = 111,
DiagEnv_5_Temperature = 112,
DiagEnv_5_Humidity = 113,
DiagBatterySoc = 114,
DiagBatteryPackVoltage = 115,
DiagBatteryPackCurrent = 116,
DiagBatteryFgTemperature = 117,
DiagBatteryThermistor1Temperature = 118,
DiagBatteryThermistor2Temperature = 119,
};
}

View File

@@ -0,0 +1,49 @@
using System;
using System.Windows.Input;
namespace DTS.Common.Classes.Viewer.Commands
{
public class RelayCommand : ICommand
{
#region Fields
readonly Action<object> _execute;
readonly Predicate<object> _canExecute;
#endregion // Fields
#region Constructors
public RelayCommand(Action<object> execute)
: this(execute, null)
{
}
public RelayCommand(Action<object> execute, Predicate<object> canExecute)
{
_execute = execute ?? throw new ArgumentNullException("execute");
_canExecute = canExecute;
}
#endregion // Constructors
#region ICommand Members
public bool CanExecute(object parameter)
{
return _canExecute?.Invoke(parameter) ?? true;
}
public event EventHandler CanExecuteChanged
{
add => CommandManager.RequerySuggested += value;
remove => CommandManager.RequerySuggested -= value;
}
public void Execute(object parameter)
{
_execute(parameter);
}
#endregion // ICommand Members
}
}

View File

@@ -0,0 +1,52 @@
using System;
namespace DTS.Common.Classes.Sensors
{
/// <summary>
/// public helper class for ZeroRefence in SIFs, which is serialized to an int
/// </summary>
public class ZeroRef
{
public enum ZeroType
{
AverageOverTime,
UsePreEventDiagnostics,
UseZeroMv
}
public ZeroType ZeroMethod { get; }
public ZeroRef(string zeroref)
{
switch (zeroref)
{
case "0":
ZeroMethod = ZeroType.AverageOverTime;
break;
case "1":
ZeroMethod = ZeroType.UsePreEventDiagnostics;
break;
case "2":
ZeroMethod = ZeroType.UseZeroMv;
break;
default:
throw new NotSupportedException("TDAS::ZeroRef Invalid ZeroRef " + zeroref);
}
}
public ZeroRef(ZeroType type) { ZeroMethod = type; }
public override string ToString()
{
switch (ZeroMethod)
{
case ZeroType.AverageOverTime:
return "0";
case ZeroType.UsePreEventDiagnostics:
return "1";
case ZeroType.UseZeroMv:
return "2";
default:
throw new NotSupportedException("TDAS::ZeroRef Invalid ZeroRef " + ZeroMethod);
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -0,0 +1,21 @@
namespace DTS.Common.Enums.DBExport
{
/// <summary>
/// different tags for an ISODll.MMEFineLocation3
/// </summary>
public enum CustomFinLoc3Fields
{
Date,
Expired,
Fine_Loc_3,
History,
Last_Change,
Last_Change_Text,
Remarks,
S_GUID,
SortKey,
Text_L1,
Text_L2,
Version,
}
}