init
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 554 B |
@@ -0,0 +1,16 @@
|
||||
using DTS.Common.Base;
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
//A datafile was selected, but don't want to trip all of the DataFolderChangedEvent subscriptions
|
||||
public class DataFileSelectedEvent : CompositePresentationEvent<DataFileSelectionArg> { }
|
||||
public class DataFileSelectionArg
|
||||
{
|
||||
public string File { get; set; }
|
||||
/// <summary>
|
||||
/// 24417 start pulling apart viewer to allow reuse for PSD reports
|
||||
/// </summary>
|
||||
public IBaseViewModel ParentVM { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.Sensors.SensorsList
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The TTSImportSummaryImportEvent event.
|
||||
/// </summary>
|
||||
///
|
||||
/// <remarks>This event is used by the Summary step to indicate that the Import button was clicked.</remarks>
|
||||
///
|
||||
public class SensorsListSensorSelectedEvent : CompositePresentationEvent<string[]> { }
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System.ComponentModel;
|
||||
using DTS.Common.Converters;
|
||||
using DTS.Common.Utils;
|
||||
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
|
||||
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Enums.Viewer
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum WakeMethodTypeEnum
|
||||
{
|
||||
[Description("None")]
|
||||
None = 0,
|
||||
[Description("Motion detect")]
|
||||
MotionDetect = 1,
|
||||
[Description("Time session")]
|
||||
TimeSession = 2,
|
||||
[Description("Magnet")]
|
||||
Magnet = 3,
|
||||
}
|
||||
public class WakeMethodTypeItemSource : IItemsSource
|
||||
{
|
||||
public ItemCollection GetValues()
|
||||
{
|
||||
return EnumUtil.GetValuesList<WakeMethodTypeEnum>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System.Windows.Input;
|
||||
using DTS.Common.Enums;
|
||||
using DTS.Common.Enums.Channels;
|
||||
|
||||
namespace DTS.Common.Interface.Channels.ChannelCodes
|
||||
{
|
||||
/// <summary>
|
||||
/// used to describe the behavior of channelcodes for the UI
|
||||
/// </summary>
|
||||
public interface IChannelCode
|
||||
{
|
||||
/// <summary>
|
||||
/// id of the channel code in the database
|
||||
/// </summary>
|
||||
int Id { get; }
|
||||
/// <summary>
|
||||
/// codevalue (either user code or isocode depending on codetype)
|
||||
/// </summary>
|
||||
string Code { get; set; }
|
||||
/// <summary>
|
||||
/// name associated with code (either user channel name or iso channel name)
|
||||
/// </summary>
|
||||
string Name { get; set; }
|
||||
/// <summary>
|
||||
/// the type of code (iso or user)
|
||||
/// </summary>
|
||||
ChannelEnumsAndConstants.ChannelCodeType CodeType { get; }
|
||||
/// <summary>
|
||||
/// handler for paste command
|
||||
/// this is used for when data is pasted into either a channel code or name
|
||||
/// it's needed because you can paste many rows, a CSV for example, into one field
|
||||
/// </summary>
|
||||
ICommand PasteCommand { get; set; }
|
||||
/// <summary>
|
||||
/// the status of the item in the UI
|
||||
/// (failed/success/etc)
|
||||
/// </summary>
|
||||
UIItemStatus ItemStatus { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user