init
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,6 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface.Database
|
||||
{
|
||||
public interface IDatabaseStatusBarView : IBaseView { }
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
<Popup x:Class="DTS.Common.Controls.ISOPopup"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:DTS.Common.Controls"
|
||||
xmlns:converters="clr-namespace:DTS.Common.Converters"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Popup.Resources>
|
||||
<converters:BooleanOrMultiConverter x:Key="BooleanOrMultiConverter" />
|
||||
</Popup.Resources>
|
||||
<Popup.Style>
|
||||
<Style TargetType="Popup">
|
||||
<Setter Property="IsOpen" Value="False"/>
|
||||
<Style.Triggers>
|
||||
<MultiDataTrigger>
|
||||
<MultiDataTrigger.Conditions>
|
||||
<Condition Binding="{Binding CodeType}" Value="ISO" />
|
||||
<Condition Binding="{Binding ShowISOStringBuilder}" Value="True" />
|
||||
<Condition Value="True">
|
||||
<Condition.Binding>
|
||||
<MultiBinding Converter="{StaticResource BooleanOrMultiConverter}">
|
||||
<Binding ElementName="MainEditBox" Path="IsKeyboardFocused" />
|
||||
<Binding ElementName="ISOPopup" Path="IsMouseOver" />
|
||||
<Binding ElementName="ISOPopup" Path="IsKeyboardFocusWithin" />
|
||||
<Binding ElementName="possibleChannels" Path="IsKeyboardFocusWithin"/>
|
||||
</MultiBinding>
|
||||
</Condition.Binding>
|
||||
</Condition>
|
||||
</MultiDataTrigger.Conditions>
|
||||
<Setter Property="IsOpen" Value="True" />
|
||||
</MultiDataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Popup.Style>
|
||||
<Border Background="#FFEEEEEE" BorderBrush="#FF888888" BorderThickness="1" >
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel>
|
||||
<TextBlock Text="Test Object" Margin="5"/>
|
||||
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="20" Text="{Binding TestObject, Mode=TwoWay}" Name="txtTO" MaxLength="1" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
|
||||
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
|
||||
AutomationProperties.AutomationId="CCB_ISOPopupTestObjectTextBox">
|
||||
<TextBox.InputBindings>
|
||||
<KeyBinding Key="Enter"
|
||||
Command="{local:UpdatePropertySourceWhenEnterPressed}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
|
||||
</TextBox.InputBindings>
|
||||
</TextBox>
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Position" Margin="5"/>
|
||||
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="20" Text="{Binding Position}" Name="txtPosition" MaxLength="1" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
|
||||
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
|
||||
AutomationProperties.AutomationId="CCB_ISOPopupPositionTextBox">
|
||||
<TextBox.InputBindings>
|
||||
<KeyBinding Key="Enter"
|
||||
Command="{local:UpdatePropertySourceWhenEnterPressed}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
|
||||
</TextBox.InputBindings>
|
||||
</TextBox>
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Main Location" Margin="5"/>
|
||||
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="40" Text="{Binding MainLocation}" Name="txtMainLoc" MaxLength="4" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
|
||||
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
|
||||
AutomationProperties.AutomationId="CCB_ISOPopupMainLocationTextBox">
|
||||
<TextBox.InputBindings>
|
||||
<KeyBinding Key="Enter"
|
||||
Command="{local:UpdatePropertySourceWhenEnterPressed}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
|
||||
</TextBox.InputBindings>
|
||||
</TextBox>
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Fine Loc1" Margin="5"/>
|
||||
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="30" Text="{Binding FineLocation1}" Name="txtFL1" MaxLength="2" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
|
||||
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
|
||||
AutomationProperties.AutomationId="CCB_ISOPopupFineLocation1TextBox">
|
||||
<TextBox.InputBindings>
|
||||
<KeyBinding Key="Enter"
|
||||
Command="{local:UpdatePropertySourceWhenEnterPressed}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
|
||||
</TextBox.InputBindings>
|
||||
</TextBox>
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Fine Loc2" Margin="5"/>
|
||||
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="30" Text="{Binding FineLocation2}" Name="txtFL2" MaxLength="2" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
|
||||
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
|
||||
AutomationProperties.AutomationId="CCB_ISOPopupFineLocation2TextBox">
|
||||
<TextBox.InputBindings>
|
||||
<KeyBinding Key="Enter"
|
||||
Command="{local:UpdatePropertySourceWhenEnterPressed}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
|
||||
</TextBox.InputBindings>
|
||||
</TextBox>
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Fine Loc3" Margin="5"/>
|
||||
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="30" Text="{Binding FineLocation3}" Name="txtFL3" MaxLength="2" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
|
||||
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
|
||||
AutomationProperties.AutomationId="CCB_ISOPopupFineLocation3TextBox">
|
||||
<TextBox.InputBindings>
|
||||
<KeyBinding Key="Enter"
|
||||
Command="{local:UpdatePropertySourceWhenEnterPressed}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
|
||||
</TextBox.InputBindings>
|
||||
</TextBox>
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Dimension" Margin="5"/>
|
||||
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="30" Text="{Binding Dimension}" Name="txtDim" MaxLength="2" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
|
||||
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
|
||||
AutomationProperties.AutomationId="CCB_ISOPopupDimensionTextBox">
|
||||
<TextBox.InputBindings>
|
||||
<KeyBinding Key="Enter"
|
||||
Command="{local:UpdatePropertySourceWhenEnterPressed}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
|
||||
</TextBox.InputBindings>
|
||||
</TextBox>
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Direction" Margin="5"/>
|
||||
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="20" Text="{Binding Direction}" Name="txtDir" MaxLength="1" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
|
||||
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
|
||||
AutomationProperties.AutomationId="CCB_ISOPopupDirectionTextBox">
|
||||
<TextBox.InputBindings>
|
||||
<KeyBinding Key="Enter"
|
||||
Command="{local:UpdatePropertySourceWhenEnterPressed}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
|
||||
</TextBox.InputBindings>
|
||||
</TextBox>
|
||||
</StackPanel>
|
||||
<StackPanel>
|
||||
<TextBlock Text="Filter Class" Margin="5"/>
|
||||
<TextBox HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalContentAlignment="Center" Width="20" Text="{Binding FilterClass}" Name="txtFilterClass" MaxLength="1" GotKeyboardFocus="ISOPart_OnGotKeyboardFocus" GotMouseCapture="ISOPart_OnGotMouseCapture" PreviewKeyUp="ISOPart_OnPreviewKeyUp"
|
||||
IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"
|
||||
AutomationProperties.AutomationId="CCB_ISOPopupFilterClassTextBox">
|
||||
<TextBox.InputBindings>
|
||||
<KeyBinding Key="Enter"
|
||||
Command="{local:UpdatePropertySourceWhenEnterPressed}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type TextBox}}}" />
|
||||
</TextBox.InputBindings>
|
||||
</TextBox>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Popup>
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The CancelProcess event.
|
||||
/// </summary>
|
||||
///
|
||||
/// <remarks>This event is used by the services to display the current status.</remarks>
|
||||
///
|
||||
public class CancelProcessEvent : PubSubEvent<CancelProcess> { }
|
||||
|
||||
/// <summary>
|
||||
/// The CancelProces is used by <see cref="CancelProcessEvent">CancelProcessEvent</see> event to cancel current process.
|
||||
/// </summary>
|
||||
public class CancelProcess
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this object is busy.
|
||||
/// </summary>
|
||||
public bool IsBusy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the id of the process.
|
||||
/// </summary>
|
||||
public int ProcessId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface.TestDefinition
|
||||
{
|
||||
public interface ITestSummary : IBaseClass
|
||||
{
|
||||
string Id { get; set; }
|
||||
string Name { get; set; }
|
||||
string Description { get; set; }
|
||||
int ChannelCount { get; set; }
|
||||
DateTime TestDate { get; set; }
|
||||
string DataType { get; set; }
|
||||
bool IsSelected { get; set; }
|
||||
List<ITestGraphs> Graphs { get; set; }
|
||||
List<ITestChannel> Channels { get; set; }
|
||||
List<ITestChannel> CalculatedChannels { get; set; }
|
||||
IBaseViewModel Parent { get; set; }
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 8.8 KiB |
Reference in New Issue
Block a user