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,481 @@
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Threading.Tasks;
using DTS.Common.Events;
using DTS.Common.Interface.TestSetups.CachedItemsList;
using System;
using DTS.Common.Interface.DataRecorders;
using DTS.Common.Interface.Sensors;
using System.Linq;
using Prism.Events;
using Prism.Regions;
using Unity;
using DTS.Common.Interactivity;
// ReSharper disable CheckNamespace
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable InconsistentNaming
namespace CachedItemsList
{
/// <summary>
/// this class handles CachedItemsList functionality
/// </summary>
[PartCreationPolicy(CreationPolicy.Shared)]
public class CachedItemsListViewModel : ICachedItemsListViewModel
{
/// <summary>
/// The SensorList view
/// </summary>
public ICachedItemsListView View { get; set; }
private IEventAggregator _eventAggregator { get; }
private IRegionManager _regionManager;
private IUnityContainer UnityContainer { get; }
public InteractionRequest<Notification> NotificationRequest { get; }
public InteractionRequest<Confirmation> ConfirmationRequest { get; }
/// <inheritdoc />
/// <summary>
/// Occurs when a property value changes.
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
#region constructors and initializers
/// <summary>
/// Creates a new instance of the CachedItemsListViewModel
/// </summary>
/// <param name="view"></param>
/// <param name="regionManager">The logical placeholder defined within the application's UI (in the shell or within views) into which views are displayed.</param>
/// <param name="eventAggregator">The EventAggregator which allows different components to publish/subscribe to events without being coupled to each other.</param>
/// <param name="unityContainer">The unityContainer.</param>
public CachedItemsListViewModel(ICachedItemsListView view, IRegionManager regionManager,
IEventAggregator eventAggregator, IUnityContainer unityContainer)
{
View = view;
View.DataContext = this;
NotificationRequest = new InteractionRequest<Notification>();
ConfirmationRequest = new InteractionRequest<Confirmation>();
_eventAggregator = eventAggregator;
UnityContainer = unityContainer;
_regionManager = regionManager;
_eventAggregator.GetEvent<RaiseNotification>().Subscribe(OnRaiseNotification);
_eventAggregator.GetEvent<BusyIndicatorChangeNotification>()
.Subscribe(OnBusyIndicatorNotification, ThreadOption.PublisherThread, true);
}
#endregion
#region Methods
public void Unset()
{
}
public void Cleanup()
{
}
public Task CleanupAsync()
{
return Task.CompletedTask;
}
public void Initialize()
{
}
public void Initialize(object parameter)
{
}
public void Initialize(object parameter, object model)
{
}
public Task InitializeAsync()
{
return Task.CompletedTask;
}
public Task InitializeAsync(object parameter)
{
return Task.CompletedTask;
}
public void Activated()
{
}
/// <summary>
/// Private Event handler for RaiseNotification event.
/// </summary>
private void OnBusyIndicatorNotification(bool eventArg)
{
IsBusy = eventArg;
}
/// <summary>
/// Private Event handler for RaiseNotification event.
/// </summary>
private void OnRaiseNotification(NotificationContentEventArgs eventArgsWithTitle)
{
// The NotificationRequest.Raise triggers the Invoke() method of the PopupWindowAction object to show the NotificationWindow window
// Notification object expects a NotificationContentEventArgsWithoutTitle object and a Title string.
var eventArgsWithoutTitle = new NotificationContentEventArgs(eventArgsWithTitle.Message, "",
eventArgsWithTitle.Image, string.Empty);
NotificationRequest.Raise(new Notification
{
Content = eventArgsWithoutTitle,
Title = eventArgsWithTitle.Title
});
}
public bool SetCachedItems(ISensorData[] sensors, ISensorCalibration[] sensorCalibrations,
IDASHardware[] hardware, IDASHardware[] allDAS)
{
return false;
//var list = new List<ICachedItem>();
//#region SENSORS
//var serialNumberToSensor = new Dictionary<string, ISensorData>();
//var sensorsNeedingProcessing = new HashSet<string>();
//foreach (var s in sensors)
//{
// serialNumberToSensor[s.SerialNumber] = s;
// sensorsNeedingProcessing.Add(s.SerialNumber);
//}
//#region Sensors IN DB
//#region analog
//var hr = DbOperations.SensorsAnalogGet(null, null, null, out var records);
//if( 0 == hr && null != records && records.Any())
//{
// foreach( var record in records)
// {
// if (!sensorsNeedingProcessing.Contains(record.SerialNumber))
// {
// //either we didn't need to process this sensor, or we already have ...?
// continue;
// }
// sensorsNeedingProcessing.Remove(record.SerialNumber);
// var original = serialNumberToSensor[record.SerialNumber];
// if (Math.Abs(record.LastModified.Subtract(original.LastModified).TotalSeconds) > 1)
// {
// list.Add(new CachedItem(record.SerialNumber, Resources.StringResources.Sensor,
// original.LastModified, record.LastModified));
// }
// }
//}
//#endregion
//#region squib
//hr = DbOperations.SensorsSquibGet(null, null, null, out var squibRecords);
//if( 0 == hr && null != squibRecords && squibRecords.Any())
//{
// foreach( var squibRecord in squibRecords)
// {
// if( !sensorsNeedingProcessing.Contains(squibRecord.SerialNumber))
// {
// continue;
// }
// sensorsNeedingProcessing.Remove(squibRecord.SerialNumber);
// var original = serialNumberToSensor[squibRecord.SerialNumber];
// var modifiedBy = squibRecord.LastModifiedBy;
// var lastModified = squibRecord.LastModified;
// if( Math.Abs(lastModified.Subtract(original.LastModified).TotalSeconds) > 1)
// {
// list.Add(new CachedItem(squibRecord.SerialNumber, Resources.StringResources.Sensor, original.LastModified, lastModified));
// }
// }
//}
//#endregion
//#region DigitalInputs
//hr = DbOperations.SensorsDigitalInGet(null, null, null, out var digitalIns);
//if (0 == hr && null != digitalIns && digitalIns.Any())
//{
// foreach( var digitalIn in digitalIns)
// {
// if (!sensorsNeedingProcessing.Contains(digitalIn.SerialNumber)) { continue; }
// sensorsNeedingProcessing.Remove(digitalIn.SerialNumber);
// var original = serialNumberToSensor[digitalIn.SerialNumber];
// var lastModified = digitalIn.LastModified;
// if (Math.Abs(lastModified.Subtract(original.LastModified).TotalSeconds) > 1)
// {
// list.Add(new CachedItem(digitalIn.SerialNumber, Resources.StringResources.Sensor, original.LastModified, lastModified));
// }
// }
//}
//#endregion
//#region DigitalOutputs
//hr = DbOperations.SensorsDigitalOutGet(null, null, out var digitalOutRecords);
//if (0 == hr && null != digitalOutRecords && digitalOutRecords.Any())
//{
// foreach( var record in digitalOutRecords)
// {
// if (!sensorsNeedingProcessing.Contains(record.SerialNumber))
// {
// //either we didn't need to process this sensor, or we already have ...?
// continue;
// }
// sensorsNeedingProcessing.Remove(record.SerialNumber);
// if (IsTestSpecificDigitalOutput(record.SerialNumber)) { continue; }
// var original = serialNumberToSensor[record.SerialNumber];
// var lastModified = record.LastModified;
// if (Math.Abs(lastModified.Subtract(original.LastModified).TotalSeconds) > 1)
// {
// list.Add(new CachedItem(record.SerialNumber, Resources.StringResources.Sensor,
// original.LastModified, lastModified));
// }
// }
//}
//#endregion
//#endregion SENSORS IN DB
//#region Sensors NOT IN DB
//using (var eSensors = sensorsNeedingProcessing.GetEnumerator())
//{
// while (eSensors.MoveNext())
// {
// var original = serialNumberToSensor[eSensors.Current];
// list.Add(new CachedItem(eSensors.Current, Resources.StringResources.Sensor, original.LastModified,
// DateTime.MinValue));
// }
//}
//#endregion
//#endregion SENSORS
//#region Hardware
//var serialNumberToHardware = new Dictionary<string, IDASHardware>();
//var hardwareNeedingProcessing = new HashSet<string>();
//foreach (var h in hardware)
//{
// serialNumberToHardware[h.SerialNumber] = h;
// hardwareNeedingProcessing.Add(h.SerialNumber);
//}
//#region Hardware In DB
//foreach (var das in allDAS)
//{
// if (!hardwareNeedingProcessing.Contains(das.SerialNumber))
// {
// continue;
// }
// hardwareNeedingProcessing.Remove(das.SerialNumber);
// var original = serialNumberToHardware[das.SerialNumber];
// if (Math.Abs(das.LastModified.Subtract(original.LastModified).TotalSeconds) > 1)
// {
// list.Add(new CachedItem(das.SerialNumber, Resources.StringResources.Hardware, original.LastModified,
// das.LastModified));
// }
//}
//#endregion Hardware In DB
//#region Hardware NOT IN DB
//using (var eHardware = hardwareNeedingProcessing.GetEnumerator())
//{
// while (eHardware.MoveNext())
// {
// var original = serialNumberToHardware[eHardware.Current];
// list.Add(new CachedItem(original.SerialNumber, Resources.StringResources.Hardware,
// original.LastModified, DateTime.MinValue));
// }
//}
//#endregion
//#endregion Hardware
//#region Calibrations
//var serialNumberToLastCalibration = new Dictionary<string, ISensorCalibration>();
//var serialNumberToLastCalibrationInDb = new Dictionary<string, ISensorCalibration>();
//var calsNeedingProcessing = new HashSet<string>();
//foreach (var cal in sensorCalibrations)
//{
// if (!calsNeedingProcessing.Contains(cal.SerialNumber))
// {
// calsNeedingProcessing.Add(cal.SerialNumber);
// serialNumberToLastCalibration[cal.SerialNumber] = cal;
// }
// else
// {
// if (serialNumberToLastCalibration[cal.SerialNumber].CalibrationDate < cal.CalibrationDate)
// {
// serialNumberToLastCalibration[cal.SerialNumber] = cal;
// }
// else if (serialNumberToLastCalibration[cal.SerialNumber].CalibrationDate == cal.CalibrationDate &&
// serialNumberToLastCalibration[cal.SerialNumber].ModifyDate < cal.ModifyDate)
// {
// serialNumberToLastCalibration[cal.SerialNumber] = cal;
// }
// }
//}
//#region CalibrationsInDb
//hr = DbOperations.SensorCalibrationsGet(null, null, out var calRecords);
//if( 0 == hr && null != calRecords && calRecords.Any())
//{
// foreach( var record in calRecords)
// {
// var sc = new SensorCalibration(record);
// if (!serialNumberToLastCalibration.ContainsKey(sc.SerialNumber))
// {
// continue;
// }
// calsNeedingProcessing.Remove(sc.SerialNumber);
// if (!serialNumberToLastCalibrationInDb.ContainsKey(sc.SerialNumber))
// {
// serialNumberToLastCalibrationInDb[sc.SerialNumber] = sc;
// }
// else if (serialNumberToLastCalibrationInDb[sc.SerialNumber].CalibrationDate <
// sc.CalibrationDate)
// {
// serialNumberToLastCalibrationInDb[sc.SerialNumber] = sc;
// }
// else if (serialNumberToLastCalibrationInDb[sc.SerialNumber].CalibrationDate ==
// sc.CalibrationDate &&
// serialNumberToLastCalibrationInDb[sc.SerialNumber].ModifyDate < sc.ModifyDate)
// {
// serialNumberToLastCalibrationInDb[sc.SerialNumber] = sc;
// }
// }
//}
//using (var eCals = serialNumberToLastCalibrationInDb.GetEnumerator())
//{
// while (eCals.MoveNext())
// {
// var original = serialNumberToLastCalibration[eCals.Current.Key];
// var dbVersion = eCals.Current.Value;
// if (original.CalibrationDate < dbVersion.CalibrationDate)
// {
// list.Add(new CachedItem(original.SerialNumber, Resources.StringResources.SensorCal,
// original.ModifyDate, dbVersion.ModifyDate));
// }
// else if (original.CalibrationDate == dbVersion.CalibrationDate)
// {
// if (Math.Abs(dbVersion.ModifyDate.Subtract(original.ModifyDate).TotalSeconds) > 1)
// {
// list.Add(new CachedItem(original.SerialNumber, Resources.StringResources.SensorCal,
// original.ModifyDate, dbVersion.ModifyDate));
// }
// }
// }
//}
//#endregion
//#region Calibrations NOT IN DB
//using (var eCals = calsNeedingProcessing.GetEnumerator())
//{
// while (eCals.MoveNext())
// {
// var cal = serialNumberToLastCalibration[eCals.Current];
// list.Add(new CachedItem(cal.SerialNumber, Resources.StringResources.SensorCal, cal.ModifyDate,
// DateTime.MinValue));
// }
//}
//#endregion
//#endregion
//CachedItems = list.ToArray();
//OnPropertyChanged("CachedItems");
//return list.Any();
}
private static bool IsTestSpecificDigitalOutput(string serialNumber)
{
if (string.IsNullOrWhiteSpace(serialNumber))
{
return false;
}
return serialNumber.StartsWith(TEST_SPECIFIC_DIGITAL_OUT);
}
#endregion
#region Constants and Enums
private const string TEST_SPECIFIC_DIGITAL_OUT = "TSD_";
#endregion
#region Properties
public ICachedItem[] CachedItems { get; set; } = new ICachedItem[0];
public bool IsDirty => false;
private bool _isBusy;
public bool IsBusy
{
get => _isBusy;
set
{
_isBusy = value;
OnPropertyChanged("IsBusy");
}
}
private bool _isMenuIncluded;
public bool IsMenuIncluded
{
get => _isMenuIncluded;
set
{
_isMenuIncluded = value;
OnPropertyChanged("IsMenuIncluded");
}
}
private bool _isNavigationIncluded;
public bool IsNavigationIncluded
{
get => _isNavigationIncluded;
set
{
_isNavigationIncluded = value;
OnPropertyChanged("IsNavigationIncluded");
}
}
public bool HasOutofDateCachedItems => CachedItems.Any();
public bool HasMissingSensors
{
get
{
return CachedItems.Any() && Array.Exists(CachedItems, item => item.DBTime.Equals(DateTime.MinValue) && item.ObjectType == Resources.StringResources.Sensor);
}
}
#endregion Properties
#region Commands
#endregion
}
}

