init
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using DTS.Common.Enums;
|
||||
using System;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace DTS.Common.Converters
|
||||
{
|
||||
public class StatusToColorConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{
|
||||
if( !(value is UIItemStatus itemStatus))
|
||||
{
|
||||
return Brushes.Transparent;
|
||||
}
|
||||
switch (itemStatus)
|
||||
{
|
||||
case UIItemStatus.None: return Brushes.Black;
|
||||
case UIItemStatus.Success: return BrushesAndColors.Brush_ApplicationStatus_Complete;
|
||||
case UIItemStatus.Failed: return BrushesAndColors.Brush_ApplicationStatus_Failed;
|
||||
case UIItemStatus.Error: return Brushes.Red;
|
||||
case UIItemStatus.Warning: return Brushes.OrangeRed;
|
||||
}
|
||||
return Brushes.Black;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IHardwareScanView : IBaseView { }
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 248 B |
@@ -0,0 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IAssemblyViewModel : IBaseViewModel
|
||||
{
|
||||
IAssemblyView View { get; set; }
|
||||
|
||||
string GroupName { get; set; }
|
||||
List<AssemblyNameImage> AssemblyList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using DTS.Common.Enums;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors
|
||||
{
|
||||
public interface IStreamInputRecord
|
||||
{
|
||||
/// <summary>
|
||||
/// the database id of the sensor
|
||||
/// </summary>
|
||||
[Key]
|
||||
int Id { get; set; }
|
||||
/// <summary>
|
||||
/// Serial number of sensor
|
||||
/// [required to be unique]
|
||||
/// </summary>
|
||||
[Required]
|
||||
[StringLength(50)]
|
||||
string SerialNumber { get; set; }
|
||||
DateTime LastModified { get; set; }
|
||||
string LastUpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// bytes representing a delimited string of tag ids
|
||||
/// </summary>
|
||||
byte[] TagsBlobBytes { get; set; }
|
||||
bool DoNotUse { get; set; }
|
||||
bool Broken { get; set; }
|
||||
string StreamInUDPAddress { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
public class NavigateFromTSRAIRGoToDataPROEvent : CompositePresentationEvent<NavigateFromTSRAIRGoToDataPROArg> { }
|
||||
|
||||
public class NavigateFromTSRAIRGoToDataPROArg
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.Specialized;
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Interface.TestDefinition;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface ITestSummaryListViewModel : IBaseViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the Shell View.
|
||||
/// </summary>
|
||||
ITestSummaryListView View { get; }
|
||||
ObservableCollection<ITestSummary> TestSummaryList { get; set; }
|
||||
List<ITestSummary> SelectedTestSummaryList { get; set; }
|
||||
void PublishSelectedTestSummaryList();
|
||||
void TestSummaryList_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace DTS.Common.Enums.SettingsExport
|
||||
{
|
||||
/// <summary>
|
||||
/// possible root tags in the xml
|
||||
/// </summary>
|
||||
public enum TopLevelFields
|
||||
{
|
||||
GlobalSettings,
|
||||
TestSetupDefaultSettings,
|
||||
SensorSettings,
|
||||
TestHistorySettings
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user