init
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
//}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user