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,141 @@
<?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="AssociatedTestSetups" xml:space="preserve">
<value>Associated Test Setups</value>
</data>
<data name="Channels" xml:space="preserve">
<value>Channels</value>
</data>
<data name="Description" xml:space="preserve">
<value>Description</value>
</data>
<data name="LastModified" xml:space="preserve">
<value>Last modified</value>
</data>
<data name="LastModifiedBy" xml:space="preserve">
<value>Last modified by</value>
</data>
<data name="Name" xml:space="preserve">
<value>Name</value>
</data>
<data name="TemplateName" xml:space="preserve">
<value>Template name</value>
</data>
</root>

View File

@@ -0,0 +1,85 @@
using DTS.Common.Interface.Groups.GroupTemplateList;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using DTS.Common.Controls;
using DTS.Common.Interface.Groups.GroupList;
using DTS.Common.Utils;
// ReSharper disable CheckNamespace
namespace GroupList
{
/// <inheritdoc cref="IGroupListView" />
/// <summary>
/// Interaction logic for GroupListView.xaml
/// </summary>
public partial class GroupListView : IGroupListView
{
public GroupListView()
{
InitializeComponent();
}
private void ListViewHeader_Click(object sender, RoutedEventArgs e)
{
var colHeader = (GridViewColumnHeader)e.OriginalSource;
var viewModel = (IGroupListViewModel)colHeader.DataContext;
viewModel.Sort(colHeader.Tag, true);
}
private void GridViewColumnHeaderSearchable_OnSearch(object sender, RoutedEventArgs e)
{
var searchTerm = (string)e.OriginalSource;
var columnTag = (sender as GridViewColumnHeaderSearchable)?.Tag;
var vm = (IGroupListViewModel)DataContext;
vm.Filter(columnTag, searchTerm);
}
private void GridViewColumnHeader_OnClick(object sender, RoutedEventArgs e)
{
var vm = (IGroupListViewModel)DataContext;
var columnTag = (sender as GridViewColumnHeaderSearchable)?.Tag ?? Utils.FindChild<GridViewColumnHeaderSearchable>((DependencyObject)e.OriginalSource, null)?.Tag;
vm?.Sort(columnTag, true);
}
private void MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
if (!(sender is ListView lv))
{
return;
}
var index = GetCurrentIndex(e.GetPosition, lv);
if (index >= 0 && index < lv.Items.Count)
{
var vm = (IGroupListViewModel)lv.DataContext;
vm.MouseDoubleClick(index);
}
}
private delegate Point GetPositionDelegate(IInputElement element);
private static int GetCurrentIndex(GetPositionDelegate getPosition, ListView lv)
{
var index = -1;
for (var i = 0; i < lv.Items.Count; i++)
{
var item = GetListViewItem(i, lv);
if (item == null)
continue;
if (IsMouseOverTarget(item, getPosition))
{
index = i;
break;
}
}
return index;
}
private static ListViewItem GetListViewItem(int index, ListView lv)
{
return lv.ItemContainerGenerator.ContainerFromIndex(index) as ListViewItem;
}
private static bool IsMouseOverTarget(Visual target, GetPositionDelegate getPosition)
{
var bounds = VisualTreeHelper.GetDescendantBounds(target);
var mousePos = getPosition((IInputElement)target);
return bounds.Contains(mousePos);
}
}
}

View File

@@ -0,0 +1,186 @@
<?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>{C2271F25-9ED4-405A-9756-D4AC54D46977}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GroupList</RootNamespace>
<AssemblyName>GroupList</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="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.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.Web.Extensions" />
<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\ChannelSetting.cs" />
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Include="GroupListModule.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\GroupListViewModel.cs" />
<Compile Include="View\GroupListView.xaml.cs">
<DependentUpon>GroupListView.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.DataModel\DTS.Common.DataModel.csproj">
<Project>{2a2f03a9-bf85-4360-a06a-cf3016d2633b}</Project>
<Name>DTS.Common.DataModel</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="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Page Include="View\GroupListView.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,6 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="GroupTemplateList.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
</Settings>
</SettingsFile>

View File