View File

@@ -0,0 +1,147 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="CacheTime" xml:space="preserve">
<value>Cache Time</value>
</data>
<data name="DBTime" xml:space="preserve">
<value>Db Time</value>
</data>
<data name="Deleted" xml:space="preserve">
<value>[Deleted]</value>
</data>
<data name="Hardware" xml:space="preserve">
<value>Hardware</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="ObjectType" xml:space="preserve">
<value>(Type)</value>
</data>
<data name="Prepare_TestSetups_EditTestSetup_Page_Update" xml:space="preserve">
<value>Refresh</value>
</data>
<data name="Sensor" xml:space="preserve">
<value>Sensor</value>
</data>
<data name="SensorCal" xml:space="preserve">
<value>Sensor calibration</value>
</data>
</root>

View File

@@ -0,0 +1,85 @@
<base:BaseView x:Class="CachedItemsList.CachedItemsListView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:base="clr-namespace:DTS.Common.Base;assembly=DTS.Common"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:strings="clr-namespace:CachedItemsList"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="768" d:DesignWidth="1366"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit">
<base:BaseView.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Themes/CommonStyles.xaml"/>
<ResourceDictionary Source="pack://application:,,,/DTS.Common;component/Controls/combobox.xaml"/>
</ResourceDictionary.MergedDictionaries>
<Style TargetType="ListView">
<Setter Property="ItemContainerStyle" Value="{StaticResource TTS_ListViewItemStyle}"/>
</Style>
<Style TargetType="TextBox" BasedOn="{StaticResource TTS_TextBoxStyle}"/>
<Style TargetType="TextBlock" BasedOn="{StaticResource TTS_TextBlockStyle}"/>
<Style TargetType="CheckBox" BasedOn="{StaticResource PageContentCheckBoxStyle}" />
<Style TargetType="ComboBox" BasedOn="{StaticResource TTS_ComboBoxStyle}"/>
<Style TargetType="Button" BasedOn="{StaticResource TTS_ButtonStyle}"/>
<Style TargetType="GridViewColumnHeader" BasedOn="{StaticResource Gray_GridViewColumnHeaderStyle}"/>
<BooleanToVisibilityConverter x:Key="BoolToVisibility" />
</ResourceDictionary>
</base:BaseView.Resources>
<Grid Background="{DynamicResource Brush_ApplicationContentBackground}">
<ListView ItemsSource="{Binding CachedItems, UpdateSourceTrigger=PropertyChanged}" AutomationProperties.AutomationId="CachedItemsListView" >
<ListView.View>
<GridView AutomationProperties.AutomationId="CachedItemsListGridView">
<GridViewColumn AutomationProperties.AutomationId="Name">
<GridViewColumn.Header>
<GridViewColumnHeader Tag="Name" Content="{strings:TranslateExtension Name}" />
</GridViewColumn.Header>
<GridViewColumn.CellTemplate>
<ItemContainerTemplate>
<TextBlock Text="{Binding Name,FallbackValue='Name'}" AutomationProperties.AutomationId="NameLbl"/>
</ItemContainerTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn AutomationProperties.AutomationId="ObjectType">
<GridViewColumn.Header>
<GridViewColumnHeader Tag="ObjectType" Content="{strings:TranslateExtension ObjectType}" />
</GridViewColumn.Header>
<GridViewColumn.CellTemplate>
<ItemContainerTemplate>
<TextBlock Text="{Binding ObjectType,FallbackValue='Type'}" AutomationProperties.AutomationId="ObjectTypeLbl"/>
</ItemContainerTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn AutomationProperties.AutomationId="CacheTime">
<GridViewColumn.Header>
<GridViewColumnHeader Tag="CacheTime" Content="{strings:TranslateExtension CacheTime}" />
</GridViewColumn.Header>
<GridViewColumn.CellTemplate>
<ItemContainerTemplate>
<TextBlock Text="{Binding CacheTime,FallbackValue='CacheTime'}" AutomationProperties.AutomationId="CacheTimeLbl"/>
</ItemContainerTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn AutomationProperties.AutomationId="DbTime">
<GridViewColumn.Header>
<GridViewColumnHeader Tag="DbTime" Content="{strings:TranslateExtension DBTime}" />
</GridViewColumn.Header>
<GridViewColumn.CellTemplate>
<ItemContainerTemplate>
<TextBlock Text="{Binding DBTime,FallbackValue='DBTime'}" AutomationProperties.AutomationId="DbTimeLbl" x:Name="DbTimeLbl"/>
<ItemContainerTemplate.Triggers>
<DataTrigger Binding="{Binding}" Value="{x:Static sys:DateTime.MinValue}">
<Setter TargetName="DbTimeLbl" Property="Text" Value="{strings:TranslateExtension Deleted}" />
</DataTrigger>
</ItemContainerTemplate.Triggers>
</ItemContainerTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
</Grid>
</base:BaseView>

