init
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
using System.ComponentModel;
|
||||
using System.Threading.Tasks;
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Base
|
||||
{
|
||||
|
||||
public interface IBaseWindowModel : INotifyPropertyChanged
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets, sets the IsMenuIncluded status.
|
||||
/// </summary>
|
||||
bool IsMenuIncluded { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets, sets the IsNavigationIncluded status.
|
||||
/// </summary>
|
||||
bool IsNavigationIncluded { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the IsBusy status.
|
||||
/// </summary>
|
||||
bool IsBusy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Activated method.
|
||||
/// </summary>
|
||||
void Activated();
|
||||
|
||||
/// <summary>
|
||||
/// Gets the IsDirty status.
|
||||
/// </summary>
|
||||
bool IsDirty { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The Cleanup method.
|
||||
/// </summary>
|
||||
void Cleanup();
|
||||
|
||||
/// <summary>
|
||||
/// Starts the cleanup process asynchronously.
|
||||
/// </summary>
|
||||
Task CleanupAsync();
|
||||
|
||||
/// <summary>
|
||||
/// The Initialize method.
|
||||
/// </summary>
|
||||
void Initialize();
|
||||
|
||||
/// <summary>
|
||||
/// The Initialize method.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The parameter to initialize the viewmodel.</param>
|
||||
void Initialize(object parameter);
|
||||
|
||||
/// <summary>
|
||||
/// Starts the initialization process asynchronously.
|
||||
/// </summary>
|
||||
Task InitializeAsync();
|
||||
|
||||
/// <summary>
|
||||
/// Starts the initialization process asynchronously.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The parameter to initialize the viewmodel.</param>
|
||||
Task InitializeAsync(object parameter);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.Interface.DASFactory.Diagnostics.HardwareList
|
||||
{
|
||||
public interface IHardware
|
||||
{
|
||||
int DASId { get; set; }
|
||||
bool Disabled { get; set; }
|
||||
bool Included { get; set; }
|
||||
double TestSampleRate { get; set; }
|
||||
string SerialNumber { get; set; }
|
||||
string HardwareType { get; set; }
|
||||
string ChannelCount { get; set; }
|
||||
string Firmware { get; set; }
|
||||
double? MaxSampleRate{ get; set; }
|
||||
DateTime? CalDate { get; set; }
|
||||
DateTime? CalDueDate { get; set; }
|
||||
object Hardware { get; set; }
|
||||
void SetIncluded(bool bIncluded);
|
||||
void SetMixedRates(bool mixed);
|
||||
bool Filter(string term);
|
||||
string ParentDAS{ get; set; }
|
||||
int PositionOnChain { get; set; }
|
||||
int PositionOnDistributor{ get; set; }
|
||||
int Port{ get; set; }
|
||||
int AnalogChannels { get; set; }
|
||||
int SquibChannels { get; set; }
|
||||
int DigitalInChannels { get; set; }
|
||||
int DigitalOutChannels { get; set; }
|
||||
int UartChannels { get; set; }
|
||||
int StreamOutChannels { get; set; }
|
||||
int StreamInChannels { get; set; }
|
||||
/// <summary>
|
||||
/// determines the ChannelCount text
|
||||
/// </summary>
|
||||
/// <param name="showCompact">whether to show compact or expanded
|
||||
/// compact will not show SLICEPro units connect to ECMs
|
||||
/// </param>
|
||||
void DetermineChannelCount(bool showCompact, IHardware [] allHardware);
|
||||
string IPAddress { get; set; }
|
||||
/// <summary>
|
||||
/// first date of use after calibration
|
||||
/// only valid if IsFirstUseValid is true
|
||||
/// null value indicates hardware has not been used since calibration
|
||||
/// (once again, only if IsFirstUseValid is true)
|
||||
/// 15524 DAS "First Use Date"
|
||||
/// </summary>
|
||||
DateTime? FirstUseDate { get; set; }
|
||||
/// <summary>
|
||||
/// whether hardware supports and is using first use date
|
||||
/// 15524 DAS "First Use Date"
|
||||
/// </summary>
|
||||
bool IsFirstUseValid { get; set; }
|
||||
bool IsTSRAIR { get; }
|
||||
byte PTPDomainID { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Event to inform app that it should mark itself busy or available
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
public class PageSelectionChanged : CompositePresentationEvent<PageSelectionChangedArg> { }
|
||||
|
||||
public class PageSelectionChangedArg
|
||||
{
|
||||
public object Page { get; }
|
||||
|
||||
public int Count { get; }
|
||||
|
||||
public PageSelectionChangedArg(int count, object page)
|
||||
{
|
||||
Page = page;
|
||||
Count = count;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
using DTS.Common.Interface.RegionOfInterest;
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.RegionOfInterest
|
||||
{
|
||||
public class RegionOfInterestChangedEvent : CompositePresentationEvent<IRegionOfInterest> { }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace DTS.Common.Interface.DASFactory.Diagnostics
|
||||
{
|
||||
public interface IModuleDiagnosticsResult
|
||||
{
|
||||
float TemperatureLocation1Pre { get; set; }
|
||||
float TemperatureLocation2Pre { get; set; }
|
||||
float TemperatureLocation3Pre { get; set; }
|
||||
float TemperatureLocation4Pre { get; set; }
|
||||
float TemperatureLocation1Post { get; set; }
|
||||
float TemperatureLocation2Post { get; set; }
|
||||
float TemperatureLocation3Post { get; set; }
|
||||
float TemperatureLocation4Post { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user