@@ -0,0 +1,140 @@
using System;
using System.ComponentModel.Composition;
using System.Windows.Media.Imaging;
using DTS.Common;
using DTS.Common.Interface;
using DTS.Common.Interface.Groups.GroupList;
using DTS.Common.Interface.Groups.GroupTemplateList;
using GroupList;
using Prism.Ioc;
using Prism.Modularity;
using Unity;
// ReSharper disable CheckNamespace
// ReSharper disable RedundantAttributeUsageProperty
// ReSharper disable UnusedParameter.Local
[assembly: GroupListModuleName]
[assembly: GroupListModuleImageAttribute]
namespace GroupList
{
[Export(typeof(IModule))]
[Module(ModuleName = "GroupListModule")]
public class GroupListModule : IModule
{
/// <summary>
/// Injected unity container
/// </summary>
private readonly IUnityContainer _unityContainer;
/// <summary>
/// Initializes a new instance of the <see cref="GroupListModule"/> class.
/// </summary>
/// <param name="unityContainer">Obtained reference of the unity container by using dependency injection.</param>
public GroupListModule(IUnityContainer unityContainer)
{
_unityContainer = unityContainer;
}
public void Initialize()
{
// Register View & View-Model with Unity dependency injection container as a singleton.
_unityContainer.RegisterType<IGroupListView, GroupListView>();
_unityContainer.RegisterType<IGroupListViewModel, GroupListViewModel>();
}
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 GroupListModuleNameAttribute : TextAttribute
{
public GroupListModuleNameAttribute() : this(null) { }
public GroupListModuleNameAttribute(string s)
{
AssemblyName = AssemblyNames.GroupList.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 GroupListModuleImageAttribute : ImageAttribute
{
private BitmapImage _img;
public GroupListModuleImageAttribute() : this(null) { }
public override BitmapImage AssemblyImage
{
get { _img = AssemblyInfo.GetImage(AssemblyNames.GroupList.ToString()); return _img; }
}
public GroupListModuleImageAttribute(string s)
{
_img = AssemblyInfo.GetImage(AssemblyNames.GroupList.ToString());
}
public override Type GetAttributeType()
{
return typeof(ImageAttribute);
}
public override BitmapImage GetAssemblyImage()
{
return AssemblyImage;
}
private string _name;
public override string AssemblyName
{
get { _name = AssemblyNames.GroupList.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.GroupListRegion; return _region; }
}
public override eAssemblyRegion GetAssemblyRegion()
{
return AssemblyRegion;
}
}
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Windows.Markup;
using GroupList.Resources;
namespace GroupList
{
[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,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 GroupList.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,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="GroupList.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
</sectionGroup>
</configSections>
<userSettings>
<GroupList.Properties.Settings>
</GroupList.Properties.Settings>
</userSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

View File

@@ -0,0 +1,529 @@
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Threading.Tasks;
using DTS.Common.Events;
using GroupList.Model;
using DTS.Common.Interface.Groups.GroupTemplateList;
using DTS.Common.Enums.Groups.GroupList;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System;
using System.Collections.Specialized;
using System.Linq;
using DTS.Common.Events.Groups.GroupList;
using DTS.Common.Interface.Groups.GroupList;
using System.Windows;
using DTS.Common.Storage;
using DTS.Common.Interface.Groups;
using Prism.Events;
using Prism.Regions;
using Unity;
using DTS.Common.Interactivity;
// ReSharper disable CheckNamespace
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable InconsistentNaming
namespace GroupList
{
/// <summary>
/// this class handles GroupList functionality
/// </summary>
[PartCreationPolicy(CreationPolicy.Shared)]
public class GroupListViewModel : IGroupListViewModel
{
/// <summary>
/// The GroupList view
/// </summary>
public IGroupListView 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 GroupListViewModel
/// </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 GroupListViewModel(IGroupListView 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);
SelectedGroupItems = new ObservableCollection<IGroup>();
}
#endregion
#region Methods
public void ClearAllFilters()
{
_filterByField.Clear();
}
public void MouseDoubleClick(int index)
{
if (index >= 0 && index < Groups.Length && SelectedGroupItems.Count == 1)
{
_eventAggregator.GetEvent<GroupListEditGroupEvent>().Publish(Groups[index].Id);
}
}
public void Filter(string term)
{
CurrentSearchTerm = term;
Sort(_sortField.ToString(), false);
}
public IGroup GetGroup(int? id, bool updateTags = true)
{
if (id >= 0)
{
if (updateTags)
{
//Update the Tags in case they were modified by a different user
DTS.Common.Classes.Tags.TagsInstance.GetTagsInstance(DbOperations.TagsGet).UpdateList(DbOperations.TagsGet);
}
var groups = Group.GetAllGroups(id);
if (groups.Any())
{
return groups[0];
}
}
return new Group();
}
public IGroup GetGroup(string displayName)
{
//Get all of the groups with this DisplayName. This consists of both embedded and non-embedded
//if it was a pre-2.0 static Group or just the embedded, if it was a pre-2.0 Added Group.
//If the Group was first created in 2.0, it may have both embedded and non-embedded or just embedded.
var groups = Group.GetAllGroups(displayName);
foreach (var group in groups)
{
if (!group.Embedded)
{
//Return the corresponding non-embedded Group
return group;
}
}
return null;
}
public IGroup[] GetGroups(int[] ids)
{
var allGroups = Group.GetAllGroups().ToList();
for (var i = allGroups.Count - 1; i >= 0; i--)
{
if (ids.Contains(allGroups[i].Id)) { continue; }
allGroups.RemoveAt(i);
}
return allGroups.ToArray();
}
public IGroup[] GetAllGroups()
{
var allGroups = Group.GetAllGroups();
return allGroups;
}
public void DeleteGroups(int[] ids)
{
try
{
foreach (var id in ids)
{
//Set any embedded Groups' that have the to-be-deleted
//Group's Id as their StaticGroupId to null.
var relatedEmbeddedGroups = Group.GetAllRelatedEmbeddedGroups(id);
foreach (var embeddedGroup in relatedEmbeddedGroups)
{
Group.SetNullStaticGroupId(embeddedGroup);
}
Group.Delete(id);
}
var list = AllGroups.ToList();
for (var i = AllGroups.Length - 1; i >= 0; i--)
{
if (ids.Contains(AllGroups[i].Id))
{
list.RemoveAt(i);
}
}
AllGroups = list.ToArray();
Filter(CurrentSearchTerm);
}
catch (Exception ex)
{
_eventAggregator.GetEvent<PageErrorEvent>().Publish(new PageErrorArg(new[] { ex.Message }, Page));
}
}
public IGroup CreateGroup()
{
return new Group(true);
}
public IGroup CreateGroup(System.Data.SqlClient.SqlDataReader reader, List<string> includedHardwareStringList, List<int> dasIdList)
{
return new Group(reader, includedHardwareStringList, dasIdList);
}
public IGroup CreateGroup(IGroupDbRecord groupRecord, List<string> includedHardwareStringList, List<int> dasIdList)
{
return new Group(groupRecord, includedHardwareStringList, dasIdList);
}
public IGroup CreateGroup(List<string> includedHardwareStringList)
{
return new Group(includedHardwareStringList);
}
public void Filter(object tag, string term)
{
if (!Enum.TryParse((string)tag, out GroupFields field)) return;
_filterByField[field] = term;
_sortField = field;
Filter(term);
}
public void OnSetActive(object page, bool groupTile, object o)
{
try
{
var currentUser = (DTS.Slice.Users.User)o;
Page = page;
var groups = Group.GetAllGroups().Where(@group => currentUser.Role == DTS.Slice.Users.User.DefaultRoles.Administrator || currentUser.TagCompatible(@group.TagIDs)).ToList();
if (groupTile)
{
AllGroups = groups.ToArray();
Task.Run(() => GetTestSetupListsAsync());
}
else
{
AllGroups = groups.ToArray();
Sort(_sortField.ToString(), false);
}
}
catch (Exception ex)
{
_eventAggregator.GetEvent<PageErrorEvent>().Publish(new PageErrorArg(new[] { ex.Message }, Page));
}
}
private void GetTestSetupListsAsync()
{
_eventAggregator.GetEvent<AppStatusEvent>().Publish(AppStatusArg.Busy);
var groups = AllGroups.ToArray();
_eventAggregator.GetEvent<ProgressBarEvent>().Publish(new ProgressBarEventArg()
{ ProgressBarText = $"Getting groups", SetText = true });
groups.AsParallel().ForAll(g =>
{
_eventAggregator.GetEvent<ProgressBarEvent>().Publish(new ProgressBarEventArg()
{ ProgressBarText = $"Getting group {g.DisplayName}", SetText = true });
g.SetTestSetupLists();
});
Application.Current.Dispatcher.Invoke(new Action(() =>
{
Sort(_sortField.ToString(), false);
}));
_eventAggregator.GetEvent<ProgressBarEvent>().Publish(new ProgressBarEventArg()
{ ProgressBarText = $"Waiting for user input", SetText = true });
_eventAggregator.GetEvent<AppStatusEvent>().Publish(AppStatusArg.Available);
}
public void Unset()
{
AllGroups = new IGroup[0];
Groups = new IGroup[0];
ClearAllFilters();
_eventAggregator.GetEvent<ListViewStatusEvent>()
.Publish(new ListViewStatusArg(ListViewStatusArg.ListViewStatus.Unloaded, ListViewId));
}
public void Sort(object o, bool bColumnClick)
{
if (!(o is string s)) { return; }
if (!Enum.TryParse(s, out GroupFields tag)) { return; }
if (bColumnClick)
{
if (tag != _sortField)
{
_sortField = tag;
_sortAscending = true;
}
else
{
_sortAscending = !_sortAscending;
}
}
_comparer.SortAscending = _sortAscending;
_comparer.SortField = _sortField;
var list = new List<IGroup>();
foreach (var group in AllGroups)
{
if (group.Filter(CurrentSearchTerm))
{
if (GroupFilter(group))
{
list.Add(group);
}
}
}
var originalList = list.ToList();
list.Sort(_comparer);
//this doesn't seem right, should just use the _sortField and sort ascending
//logic already present
//if (originalList.SequenceEqual(list) && originalList.Count > 1 &&
// !(_comparer.SortAscending && _comparer.SortField == GroupFields.LastModified))//AllGroups already ordered by lastmodified, ascending
//{
// //list was already in order. flip it for the user
// _sortAscending = !_sortAscending;
// _comparer.SortAscending = _sortAscending;
// list.Sort(_comparer);
//}
Groups = list.ToArray();
OnPropertyChanged("Groups");
}
private bool GroupFilter(IGroup group)
{
var fields = Enum.GetValues(typeof(GroupFields)).Cast<GroupFields>().ToArray();
foreach (var field in fields)
{
if (!_filterByField.ContainsKey(field)) { continue; }
var term = _filterByField[field];
if (string.IsNullOrWhiteSpace(term)) { continue; }
switch (field)
{
case GroupFields.DisplayName:
if (!(System.Globalization.CultureInfo.CurrentCulture.CompareInfo.IndexOf(group.DisplayName, term,
System.Globalization.CompareOptions.OrdinalIgnoreCase) >= 0))
{
return false;
}
break;
case GroupFields.Description:
if (!(System.Globalization.CultureInfo.CurrentCulture.CompareInfo.IndexOf(group.Description, term,
System.Globalization.CompareOptions.OrdinalIgnoreCase) >= 0))
{
return false;
}
break;
case GroupFields.ChannelCount:
if (!(System.Globalization.CultureInfo.CurrentCulture.CompareInfo.IndexOf(group.ChannelCount.ToString(), term,
System.Globalization.CompareOptions.OrdinalIgnoreCase) >= 0))
{
return false;
}
break;
case GroupFields.LastModified:
if (!(System.Globalization.CultureInfo.CurrentCulture.CompareInfo.IndexOf(group.LastModified.ToString(), term,
System.Globalization.CompareOptions.OrdinalIgnoreCase) >= 0))
{
return false;
}
break;
case GroupFields.LastModifiedBy:
if (!(System.Globalization.CultureInfo.CurrentCulture.CompareInfo.IndexOf(group.LastModifiedBy, term,
System.Globalization.CompareOptions.OrdinalIgnoreCase) >= 0))
{
return false;
}
break;
case GroupFields.AssociatedTestSetups:
{
var testSetups = new List<string>();
foreach (var assoc in group.AssociatedTestSetups) { testSetups.Add(assoc.Name); }
var s = string.Join(", ", testSetups.ToArray());
if (!(System.Globalization.CultureInfo.CurrentCulture.CompareInfo.IndexOf(s, term,
System.Globalization.CompareOptions.OrdinalIgnoreCase) >= 0))
{
return false;
}
}
break;
default:
throw new ArgumentOutOfRangeException();
}
}
return true;
}
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;
}
private void FireSelectionChanged()
{
_eventAggregator.GetEvent<GroupListGroupSelectedEvent>().Publish(_selectedGroupItems.Select(grp => grp.Id).ToArray());
}
/// <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
});
}
#endregion
#region Properties
private readonly Dictionary<GroupFields, string> _filterByField = new Dictionary<GroupFields, string>();
private string CurrentSearchTerm = "";
public int SelectedGroupIndex { get; set; } = -1;
public ObservableCollection<IGroup> _selectedGroupItems;
public ObservableCollection<IGroup> SelectedGroupItems
{
get => _selectedGroupItems;
set
{
if (_selectedGroupItems != null)
{
_selectedGroupItems.CollectionChanged -= SelectedGroupItemsOnCollectionChanged;
}
_selectedGroupItems = value;
if (_selectedGroupItems != null)
{
_selectedGroupItems.CollectionChanged += SelectedGroupItemsOnCollectionChanged;
}
FireSelectionChanged();
}
}
private void SelectedGroupItemsOnCollectionChanged(object sender, NotifyCollectionChangedEventArgs notifyCollectionChangedEventArgs)
{
if (DTS.Common.Enums.SelectedItemsStatus.GetUpdating(SelectedGroupItems)) { return; }
FireSelectionChanged();
}
private IGroup[] AllGroups { get; set; }
//sort by last modified descending by default
private bool _sortAscending = false;
private GroupFields _sortField = GroupFields.LastModified;
private readonly GroupComparer _comparer = new GroupComparer();
public IGroup[] Groups { get; set; }
public bool IsDirty { get; private set; }
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 string ListViewId => "GroupListView";
private object Page { get; set; }
#endregion Properties
#region Commands
#endregion
}
}

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("GroupTemplateList")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("DTS")]
[assembly: AssemblyProduct("GroupTemplateList")]
[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("95d3c318-8333-4d0b-b508-21d654404443")]
// 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")]