View File

@@ -0,0 +1,21 @@
using System;
using System.Windows.Markup;
using CachedItemsList.Resources;
namespace CachedItemsList
{
[MarkupExtensionReturnType(typeof(string))]
public class TranslateExtension : MarkupExtension
{
private readonly string _key;
public TranslateExtension(string key) { _key = key; }
private const string NotFound = "#stringnotfound#";
public override object ProvideValue(IServiceProvider serviceProvider)
{
if (string.IsNullOrEmpty(_key)) { return NotFound; }
return StringResources.ResourceManager.GetString(_key) ?? NotFound + " " + _key;
}
}
}

View File

@@ -0,0 +1,25 @@
using DTS.Common.Interface.TestSetups.CachedItemsList;
using System;
namespace CachedItemsList.Model
{
public class CachedItem : ICachedItem
{
public string Name { get; private set; }
public string ObjectType { get; private set; }
public DateTime CacheTime { get; private set; }
/// <summary>
/// DateTime.MinValue indicates no longer in db, otherwise
/// the LastModified time in the db
/// </summary>
public DateTime DBTime { get; private set; }
public CachedItem(string name, string objectType, DateTime cacheTime, DateTime dbTime)
{
Name = name;
ObjectType = objectType;
CacheTime = cacheTime;
DBTime = dbTime;
}
}
}

