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,12 @@
using System.Collections.Generic;
using DTS.Common.Interface;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of selected Graphs changed event.
/// </summary>
public class ChannelsModificationNotification : PubSubEvent<List<ITestChannel>> { }
}

View File

@@ -0,0 +1,38 @@
using System;
namespace DTS.Common.Interactivity
{
public class InteractionRequest<T> : IInteractionRequest
where T : INotification
{
/// <summary>
/// Fired when interaction is needed.
/// </summary>
public event EventHandler<InteractionRequestedEventArgs> Raised;
/// <summary>
/// Fires the Raised event.
/// </summary>
/// <param name="context">The context for the interaction request.</param>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate")]
public void Raise(T context)
{
Raise(context, c => { });
}
/// <summary>
/// Fires the Raised event.
/// </summary>
/// <param name="context">The context for the interaction request.</param>
/// <param name="callback">The callback to execute when the interaction is completed.</param>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1030:UseEventsWhereAppropriate")]
public void Raise(T context, Action<T> callback)
{
var handler = Raised;
if (handler != null)
{
handler(this, new InteractionRequestedEventArgs(context, () => { if (callback != null) callback(context); }));
}
}
}
}

View File

@@ -0,0 +1,24 @@
using DTS.Common.Enums;
using System.IO.Ports;
namespace DTS.Common.Interface.DASFactory.Download
{
public interface IUARTDownload
{
/// <summary>
/// FB15335: Move UART and ClockProfile sets to RunTest -> Hardware NavStep, add Reboot
/// DASFactory will fill these with the current values.
/// </summary>
uint BaudRate { get; }
uint DataBits { get; }
StopBits StopBits { get; }
Parity Parity { get; }
Handshake FlowControl { get; }
UartDataFormat DataFormat { get; }
/// <summary>
/// What do you want to download?
/// </summary>
IUARTDownloadRequest WhatUARTToDownload { get; set; }
void SetWhatUARTToDownload(IUARTDownloadRequest request, bool bSetInDb = true);
}
}

View File

@@ -0,0 +1,27 @@
using DTS.Common.Interface.GroupTemplate;
using Prism.Events;
namespace DTS.Common.Events.GroupTemplates.TemplateChannelList
{
/// <summary>
/// The GroupTemplateListGroupTemplateSelectedEvent event.
/// </summary>
///
/// <remarks>called when a template is selected.</remarks>
///
public class TemplateChannelListRequiredChangedEvent : PubSubEvent<TemplateChannelListRequiredChangeEventArgs> { }
public class TemplateChannelListRequiredChangeEventArgs
{
public object Consumer { get; }
public IGroupTemplateChannel[] Channels { get; }
public TemplateChannelListRequiredChangeEventArgs(object o, IGroupTemplateChannel[] channels)
{
Consumer = o;
Channels = channels;
}
}
}