init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System.ComponentModel;
|
||||
using DTS.Common.Converters;
|
||||
|
||||
namespace DTS.Common.Enums
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum IsoSupportLevels
|
||||
{
|
||||
[Description("ISO 13499")]
|
||||
ISO_ONLY,
|
||||
[Description("User specified channel codes")]
|
||||
TRANSITORY,
|
||||
[Description("No ISO")]
|
||||
NO_ISO
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
x:Class="DTS.Common.XamlConstants"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:system="clr-namespace:System;assembly=mscorlib">
|
||||
<system:Double x:Key="SQUIB_DELAY_MAX">99000</system:Double>
|
||||
<system:Double x:Key="SQUIB_DELAY_MIN">0.0</system:Double>
|
||||
<system:Double x:Key="SQUIB_DURATION_MAX">25.5</system:Double>
|
||||
<system:Double x:Key="SQUIB_DURATION_MIN">.2</system:Double>
|
||||
<system:Double x:Key="SQUIB_TOLERANCE_HIGH">8</system:Double>
|
||||
<system:Double x:Key="SQUIB_TOLERANCE_LOW">.1</system:Double>
|
||||
<system:Double x:Key="SQUIB_CURRENT_LOW">1</system:Double>
|
||||
<system:Double x:Key="SQUIB_CURRENT_HIGH">4</system:Double>
|
||||
<system:Double x:Key="DIGITALOUT_DELAY_MIN">0</system:Double>
|
||||
<system:Double x:Key="DIGITALOUT_DELAY_MAX">99000</system:Double>
|
||||
<system:Double x:Key="UART_DATA_BITS_MIN">5</system:Double>
|
||||
<system:Double x:Key="UART_DATA_BITS_MAX">9</system:Double>
|
||||
<system:Double x:Key="STREAMOUT_TIMECHANNELID_MIN">1</system:Double>
|
||||
<system:Double x:Key="STREAMOUT_TIMECHANNELID_MAX">65535</system:Double>
|
||||
<system:Double x:Key="STREAMOUT_DATACHANNELID_MIN">1</system:Double>
|
||||
<system:Double x:Key="STREAMOUT_DATACHANNELID_MAX">65535</system:Double>
|
||||
<system:Double x:Key="STREAMOUT_IRIG_TDP_MIN">0</system:Double>
|
||||
<system:Double x:Key="STREAMOUT_IRIG_TDP_MAX">1600</system:Double>
|
||||
<system:Double x:Key="STREAMOUT_TMAT_INTERVAL_MIN">0</system:Double>
|
||||
<system:Double x:Key="STREAMOUT_TMAT_INTERVAL_MAX">65535</system:Double>
|
||||
<system:Int32 x:Key="MIN_DB_VERSION_AC_COUPLING">92</system:Int32>
|
||||
<system:Int32 x:Key="TMATSIntervalDbVesion">93</system:Int32>
|
||||
<system:Int32 x:Key="MIN_DB_VERSION_UNIX_EPOCH_TIME">93</system:Int32>
|
||||
<system:Int32 x:Key="MIN_DB_VERSION_RECORD_ON_BOOT">96</system:Int32>
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,19 @@
|
||||
using DTS.Common.Base;
|
||||
using Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The number of loaded Tests changed event.
|
||||
/// </summary>
|
||||
public class GraphSelectedChannelCountNotification : PubSubEvent<GraphSelectedChannelCountNotificationArg> { }
|
||||
public class GraphSelectedChannelCountNotificationArg
|
||||
{
|
||||
public int SelectedChannelCount { get; set; }
|
||||
/// <summary>
|
||||
/// 24417 start pulling apart viewer to allow reuse for PSD reports
|
||||
/// </summary>
|
||||
public IBaseViewModel ParentVM { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<Window x:Class="DTS.Common.Dialogs.ConfirmationWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
Title="{Binding Title}" Icon="..\Images\question_48.png" WindowStyle="ToolWindow" ResizeMode="NoResize"
|
||||
SizeToContent="WidthAndHeight" MinWidth="300" MaxWidth="500" MinHeight="150" MaxHeight="500"
|
||||
x:Name="confirmationWindow">
|
||||
|
||||
<Window.Resources>
|
||||
<Style x:Key="ReadOnlyTextBox" TargetType="TextBox">
|
||||
<Setter Property="IsReadOnly" Value="True" />
|
||||
<Setter Property="TextWrapping" Value="Wrap" />
|
||||
<Setter Property="Height" Value="Auto"/>
|
||||
<Setter Property="Width" Value="Auto"/>
|
||||
<Setter Property="Margin" Value="5"/>
|
||||
<Setter Property="Background" Value="White"/>
|
||||
<Setter Property="BorderBrush" Value="White"/>
|
||||
<Setter Property="BorderThickness" Value="0"/>
|
||||
<Setter Property="IsTabStop" Value="False"/>
|
||||
<Setter Property="TextAlignment" Value="Left"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalScrollBarVisibility" Value="Hidden"/>
|
||||
<Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
|
||||
</Style>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid x:Name="LayoutRoot" Margin="2">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="48"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Image Grid.Row="0" Grid.Column="0" Source="..\Images\question_48.png" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,5,0,5"/>
|
||||
|
||||
<ContentControl Grid.Row="0" Grid.Column="1" ContentTemplate="{Binding ConfirmationTemplate, ElementName=confirmationWindow}"
|
||||
HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,10,10,5">
|
||||
<TextBox Text="{Binding Content}" Style="{StaticResource ReadOnlyTextBox}"/>
|
||||
</ContentControl>
|
||||
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5,5,10,5">
|
||||
<Button x:Name="OKButton" Content="OK" Width="70" Height="25" Cursor="Hand" HorizontalAlignment="Right" Margin="5,0">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<i:ChangePropertyAction PropertyName="Confirmed" TargetObject="{Binding}" Value="True"/>
|
||||
<i:CallMethodAction TargetObject="{Binding ElementName=confirmationWindow}" MethodName="Close"/>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
<Button x:Name="CancelButton" Content="Cancel" Width="70" Height="25" Cursor="Hand" HorizontalAlignment="Right">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Click">
|
||||
<i:CallMethodAction TargetObject="{Binding ElementName=confirmationWindow}" MethodName="Close"/>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user