View File

@@ -0,0 +1,144 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CachedItemsList.Resources {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class StringResources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal StringResources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CachedItemsList.Resources.StringResources", typeof(StringResources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Cache Time.
/// </summary>
internal static string CacheTime {
get {
return ResourceManager.GetString("CacheTime", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Db Time.
/// </summary>
internal static string DBTime {
get {
return ResourceManager.GetString("DBTime", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to [Deleted].
/// </summary>
internal static string Deleted {
get {
return ResourceManager.GetString("Deleted", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Hardware.
/// </summary>
internal static string Hardware {
get {
return ResourceManager.GetString("Hardware", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Name.
/// </summary>
internal static string Name {
get {
return ResourceManager.GetString("Name", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to (Type).
/// </summary>
internal static string ObjectType {
get {
return ResourceManager.GetString("ObjectType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Refresh.
/// </summary>
internal static string Prepare_TestSetups_EditTestSetup_Page_Update {
get {
return ResourceManager.GetString("Prepare_TestSetups_EditTestSetup_Page_Update", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sensor.
/// </summary>
internal static string Sensor {
get {
return ResourceManager.GetString("Sensor", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sensor calibration.
/// </summary>
internal static string SensorCal {
get {
return ResourceManager.GetString("SensorCal", resourceCulture);
}
}
}
}

View File

@@ -0,0 +1,177 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F676558B-E5CB-417D-BA4B-1E702A63480C}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CachedItemsList</RootNamespace>
<AssemblyName>CachedItemsList</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>CODE_ANALYSIS;DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<RunCodeAnalysis>false</RunCodeAnalysis>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>CODE_ANALYSIS;DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<RunCodeAnalysis>true</RunCodeAnalysis>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="Microsoft.Xaml.Behaviors">
<HintPath>..\..\..\..\Common\DTS.Common\lib\PrismLibrary\Microsoft.Xaml.Behaviors.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="Prism">
<HintPath>..\..\..\..\Common\DTS.Common\lib\PrismLibrary\Prism.dll</HintPath>
</Reference>
<Reference Include="Prism.Unity.Wpf">
<HintPath>..\..\..\..\Common\DTS.Common\lib\PrismLibrary\Prism.Unity.Wpf.dll</HintPath>
</Reference>
<Reference Include="Prism.Wpf">
<HintPath>..\..\..\..\Common\DTS.Common\lib\PrismLibrary\Prism.Wpf.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.Core" />
<Reference Include="System.Security" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="Unity.Abstractions">
<HintPath>..\..\..\..\Common\DTS.Common\lib\PrismLibrary\Unity.Abstractions.dll</HintPath>
</Reference>
<Reference Include="Unity.Container">
<HintPath>..\..\..\..\Common\DTS.Common\lib\PrismLibrary\Unity.Container.dll</HintPath>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="Xceed.Wpf.Toolkit">
<HintPath>..\..\..\..\Common\DTS.Common\lib\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Model\CachedItem.cs" />
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Include="CachedItemsListModule.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Resources\StringResources.Designer.cs">
<DependentUpon>StringResources.resx</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="Resources\TranslateExtension.cs" />
<Compile Include="ViewModel\CachedItemsListViewModel.cs" />
<Compile Include="View\CachedItemsListView.xaml.cs">
<DependentUpon>CachedItemsListView.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\StringResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>StringResources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\Common\DTS.Common.Core\DTS.Common.Core.csproj">
<Project>{fab1f470-1574-4301-b56e-d3364aa93679}</Project>
<Name>DTS.Common.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\..\Common\DTS.Common.DAS.Concepts\DTS.Common.DAS.Concepts.csproj">
<Project>{03D8C736-36EB-4CD1-A6D9-130452B23239}</Project>
<Name>DTS.Common.DAS.Concepts</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\..\Common\DTS.Common.ISO\DTS.Common.ISO.csproj">
<Project>{4dccddd1-032f-430c-9a6f-231daca4fbd0}</Project>
<Name>DTS.Common.ISO</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\..\Common\DTS.Common.Storage\DTS.Common.Storage.csproj">
<Project>{e0d1a7d0-dce8-403d-ba85-5a5d66ba1313}</Project>
<Name>DTS.Common.Storage</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\..\Common\DTS.Common.Utilities\DTS.Common.Utilities.csproj">
<Project>{03eace47-ea59-44ac-b49d-956e4dc4d618}</Project>
<Name>DTS.Common.Utilities</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\..\Common\DTS.Common\DTS.Common.csproj">
<Project>{114edc77-f3b5-4576-a91b-40818d503b55}</Project>
<Name>DTS.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\IService\IService.csproj">
<Project>{c9c45b72-05a3-4962-bc13-a78b1f4b1925}</Project>
<Name>IService</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\SensorDB\SensorDB.csproj">
<Project>{444ef10c-046e-47ad-a9a5-17318d488723}</Project>
<Name>SensorDB</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Users\Users.csproj">
<Project>{BE8D217D-6DA9-4BCA-B62A-A82325B33979}</Project>
<Name>Users</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Page Include="View\CachedItemsListView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="CachedItemsList.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
</sectionGroup>
</configSections>
<userSettings>
<CachedItemsList.Properties.Settings>
</CachedItemsList.Properties.Settings>
</userSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

View File

@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CachedItemsList.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.10.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}

View File

@@ -0,0 +1,141 @@
using System;
using System.ComponentModel.Composition;
using System.Windows.Media.Imaging;
using DTS.Common;
using DTS.Common.Interface;
using DTS.Common.Interface.TestSetups.CachedItemsList;
using CachedItemsList;
using Prism.Modularity;
using Unity;
using Prism.Ioc;
// ReSharper disable CheckNamespace
// ReSharper disable RedundantAttributeUsageProperty
// ReSharper disable UnusedParameter.Local
[assembly: CachedItemsListModuleName]
[assembly: CachedItemsListModuleImageAttribute]
namespace CachedItemsList
{
[Export(typeof(IModule))]
[Module(ModuleName = "CachedItemsListModule")]
public class CachedItemsListModule : IModule
{
/// <summary>
/// Injected unity container
/// </summary>
private readonly IUnityContainer _unityContainer;
/// <summary>
/// Initializes a new instance of the <see cref="CachedItemsListModule"/> class.
/// </summary>
/// <param name="unityContainer">Obtained reference of the unity container by using dependency injection.</param>
public CachedItemsListModule(IUnityContainer unityContainer)
{
_unityContainer = unityContainer;
}
public void Initialize()
{
// Register View & View-Model with Unity dependency injection container as a singleton.
_unityContainer.RegisterType<ICachedItemsListView, CachedItemsListView>();
_unityContainer.RegisterType<ICachedItemsListViewModel, CachedItemsListViewModel>();
}
public void OnInitialized(IContainerProvider containerProvider)
{
}
public void RegisterTypes(IContainerRegistry containerRegistry)
{
Initialize();
}
}
/// <summary>
/// Attribute class contains assembly name
/// </summary>
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public class CachedItemsListModuleNameAttribute : TextAttribute
{
public CachedItemsListModuleNameAttribute() : this(null) { }
public CachedItemsListModuleNameAttribute(string s)
{
AssemblyName = AssemblyNames.CachedItemsList.ToString();
}
public override string AssemblyName { get; }
public override Type GetAttributeType()
{
return typeof(TextAttribute);
}
public override string GetAssemblyName()
{
return AssemblyName;
}
}
/// <summary>
/// Attribute class contains assembly image and name - used on the Main screen to SummaryModule available components
/// </summary>
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public class CachedItemsListModuleImageAttribute : ImageAttribute
{
private BitmapImage _img;
public CachedItemsListModuleImageAttribute() : this(null) { }
public override BitmapImage AssemblyImage
{
get { _img = AssemblyInfo.GetImage(AssemblyNames.CachedItemsList.ToString()); return _img; }
}
public CachedItemsListModuleImageAttribute(string s)
{
_img = AssemblyInfo.GetImage(AssemblyNames.CachedItemsList.ToString());
}
public override Type GetAttributeType()
{
return typeof(ImageAttribute);
}
public override BitmapImage GetAssemblyImage()
{
return AssemblyImage;
}
private string _name;
public override string AssemblyName
{
get { _name = AssemblyNames.CachedItemsList.ToString(); return _name; }
}
public override string GetAssemblyName()
{
return AssemblyName;
}
private string _group;
public override string AssemblyGroup
{
get { _group = eAssemblyGroups.Prepare.ToString(); return _group; }
}
public override string GetAssemblyGroup()
{
return AssemblyGroup;
}
private eAssemblyRegion _region;
public override eAssemblyRegion AssemblyRegion
{
get { _region = eAssemblyRegion.CachedItemsListRegion; return _region; }
}
public override eAssemblyRegion GetAssemblyRegion()
{
return AssemblyRegion;
}
}
}

View File

@@ -0,0 +1,71 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using DTS.Common.Interface.TestSetups.CachedItemsList;
// ReSharper disable CheckNamespace
namespace CachedItemsList
{
/// <inheritdoc cref="ICachedItemsListView" />
/// <summary>
/// Interaction logic for CachedItemsListView.xaml
/// </summary>
public partial class CachedItemsListView : ICachedItemsListView
{
public CachedItemsListView()
{
InitializeComponent();
}
//private void ListViewHeader_Click(object sender, System.Windows.RoutedEventArgs e)
//{
// var colHeader = (GridViewColumnHeader)e.OriginalSource;
// var viewModel = (ICachedItemsListViewModel)colHeader.DataContext;
// viewModel.Sort(colHeader.Tag, true);
//}
//private void MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
//{
// var lv = sender as ListView;
// if (null == lv)
// {
// return;
// }
// var index = GetCurrentIndex(e.GetPosition, lv);
// if (index >= 0 && index < lv.Items.Count)
// {
// var vm = (ICachedItemsListViewModel) lv.DataContext;
// vm.MouseDoubleClick(index);
// }
//}
//delegate Point GetPositionDelegate(IInputElement element);
//private int GetCurrentIndex(GetPositionDelegate getPosition, ListView lv)
//{
// int index = -1;
// for (int i = 0; i < lv.Items.Count; i++)
// {
// ListViewItem item = GetListViewItem(i, lv);
// if (item == null)
// continue;
// if (IsMouseOverTarget(item, getPosition))
// {
// index = i;
// break;
// }
// }
// return index;
//}
//private ListViewItem GetListViewItem(int index, ListView lv)
//{
// return lv.ItemContainerGenerator.ContainerFromIndex(index) as ListViewItem;
//}
//private bool IsMouseOverTarget(Visual target, GetPositionDelegate getPosition)
//{
// Rect bounds = VisualTreeHelper.GetDescendantBounds(target);
// Point mousePos = getPosition((IInputElement)target);
// return bounds.Contains(mousePos);
//}
}
}

View File

@@ -0,0 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="CachedItemsList.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
</Settings>
</SettingsFile>

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("CachedItemsList")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("DTS")]
[assembly: AssemblyProduct("CachedItemsList")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[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("016e9db3-ef15-4c07-a46e-23f32804af42")]
// 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")]