View File

@@ -0,0 +1,109 @@
<base:BaseView x:Class="GroupList.GroupListView"
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:behaviors="clr-namespace:DTS.Common.Behaviors;assembly=DTS.Common"
xmlns:controls="clr-namespace:DTS.Common.Controls;assembly=DTS.Common"
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:strings="clr-namespace:GroupList"
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"
xmlns:controls2="clr-namespace:DTS.Common.Controls;assembly=DTS.Common"
xmlns:converters="clr-namespace:DTS.Common.Converters;assembly=DTS.Common">
<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" />
<converters:ListToStringConverter x:Key="ListToString"/>
<converters:StringListToVisibilityConverter x:Key="StringListToVisibility"/>
</ResourceDictionary>
</base:BaseView.Resources>
<Grid Background="{DynamicResource Brush_ApplicationContentBackground}">
<ListView ItemsSource="{Binding Groups, UpdateSourceTrigger=PropertyChanged}" AutomationProperties.AutomationId="GroupListView" SelectedIndex="{Binding SelectedGroupIndex}" MouseDoubleClick="MouseDoubleClick" GridViewColumnHeader.Click="GridViewColumnHeader_OnClick">
<i:Interaction.Behaviors>
<behaviors:MultiSelectionBehavior SelectedItems="{Binding SelectedGroupItems}" />
</i:Interaction.Behaviors>
<ListView.View>
<controls:AutoSizedGridView AutomationProperties.AutomationId="GroupListGridView">
<GridViewColumn AutomationProperties.AutomationId="DisplayName">
<controls2:GridViewColumnHeaderSearchable Tag="DisplayName" HeaderTitle="{strings:TranslateExtension Name}" Search="GridViewColumnHeaderSearchable_OnSearch" ClickHandler="GridViewColumnHeader_OnClick" ListviewId="{Binding ListViewId}"/>
<GridViewColumn.CellTemplate>
<ItemContainerTemplate>
<TextBlock Text="{Binding DisplayName,FallbackValue='DisplayName'}" AutomationProperties.AutomationId="DisplayName"/>
</ItemContainerTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn AutomationProperties.AutomationId="Description">
<controls2:GridViewColumnHeaderSearchable Tag="Description" HeaderTitle="{strings:TranslateExtension Description}" Search="GridViewColumnHeaderSearchable_OnSearch" ClickHandler="GridViewColumnHeader_OnClick" ListviewId="{Binding ListViewId}"/>
<GridViewColumn.CellTemplate>
<ItemContainerTemplate>
<TextBlock Text="{Binding Description,FallbackValue='Description'}" AutomationProperties.AutomationId="Description"/>
</ItemContainerTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn AutomationProperties.AutomationId="ChannelCount">
<controls2:GridViewColumnHeaderSearchable Tag="ChannelCount" HeaderTitle="{strings:TranslateExtension Channels}" Search="GridViewColumnHeaderSearchable_OnSearch" ClickHandler="GridViewColumnHeader_OnClick" ListviewId="{Binding ListViewId}"/>
<GridViewColumn.CellTemplate>
<ItemContainerTemplate>
<TextBlock Text="{Binding ChannelCount,FallbackValue='ChannelCount'}" AutomationProperties.AutomationId="ChannelCount"/>
</ItemContainerTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn AutomationProperties.AutomationId="LastModifiedBy">
<controls2:GridViewColumnHeaderSearchable Tag="LastModifiedBy" HeaderTitle="{strings:TranslateExtension LastModifiedBy}" Search="GridViewColumnHeaderSearchable_OnSearch" ClickHandler="GridViewColumnHeader_OnClick" ListviewId="{Binding ListViewId}"/>
<GridViewColumn.CellTemplate>
<ItemContainerTemplate>
<TextBlock Text="{Binding LastModifiedBy,FallbackValue='LastModifiedBy'}" AutomationProperties.AutomationId="LastModifiedBy"/>
</ItemContainerTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn AutomationProperties.AutomationId="LastModified">
<controls2:GridViewColumnHeaderSearchable Tag="LastModified" HeaderTitle="{strings:TranslateExtension LastModified}" Search="GridViewColumnHeaderSearchable_OnSearch" ClickHandler="GridViewColumnHeader_OnClick" ListviewId="{Binding ListViewId}"/>
<GridViewColumn.CellTemplate>
<ItemContainerTemplate>
<TextBlock Text="{Binding LastModified,FallbackValue='LastModified'}" AutomationProperties.AutomationId="LastModified"/>
</ItemContainerTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn AutomationProperties.AutomationId="AssociatedTestSetups">
<controls2:GridViewColumnHeaderSearchable Tag="AssociatedTestSetups" HeaderTitle="{strings:TranslateExtension AssociatedTestSetups}" Search="GridViewColumnHeaderSearchable_OnSearch" ClickHandler="GridViewColumnHeader_OnClick" ListviewId="{Binding ListViewId}"/>
<GridViewColumn.CellTemplate>
<ItemContainerTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="{Binding ModifiedTestSetupStringList,Converter={StaticResource ListToString},FallbackValue='ModifiedTestSetups '}" AutomationProperties.AutomationId="tblkModifiedTestSetups" FontStyle="Italic"/>
<Grid Grid.Column="1" Visibility="{Binding UnmodifiedTestSetupStringList,Converter={StaticResource StringListToVisibility}}">
<TextBlock Text=", " Visibility="{Binding ModifiedTestSetupStringList,Converter={StaticResource StringListToVisibility}}"/>
</Grid>
<TextBlock Grid.Column="2" Text="{Binding UnmodifiedTestSetupStringList,Converter={StaticResource ListToString},FallbackValue='AssociatedTestSetups'}" AutomationProperties.AutomationId="AssociatedTestSetups"/>
</Grid>
</ItemContainerTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</controls:AutoSizedGridView>
</ListView.View>
</ListView>
</Grid>
</base:BaseView>

View File

@@ -0,0 +1,126 @@
//------------------------------------------------------------------------------
// <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 GroupList.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("GroupList.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 Associated Test Setups.
/// </summary>
internal static string AssociatedTestSetups {
get {
return ResourceManager.GetString("AssociatedTestSetups", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Channels.
/// </summary>
internal static string Channels {
get {
return ResourceManager.GetString("Channels", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Description.
/// </summary>
internal static string Description {
get {
return ResourceManager.GetString("Description", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Last modified.
/// </summary>
internal static string LastModified {
get {
return ResourceManager.GetString("LastModified", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Last modified by.
/// </summary>
internal static string LastModifiedBy {
get {
return ResourceManager.GetString("LastModifiedBy", 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 Template name.
/// </summary>
internal static string TemplateName {
get {
return ResourceManager.GetString("TemplateName", resourceCulture);
}
}
}
}

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net452" />
</packages>

View File

@@ -0,0 +1,5 @@
using DTS.Common.Interface.Channels;
namespace GroupList.Model
{
}