init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
namespace DTS.Common.RibbonControl
|
||||
{
|
||||
public class ApplicationMenuItemData : MenuItemData
|
||||
{
|
||||
public ApplicationMenuItemData()
|
||||
: this(false)
|
||||
{
|
||||
}
|
||||
|
||||
public ApplicationMenuItemData(bool isApplicationMenu)
|
||||
: base(isApplicationMenu)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using System.Windows;
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
public class ViewerSettingsVisibilityChangedEvent : CompositePresentationEvent<Visibility> { }
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
namespace DTS.Common.Constant
|
||||
{
|
||||
public static class DigitalInputs
|
||||
{
|
||||
/// <summary>
|
||||
/// magic number from CPB
|
||||
/// a transition across 19005 flips the bit
|
||||
/// UPDATE:
|
||||
/// Currently the plan for the DIM thresholds is:
|
||||
///1. Voltage input: 19661 (1.5V with sig- grounded)
|
||||
///2. Contact Closure: 19005 (stays the same as what it used to be)
|
||||
///VoltageInput should be used for digital modes THL and TLH
|
||||
/// </summary>
|
||||
public const double ConstantCurrentBreakPointDefault = 19005D;
|
||||
public const double VoltageInputBreakPointDefault = 19661D;
|
||||
/// <summary>
|
||||
/// the default value for whether to display SLICE PRO Digital ADC or not
|
||||
/// </summary>
|
||||
public const bool DisplaySPDADCDefault = false;
|
||||
/// <summary>
|
||||
/// the current constant current break point
|
||||
/// does not query value from storage, only holds value static and relies on value being set separately
|
||||
/// </summary>
|
||||
public static double ConstantCurrentBreakPoint { get; set; } = ConstantCurrentBreakPointDefault;
|
||||
/// <summary>
|
||||
/// the voltage input break point
|
||||
/// does not query value from storage, only holds value static and relies on value being set separately
|
||||
/// </summary>
|
||||
public static double VoltageInputBreakPoint { get; set; } = VoltageInputBreakPointDefault;
|
||||
|
||||
/// <summary>
|
||||
/// controls whether to display SLICE Pro Digital analog ADC
|
||||
/// does not query value from storage, only holds value static and relies on value being set separately
|
||||
/// </summary>
|
||||
public static bool DisplaySPDADC { get; set; } = DisplaySPDADCDefault;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
namespace DTS.Common.Classes.Groups
|
||||
{
|
||||
// ReSharper disable once InconsistentNaming
|
||||
/// <summary>
|
||||
/// this class encapsulates and enumerates all possible errors while importing a .GRP file
|
||||
/// </summary>
|
||||
public class GroupGRPImportError
|
||||
{
|
||||
public enum Errors
|
||||
{
|
||||
FileEmpty,
|
||||
InvalidISOCodeInput,
|
||||
InvalidFullScaleInput,
|
||||
InvalidSensorInput,
|
||||
InvalidInvertInput,
|
||||
SensorNotFound,
|
||||
InvalidInputMode,
|
||||
InvalidDefaultValue,
|
||||
InvalidActiveValue,
|
||||
InvalidFireMode,
|
||||
InvalidDelay,
|
||||
InvalidLimitDuration,
|
||||
InvalidDuration,
|
||||
InvalidCurrent
|
||||
}
|
||||
public Errors ErrorCode { get; set; }
|
||||
public string File { get; set; }
|
||||
public int Line { get; set; }
|
||||
public string ExtraInfo { get; set; }
|
||||
public override string ToString()
|
||||
{
|
||||
return ExtraInfo;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user