init
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using DTS.Common.Events;
|
||||
using DTS.Common.Interface.Channels.ChannelCodes;
|
||||
|
||||
namespace DTS.Common.Classes.ChannelCodes
|
||||
{
|
||||
public class TextPastedArgs : ITextPastedEventArgs
|
||||
{
|
||||
public string Text { get; }
|
||||
public object Sender { get; }
|
||||
public string Id { get; }
|
||||
|
||||
public object Tag { get; }
|
||||
|
||||
public TextPastedArgs(string text, IChannelCode channelCode, string id, object tag)
|
||||
{
|
||||
Text = text;
|
||||
Sender = channelCode;
|
||||
Id = id;
|
||||
Tag = tag;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface ITestGraphs
|
||||
{
|
||||
string Name { get; set; }
|
||||
string HardwareChannelName { get; set; }
|
||||
List<string> ChannelId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common.Interface.DASFactory.Download
|
||||
{
|
||||
public interface IUARTDownloadRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// From which event do we want to download data?
|
||||
/// </summary>
|
||||
ushort EventNumber { get; set; }
|
||||
/// <summary>
|
||||
/// How much data is there?
|
||||
/// </summary>
|
||||
ulong TotalByteCount { get; set; }
|
||||
/// <summary>
|
||||
/// Where in the data did the trigger occur?
|
||||
/// </summary>
|
||||
ulong TriggerByteCount { get; set; }
|
||||
/// <summary>
|
||||
/// Where in the data did the trigger occur?
|
||||
/// </summary>
|
||||
ulong FaultByteCount { get; set; }
|
||||
/// <summary>
|
||||
/// When did the UART stream start?
|
||||
/// </summary>
|
||||
ulong StartTimestamp { get; set; }
|
||||
/// <summary>
|
||||
/// When did the UART stream end?
|
||||
/// </summary>
|
||||
ulong EndTimestamp { get; set; }
|
||||
/// <summary>
|
||||
/// What was the baud rate during recording?
|
||||
/// </summary>
|
||||
int BaudRate { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using DTS.Common.Interface.Sensors.SoftwareFilters;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors
|
||||
{
|
||||
//FB 13120 new interface to support filter class mapping settings
|
||||
public interface IAnalogDefaults
|
||||
{
|
||||
/// <summary>
|
||||
/// the current selected default filter
|
||||
/// </summary>
|
||||
IFilterClass SelectedFilterOption { get; set; }
|
||||
/// <summary>
|
||||
/// all available filters
|
||||
/// </summary>
|
||||
List<IFilterClass> FilterOptions { get; }
|
||||
|
||||
//FB 18727 Setting to use MeasuredExcitation or not
|
||||
bool UseMeasuredExcitation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// indicates whether the setting is valid or not
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool Validate();
|
||||
void Save();
|
||||
|
||||
/// <summary>
|
||||
/// FB15758 Import/Export settings
|
||||
/// </summary>
|
||||
void ReadXML(System.Xml.XmlElement root);
|
||||
void WriteXML(ref System.Xml.XmlWriter writer);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// The ShowStatus event.
|
||||
/// </summary>
|
||||
///
|
||||
/// <remarks>This event is used by the services to display the current status.</remarks>
|
||||
///
|
||||
public class ShowStatus : CompositePresentationEvent<StatusInfo>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The StatusInfo is used by <see cref="ShowStatus">ShowStatus</see> event to display the current status.
|
||||
/// </summary>
|
||||
public class StatusInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// the current state of a process
|
||||
/// </summary>
|
||||
public enum StatusState
|
||||
{
|
||||
Idle, //Ready state, no longer doing anything
|
||||
Busy, //busy, currently doing something
|
||||
DoneNoError, //no longer working, done, no errors
|
||||
DoneFailed //no longer working, did not complete process
|
||||
}
|
||||
|
||||
public StatusState CurrentState
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this object is busy.
|
||||
/// </summary>
|
||||
public bool IsBusy => CurrentState == StatusState.Busy;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the IsOk flag.
|
||||
/// </summary>
|
||||
public bool IsOk
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the progress bar percentage.
|
||||
/// </summary>
|
||||
public decimal Percentage
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the status information.
|
||||
/// </summary>
|
||||
public string Text
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the id of the process.
|
||||
/// </summary>
|
||||
public int ProcessId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// creates a new status info, sets the text to the default for the state
|
||||
/// note that consumers are free not to use the Text Property of the Status Info,
|
||||
/// but we set it anyhow.
|
||||
/// </summary>
|
||||
/// <param name="state"></param>
|
||||
/// <param name="percentage"></param>
|
||||
/// <param name="processId"></param>
|
||||
/// <param name="text"></param>
|
||||
/// <param name="isOk"></param>
|
||||
public StatusInfo(StatusState state, string text = null, decimal percentage = -1, int processId = -1,bool isOk = true)
|
||||
{
|
||||
CurrentState = state;
|
||||
IsOk = isOk;
|
||||
Percentage = percentage;
|
||||
Text = text;
|
||||
ProcessId = processId;
|
||||
if (null == text)
|
||||
{
|
||||
Text = Strings.Strings.ResourceManager.GetString("StatusState_" + state) ?? state.ToString();
|
||||
}
|
||||
}
|
||||
public void Unsubscribe(ShowStatus showStatus)
|
||||
{
|
||||
Text = String.Empty;
|
||||
CurrentState = StatusState.Idle;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IPaginationView : IBaseView
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user