init
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.Interface.TestMetaData
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface describing a record in the TestEngineerDetails table in the Db
|
||||
/// </summary>
|
||||
public interface ITestEngineerDetailsDbRecord
|
||||
{
|
||||
[Key]
|
||||
[Column("TestEngineerId")]
|
||||
/// <summary>
|
||||
/// The id/key of the TestEngineerDetails record in the db
|
||||
/// </summary>
|
||||
int TestEngineerId { get; set; }
|
||||
|
||||
[Column("Name")]
|
||||
string Name { get; set; }
|
||||
|
||||
[Column("TestEngineerName")]
|
||||
string TestEngineerName { get; set; }
|
||||
|
||||
[Column("TestEngineerPhone")]
|
||||
string TestEngineerPhone { get; set; }
|
||||
|
||||
[Column("TestEngineerFax")]
|
||||
string TestEngineerFax { get; set; }
|
||||
|
||||
[Column("TestEngineerEmail")]
|
||||
string TestEngineerEmail { get; set; }
|
||||
|
||||
[Column("LocalOnly")]
|
||||
bool LocalOnly { get; set; }
|
||||
|
||||
[Column("LastModified")]
|
||||
DateTime LastModified { get; set; }
|
||||
|
||||
[Column("LastModifiedBy")]
|
||||
string LastModifiedBy { get; set; }
|
||||
|
||||
[Column("Version")]
|
||||
int Version { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using DTS.Common.Enums;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors
|
||||
{
|
||||
public interface IStreamOutputSettingDefaults
|
||||
{
|
||||
///<summary>
|
||||
/// udp profile setting value for the channel
|
||||
///</summary>
|
||||
UDPStreamProfile Profile { get; set; }
|
||||
///<summary>
|
||||
/// udp address setting value for the channel
|
||||
///</summary>
|
||||
string UDPAddress { get; set; }
|
||||
///<summary>
|
||||
/// time channel id setting value for the channel
|
||||
///</summary>
|
||||
ushort TimeChannelId { get; set; }
|
||||
///<summary>
|
||||
/// data channel id setting value for the channel
|
||||
///</summary>
|
||||
ushort DataChannelId { get; set; }
|
||||
///<summary>
|
||||
/// tmns config setting value for the channel
|
||||
///</summary>
|
||||
string TmNSConfig { get; set; }
|
||||
///<summary>
|
||||
/// irig data packet interval setting value for the channel
|
||||
///</summary>
|
||||
ushort IRIGTimeDataPacketIntervalMs { get; set; }
|
||||
/// <summary>
|
||||
/// 31840 basic / advanced streaming profiles
|
||||
/// </summary>
|
||||
bool UseAdvancedUDPStreamProfiles { get; set; }
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool Validate();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Reflection;
|
||||
using DataPro.Common.Base;
|
||||
|
||||
namespace DataPro.Common.Interface
|
||||
{
|
||||
public interface ITileListViewModel : IBaseViewModel
|
||||
{
|
||||
IMainViewModel Parent { get; set; }
|
||||
ITileListView View { get; set; }
|
||||
List<ITileView> GroupList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Windows.Markup;
|
||||
|
||||
namespace DTS.Common.Enums
|
||||
{
|
||||
public class EnumBindingSourceExtension : MarkupExtension
|
||||
{
|
||||
private Type _enumType;
|
||||
public Type EnumType
|
||||
{
|
||||
get => _enumType;
|
||||
set
|
||||
{
|
||||
if (value == _enumType) { return; }
|
||||
if (null != value)
|
||||
{
|
||||
var enumType = Nullable.GetUnderlyingType(value) ?? value;
|
||||
if (!enumType.IsEnum)
|
||||
{
|
||||
throw new ArgumentException("Type must be for an Enum.");
|
||||
}
|
||||
}
|
||||
_enumType = value;
|
||||
}
|
||||
}
|
||||
|
||||
public EnumBindingSourceExtension() { }
|
||||
|
||||
public EnumBindingSourceExtension(Type enumType)
|
||||
{
|
||||
EnumType = enumType;
|
||||
}
|
||||
|
||||
public override object ProvideValue(IServiceProvider serviceProvider)
|
||||
{
|
||||
if (null == _enumType)
|
||||
{
|
||||
throw new InvalidOperationException("The EnumType must be specified.");
|
||||
}
|
||||
|
||||
var actualEnumType = Nullable.GetUnderlyingType(_enumType) ?? _enumType;
|
||||
var enumValues = Enum.GetValues(actualEnumType);
|
||||
|
||||
if (actualEnumType == _enumType)
|
||||
{
|
||||
return enumValues;
|
||||
}
|
||||
|
||||
var tempArray = Array.CreateInstance(actualEnumType, enumValues.Length + 1);
|
||||
enumValues.CopyTo(tempArray, 1);
|
||||
return tempArray;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace DTS.Common.Classes.Hardware
|
||||
{
|
||||
public class ExternalTilt
|
||||
{
|
||||
public ExternalTilt() { }
|
||||
public string SerialNumber { get; set; }
|
||||
public byte TiltID { get; set; }
|
||||
public string SystemID { get; set; }
|
||||
public string SystemLocation { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user