init
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace DTS.Common.Converters
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Represents the converter that converts Boolean values to Opacity value.
|
||||
/// Use the BooleanToOpacityConverter class to convert a Boolean to Opacity value to provide visual feedback to the user if control enable or disable.
|
||||
/// </summary>
|
||||
public class BooleanToOpacityConverter : IValueConverter
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts a Boolean value to a Opacity to show user control enable/disable.
|
||||
/// </summary>
|
||||
/// <param name="value">The Boolean value to convert. This value can be a standard Boolean value or a nullable Boolean value.</param>
|
||||
/// <param name="targetType">This parameter is not used.</param>
|
||||
/// <param name="parameter">The converter parameter to use.</param>
|
||||
/// <param name="culture">This parameter is not used.</param>
|
||||
/// <returns>The value to be passed to the target dependency property.</returns>
|
||||
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{
|
||||
|
||||
if (value != null && (bool)value)
|
||||
return 0.5;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface.TestSetups.Diagnostics
|
||||
{
|
||||
public interface IDiagnosticsViewModel : IBaseViewModel
|
||||
{
|
||||
IDiagnosticsTreeView View { get; set; }
|
||||
void Unset();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
namespace DTS.Common.Enums
|
||||
{
|
||||
public enum ApplicationStatusTypes
|
||||
{
|
||||
IDLE,
|
||||
SettingConfiguration,
|
||||
ClearingFlash,
|
||||
Arm,
|
||||
AutoArmPrepare,
|
||||
WaitingForStart,
|
||||
WaitingForTrigger,
|
||||
WaitingForStartWithEvent,
|
||||
WaitingForTriggerCheck,
|
||||
WaitingForAutoArm,
|
||||
WaitingForStreaming,
|
||||
Passed,
|
||||
FailedStart,
|
||||
FailedTrigger,
|
||||
Done,
|
||||
FailedArm,
|
||||
FailedDisarm,
|
||||
InvalidSampleRate,
|
||||
InvalidEventLength,
|
||||
InvalidArmMode,
|
||||
UnimplementedArmMode,
|
||||
EventNumberTooLarge,
|
||||
MemoryFull,
|
||||
InvalidSliceCount,
|
||||
ShortedStartRecordInput,
|
||||
ShortedTriggerInput,
|
||||
InvalidPretriggerSamplesRequested,
|
||||
ShortedStartAndTrigger,
|
||||
EventUncompleted,
|
||||
SafeSwitchUnplugged,
|
||||
SquibResistanceFault,
|
||||
BatteryLowVoltage,
|
||||
Failed,
|
||||
ROIFailed,
|
||||
PreparingForArming,
|
||||
WaitingForArmSwitch,
|
||||
Arming,
|
||||
Armed,
|
||||
Disarmed,
|
||||
WaitingForFlashWrite,
|
||||
IdleWaitingForTrigger,
|
||||
IdleWaitingForStart,
|
||||
IdleWaitingForStartWithEvent,
|
||||
PostTestProcessing,
|
||||
ReadyForDownload,
|
||||
ReadyForDownloadFaulted,
|
||||
ReadyForDownloadNoneTriggered,
|
||||
ReadyForDownloadSomeTriggered,
|
||||
Faulted,
|
||||
Detached,
|
||||
FillingBuffer,
|
||||
Recording,
|
||||
NoChannelsInTest,
|
||||
Connecting,
|
||||
NotIncluded,
|
||||
SomeConnected,
|
||||
Validating,
|
||||
CheckingDAS,
|
||||
NoDataToDownload,
|
||||
NoUARTDataToDownload,
|
||||
Cancelled,
|
||||
CancelledPartial,
|
||||
UnexpectedFirmwareVersion,
|
||||
ExpiredCalDate,
|
||||
ChannelCountMismatch,
|
||||
CheckingForExistingData,
|
||||
CheckArmSwitch,
|
||||
CheckingArmSwitch,
|
||||
ExcitationWarmup,
|
||||
//UpdatingConfig,
|
||||
PreparingForDiagnostics,
|
||||
PerformingDiagnostics,
|
||||
NotImplemented,
|
||||
Finished,
|
||||
WaitingForOptions,
|
||||
Exporting,
|
||||
QueryEventData,
|
||||
Downloading,
|
||||
UARTDownloading,
|
||||
CleaningUp,
|
||||
Preparing,
|
||||
WaitingForDAS,
|
||||
UnexpectedMaxMemory,
|
||||
QueryConfiguration,
|
||||
FailBatteryLow,
|
||||
FailBatteryHigh,
|
||||
FailInputLow,
|
||||
FailInputHigh,
|
||||
FailInputInvalid,
|
||||
FailBatteryInvalid,
|
||||
GettingEventInfo,
|
||||
CheckingForData,
|
||||
NoDataCollected,
|
||||
NoDataCollectedSomeTriggered,
|
||||
NoDataCollectedNoneTriggered,
|
||||
Connected,
|
||||
Disconnected,
|
||||
LowPowerMode,
|
||||
DiagnosticsDone, //indicates that diagnostics is complete (maybe not all units have run though, so overall pass/fail is not available yet)
|
||||
FailedArmCheckListSetConfig,
|
||||
ReadingVoltages,
|
||||
FailedSetConfiguration,
|
||||
CreatingCalculatedChannels,
|
||||
NoDASConfigs,
|
||||
UserCanceled,
|
||||
ArmPrepareComplete,
|
||||
AutoDiscovery,
|
||||
LevelTriggered,
|
||||
CapturingAttributes,
|
||||
CheckingArmState,
|
||||
ActivelyStreaming,
|
||||
//14060 DataPRO should fail download ROI if channels are not included in at least one ROI.
|
||||
//this is a status when download ROI has finished all downloads however one or more data channels were not
|
||||
//included in any roi. This explictly excludes output only channels
|
||||
NotAllChannelsDownloaded,
|
||||
// FB15335: Move UART and ClockProfile sets to RunTest -> Hardware NavStep, add Reboot
|
||||
CheckingClockSources,
|
||||
SettingClockSources,
|
||||
CheckingUARTSettings,
|
||||
SettingUARTSettings,
|
||||
Rebooting,
|
||||
Rearming,
|
||||
WaitingForScheduleStartTime,
|
||||
WaitingForInterval,
|
||||
WaitingForMotion,
|
||||
AwakeWaitingForTrigger
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IDownloadDataView :IBaseView
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user