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,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,44 @@
using System.Windows;
using Microsoft.Practices.Prism.Interactivity.InteractionRequest;
namespace DTS.Common.Dialogs
{
/// <summary>
/// Represents an interaction request used for confirmations.
/// </summary>
public class ConfirmationEx : Confirmation
{
/// <summary>
/// Gets or sets the type of buttons displayed in the confirmation window.
/// </summary>
public MessageBoxButton Buttons { get; set; } = MessageBoxButton.OKCancel;
/// <summary>
/// Gets or sets the type of image displayed in the confirmation window.
/// </summary>
public MessageBoxImage Image { get; set; } = MessageBoxImage.Question;
/// <summary>
/// Returns result of the confirmation window.
/// </summary>
public MessageBoxResult Result { get; set; }
///// <summary>
///// The number of milliseconds before dialog auto-closes (0 = remain open).
///// </summary>
//public int Timeout
//{
// get { return _timeout; }
// set { _timeout = value; }
//}
///// <summary>
///// Returns result of the confirmation window.
///// </summary>
//public MessageBoxResult TimeoutResult
//{
// get { return _timeoutResult; }
// set { _timeoutResult = value; }
//}
}
}