init
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,16 @@
|
||||
namespace DTS.Common.Enums.Channels
|
||||
{
|
||||
public class ChannelEnumsAndConstants
|
||||
{
|
||||
public const string IsoCodeTypeString = "ISO 13499";
|
||||
public const string UserCodeTypeString = "User";
|
||||
public const int ISO_CODE_LENGTH = 16;
|
||||
public const int USER_CODE_LENGTH = 50;
|
||||
|
||||
public enum ChannelCodeType
|
||||
{
|
||||
ISO,
|
||||
User
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace DTS.Common.Interface.DASFactory.Diagnostics
|
||||
{
|
||||
public interface IArmCheckResults
|
||||
{
|
||||
Dictionary<int, string[]> SensorIds { get; set; }
|
||||
Dictionary<int, double> SquibResistances { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// some DAS (TDAS Pro rack) can have multiple battery voltages for modules ...
|
||||
/// </summary>
|
||||
double?[] BatteryVoltage { get; set; }
|
||||
double? InputVoltage { get; set; }
|
||||
bool? StartLineShorted { get; set; }
|
||||
bool? EventLineShorted { get; set; }
|
||||
short[] TiltSensorDataPre { get; set; }
|
||||
double[] TiltDegrees { get; set; }
|
||||
Dictionary<byte, short[]> IndexedTiltSensorDataPre { get; set; }
|
||||
Dictionary<byte, double[]> IndexedTiltDegrees { get; set; }
|
||||
float[] TemperaturesPre { get; set; }
|
||||
double[] Gains { get; set; }
|
||||
double[] ZeroData { get; set; }
|
||||
IDictionary<InputClockSource, bool> InputClockLocks { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using DTS.Common.Interface;
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The Data Folder changed event.
|
||||
/// </summary>
|
||||
public class TestModificationChangedEvent : CompositePresentationEvent<ITestModificationModel> { }
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using System.Windows.Media;
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Enums.Database;
|
||||
|
||||
namespace DTS.Common.Interface.Database
|
||||
{
|
||||
/// <summary>
|
||||
/// this viewmodel handles the logic for database status in a UI
|
||||
/// it handles the current connection and status
|
||||
/// </summary>
|
||||
public interface IDatabaseStatusBarViewModel : IBaseViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// the associated view for the model
|
||||
/// </summary>
|
||||
IDatabaseStatusBarView View { get; set; }
|
||||
//frees up any memory associated with viewmodel
|
||||
void Unset();
|
||||
/// <summary>
|
||||
/// gets the database type
|
||||
/// use initializevalues to populate
|
||||
/// </summary>
|
||||
DbType DatabaseType { get; }
|
||||
/// <summary>
|
||||
/// gets whether the remote database is connected
|
||||
/// use initializevalues to populate
|
||||
/// </summary>
|
||||
bool RemoteConnected { get; }
|
||||
/// <summary>
|
||||
/// the server (not db) name
|
||||
/// use initialize values to populate
|
||||
/// </summary>
|
||||
string ServerName { get; }
|
||||
/// <summary>
|
||||
/// sets the initial values for db type, server name, and remote connection status
|
||||
/// </summary>
|
||||
/// <param name="dbType"></param>
|
||||
/// <param name="serverName"></param>
|
||||
/// <param name="remoteConnected"></param>
|
||||
void InitializeValues(DbType dbType, string serverName, bool remoteConnected);
|
||||
/// <summary>
|
||||
/// returns the current active db name (either server name or local depending on db type and remote connection status)
|
||||
/// </summary>
|
||||
string ActiveDbName { get; }
|
||||
/// <summary>
|
||||
/// returns the background brush for the active db name
|
||||
/// </summary>
|
||||
Brush BackgroundBrush { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user