init
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface ICursorView : IBaseView { }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface ILegendView : IBaseView { }
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 647 B |
@@ -0,0 +1,14 @@
|
||||
namespace DTS.Common.Interface.DASFactory.Diagnostics
|
||||
{
|
||||
public interface IArmCheckActions
|
||||
{
|
||||
bool PerformBatteryVoltageCheck { get; set; }
|
||||
bool PerformInputVoltageCheck { get; set; }
|
||||
bool PerformSensorIdCheck { get; set; }
|
||||
bool PerformEventLineCheck { get; set; }
|
||||
bool PerformSquibResistanceCheck { get; set; }
|
||||
bool PerformTiltSensorCheck { get; set; }
|
||||
bool PerformTemperatureCheck { get; set; }
|
||||
bool PerformClockSyncCheck { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common.Constant.DASSpecific
|
||||
{
|
||||
public class SLICE
|
||||
{
|
||||
public const uint MaxAAFilterRateHz = 30000;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 558 B |
@@ -0,0 +1,29 @@
|
||||
using DTS.Common.SharedResource.Strings;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace DTS.Common.Attributes
|
||||
{
|
||||
/// <summary>
|
||||
/// this class overloads the description attribute to allow us to use an enum
|
||||
/// to set the description and to lookup the description in the string resources
|
||||
/// to be translated the property should have a string resource in the form of PropertyName_Description
|
||||
/// otherwise ##DescriptionNotFound## will be returned as the translated string
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Delegate | AttributeTargets.Property)]
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Minor Code Smell", "S3376:Attribute, EventArgs, and Exception type names should end with the type being extended", Justification = "extebded")]
|
||||
public class DescriptionAttributeEx : DescriptionAttribute
|
||||
{
|
||||
private readonly string _propertyIdString = null;
|
||||
|
||||
public DescriptionAttributeEx(string propertyId)
|
||||
{
|
||||
_propertyIdString = propertyId;
|
||||
}
|
||||
public override string Description
|
||||
{
|
||||
get => StringResources.ResourceManager.GetString(_propertyIdString + "_Description") ?? @"##DescriptionNotFound##" + _propertyIdString;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface.Database
|
||||
{
|
||||
/// <summary>
|
||||
/// this viewmodel provides a way for transferring a remote database to a local database
|
||||
/// it clears the local database and populates it with the remote databse
|
||||
/// it requires a local database that has the right tables and stored procedures already
|
||||
/// </summary>
|
||||
public interface IDatabaseSwitchViewModel : IBaseViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// the view associated with the model
|
||||
/// </summary>
|
||||
IDatabaseSwitchView View { get; set; }
|
||||
/// <summary>
|
||||
/// frees up any memory associated with viewmodel
|
||||
/// </summary>
|
||||
void Unset();
|
||||
|
||||
bool RemoteIsActive { get; }
|
||||
|
||||
string DefaultDbName { get; }
|
||||
//void SetDefaultDbName(string defaultDbName);
|
||||
void InitializeDbSettings(string defaultDbName, string dbHost, bool ntlmAuthentication, string dbUser,
|
||||
string dbPassword);
|
||||
void SwitchRemote();
|
||||
void SwitchLocal();
|
||||
|
||||
string DbHost { get; }
|
||||
bool NTLMAuthentication { get; }
|
||||
string DbUser { get; }
|
||||
string DbPassword { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Interface.Tags;
|
||||
using System.Data;
|
||||
|
||||
namespace DTS.Common.Classes.Tags
|
||||
{
|
||||
public class TagAssignment : BasePropertyChanged, ITagAssignment
|
||||
{
|
||||
private int _objectId;
|
||||
public int ObjectID
|
||||
{
|
||||
get => _objectId;
|
||||
set => SetProperty(ref _objectId, value, "ObjectID");
|
||||
}
|
||||
|
||||
private int _tagId;
|
||||
public int TagID
|
||||
{
|
||||
get => _tagId;
|
||||
set => SetProperty(ref _tagId, value, "TagID");
|
||||
}
|
||||
|
||||
private TagTypes _tagType;
|
||||
public TagTypes ObjectType
|
||||
{
|
||||
get => _tagType;
|
||||
set => SetProperty(ref _tagType, value, "TagType");
|
||||
}
|
||||
public TagAssignment() { }
|
||||
public TagAssignment(IDataReader reader)
|
||||
{
|
||||
TagID = Utility.GetInt(reader, "TagID");
|
||||
ObjectID = Utility.GetInt(reader, "ObjectID");
|
||||
ObjectType = (TagTypes)Utility.GetShort(reader, "ObjectType");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user