This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
using DTS.Common.Interface.DASFactory.Diagnostics;
using DTS.Common.Strings;
using System;
using System.Windows.Data;
namespace HardwareList.Converters
{
/// <summary>
/// provides --- when the hardware is standin, otherwise the field requested
/// </summary>
public class StandInFieldConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (!(value is HardareList.Model.HardwareModel model))
{
return Strings.Table_NA;
}
if (!(model.Hardware is IISOHardware isoHW)) { return string.Empty; }
if (isoHW.StandIn)
{
return Strings.Table_NA;
}
if (parameter is string s)
{
switch (s)
{
case "CalDueDate":
return model.CalDueDate;
case "CalDate":
return model.CalDate;
case "Firmware":
return model.Firmware;
}
}
return Strings.Table_NA;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
if (value is DateTime dt) { return dt; }
return Strings.Table_NA;
}
}
}

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("HardwareList")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("DTS")]
[assembly: AssemblyProduct("HardwareList")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("cf53898e-8d83-49bb-9588-02348feb6e17")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]