init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Event to inform app that com status has changed
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
public class CommActiveEvent : PubSubEvent<ComStatusArg> { }
|
||||
|
||||
public enum ComStatusArg
|
||||
{
|
||||
CommandStart,
|
||||
ResponseStart
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Windows.Media.Imaging;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
#region ImageAttribute
|
||||
public interface IAssemblyImageAttribute
|
||||
{
|
||||
string AssemblyName { get; }
|
||||
BitmapImage AssemblyImage { get; }
|
||||
eAssemblyRegion AssemblyRegion { get; }
|
||||
Type GetType();
|
||||
BitmapImage GetAssemblyImage();
|
||||
string GetAssemblyName();
|
||||
eAssemblyRegion GetAssemblyRegion();
|
||||
}
|
||||
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
|
||||
public abstract class ImageAttribute : Attribute, IAssemblyImageAttribute
|
||||
{
|
||||
public abstract string AssemblyName { get; }
|
||||
public abstract string AssemblyGroup { get; }
|
||||
public abstract eAssemblyRegion AssemblyRegion { get; }
|
||||
public abstract BitmapImage AssemblyImage { get; }
|
||||
public abstract Type GetAttributeType();
|
||||
public abstract BitmapImage GetAssemblyImage();
|
||||
public abstract string GetAssemblyName();
|
||||
public abstract string GetAssemblyGroup();
|
||||
|
||||
public abstract eAssemblyRegion GetAssemblyRegion();
|
||||
}
|
||||
#endregion ImageAttribute
|
||||
|
||||
#region NameAttribute
|
||||
public interface IAssemblyNameAttribute
|
||||
{
|
||||
String AssemblyName { get; }
|
||||
Type GetType();
|
||||
string GetAssemblyName();
|
||||
}
|
||||
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
|
||||
public abstract class TextAttribute : Attribute, IAssemblyNameAttribute
|
||||
{
|
||||
public abstract string AssemblyName { get; }
|
||||
public abstract Type GetAttributeType();
|
||||
public abstract string GetAssemblyName();
|
||||
}
|
||||
#endregion NameAttribute
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using DTS.Common.Enums;
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors.SensorsList
|
||||
{
|
||||
public interface ISquib
|
||||
{
|
||||
int DatabaseId { get; set; }
|
||||
bool Included { get; set; }
|
||||
string SerialNumber { get; set; }
|
||||
string Description { get; set; }
|
||||
double ResistanceLow { get; set; }
|
||||
double ResistanceHigh { get; set; }
|
||||
string ID { get; set; }
|
||||
string SQMode { get; set; }
|
||||
double SQDelay { get; set; }
|
||||
double SQCurrent { get; set; }
|
||||
double SQDuration { get; set; }
|
||||
bool LimitDuration { get; set; }
|
||||
string ModifiedBy { get; set; }
|
||||
DateTime LastModified { get; set; }
|
||||
bool Filter(string term);
|
||||
bool Assigned { get; set; }
|
||||
bool Online { get; set; }
|
||||
string ISOCode { get; set; }
|
||||
string ISOChannelName { get; set; }
|
||||
string UserCode { get; set; }
|
||||
string UserChannelName { get; set; }
|
||||
SquibFireMode Mode { get; set; }
|
||||
/// <summary>
|
||||
/// marks the squib as broken
|
||||
/// broken sensors do not appear in lists of available sensors in edit test setup or edit group
|
||||
/// </summary>
|
||||
bool Broken { get; set; }
|
||||
/// <summary>
|
||||
/// marks the squib as donotuse
|
||||
/// donotuse sensors do not appear in lists of available sensors in edit test setup or edit group
|
||||
/// </summary>
|
||||
bool DoNotUse { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user