init
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
public class StartStopOverallStatusStateMachineEvent : PubSubEvent<bool> { }
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
namespace DTS.Common.Interface.TestSetups.Imports.TTS.HardwareScan
|
||||
{
|
||||
public interface IHardwareSummaryRecord
|
||||
{
|
||||
uint DOut { get; set; }
|
||||
uint DIn { get; set; }
|
||||
uint Squib { get; set; }
|
||||
uint Analog { get; set; }
|
||||
uint Total { get; }
|
||||
uint SPS { get; set; }
|
||||
uint SPD { get; set; }
|
||||
uint SPT { get; set; }
|
||||
uint ECM { get; set; }
|
||||
uint Rack { get; set; }
|
||||
uint G5 { get; set; }
|
||||
void UpdateTotal();
|
||||
|
||||
void Update(uint analog, uint squib, uint din, uint dout, uint ecm, uint sps, uint spt, uint spd, uint g5,
|
||||
uint rack);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using DTS.Common.Converters;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace DTS.Common.Enums.Viewer.Reports
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum WindowAveragingType
|
||||
{
|
||||
[Description("Averaging")]
|
||||
Averaging,
|
||||
[Description("Peak Hold MAX")]
|
||||
PeakHoldMax,
|
||||
[Description("Peak Hold MIN")]
|
||||
PeakHoldMin,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors.SensorSettingsModule
|
||||
{
|
||||
public interface ISensorSettingsViewModel : IBaseViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// used when saving/reading defaults from db
|
||||
/// </summary>
|
||||
string User { get; set; }
|
||||
/// <summary>
|
||||
/// used when saving/reading defaults from db
|
||||
/// </summary>
|
||||
int UserID { get; set; }
|
||||
/// <summary>
|
||||
/// restores settings to their original values
|
||||
/// </summary>
|
||||
void RestoreOriginalSettings();
|
||||
/// <summary>
|
||||
/// the view for the vm
|
||||
/// </summary>
|
||||
ISensorSettingsView View { get; set; }
|
||||
/// <summary>
|
||||
/// the defaults for squib
|
||||
/// </summary>
|
||||
ISquibSettingDefaults SquibSettings { get; set; }
|
||||
/// <summary>
|
||||
/// the defaults for digital outputs
|
||||
/// </summary>
|
||||
IDigitalOutDefaults DigitalOutSettings { get; set; }
|
||||
IDigitalInputDefaults DigitalInputDefaults { get; set; }
|
||||
IIEPESensorDefaults IEPESensorDefaults { get; set; }
|
||||
ICalibrationPolicy SensorCalibrationDefaults { get; set; }
|
||||
//Fb 13120 default filter class setting
|
||||
IAnalogDefaults AnalogDefaults { get; set; }
|
||||
/// <summary>
|
||||
/// un initializes display and frees memory
|
||||
/// </summary>
|
||||
void Unset();
|
||||
/// <summary>
|
||||
/// initializes display
|
||||
/// </summary>
|
||||
void OnSetActive();
|
||||
/// <summary>
|
||||
/// returns whether settings are valid, saves if they are
|
||||
/// does not save if they are invalid
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool ValidateAndSave();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
|
||||
namespace DTS.Common.Classes.WindowsFolders
|
||||
{
|
||||
public class WindowsFolder
|
||||
{
|
||||
/// <summary>
|
||||
/// Open the folder containing all of the manuals. The default path is C:\DTS\DTS.Suite\(version)\DataPRO\Manuals,
|
||||
/// but this function assumes that the Manuals folder is in the CurrentDirectory, which is always the case
|
||||
/// (even when DataPRO is installed in a non-default location).
|
||||
/// </summary>
|
||||
public static void OpenManualsFolder(string path)
|
||||
{
|
||||
var manualsPath = Path.Combine(path, Constants.ManualsFolder);
|
||||
|
||||
Process.Start(new ProcessStartInfo()
|
||||
{
|
||||
FileName = Constants.WindowsExplorer,
|
||||
Arguments = manualsPath
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user