aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.UITests
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.UITests')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.UITests/App.xaml8
-rw-r--r--Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml345
-rw-r--r--Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs129
-rw-r--r--Software/Visual_Studio/Utilities/Tango.UITests/Tango.UITests.csproj15
4 files changed, 127 insertions, 370 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.UITests/App.xaml b/Software/Visual_Studio/Utilities/Tango.UITests/App.xaml
index 36674648b..43576481f 100644
--- a/Software/Visual_Studio/Utilities/Tango.UITests/App.xaml
+++ b/Software/Visual_Studio/Utilities/Tango.UITests/App.xaml
@@ -6,13 +6,7 @@
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
-
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/Tango.MachineStudio.Common;component/Resources/MaterialDesign.xaml" />
- <ResourceDictionary Source="pack://application:,,,/Tango.MachineStudio.Common;component/Themes/LightThemeColors.xaml" />
- </ResourceDictionary.MergedDictionaries>
-
- <!--<ResourceDictionary.MergedDictionaries>
+ <!--<ResourceDictionary.MergedDictionaries>
--><!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! --><!--
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
diff --git a/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml b/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml
index c5bb2001c..53fdc25d3 100644
--- a/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml
+++ b/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml
@@ -1,323 +1,46 @@
<Window x:Class="Tango.UITests.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:colorpic="clr-namespace:Tango.ColorPickers;assembly=Tango.ColorPickers"
+ xmlns:collection="clr-namespace:System.Collections;assembly=mscorlib"
+ xmlns:local="clr-namespace:Tango.UITests"
+ xmlns:dragAndDrop="clr-namespace:Tango.DragAndDrop;assembly=Tango.DragAndDrop"
+ xmlns:components="clr-namespace:Tango.Touch.Components;assembly=Tango.Touch"
+ xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
+ xmlns:keyboard="clr-namespace:Tango.Touch.Keyboard;assembly=Tango.Touch"
+ xmlns:aero="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
+ xmlns:stubs="clr-namespace:Tango.Stubs.Views;assembly=Tango.Stubs"
+ xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
+ xmlns:commonControls="clr-namespace:Tango.PPC.Common.Controls;assembly=Tango.PPC.Common"
+ xmlns:explorer="clr-namespace:Tango.Explorer;assembly=Tango.Explorer"
mc:Ignorable="d"
- Title="MainWindow" Height="700" Width="800" DataContext="{Binding RelativeSource={RelativeSource Self}}" >
+ Title="MainWindow" Height="700" Width="800" DataContext="{Binding RelativeSource={RelativeSource Self}}">
<Grid>
- <TabControl Margin="5" TabStripPlacement="Top">
- <TabControl.Resources>
- <Style TargetType="TabPanel">
- <Setter Property="HorizontalAlignment" Value="Center"/>
- </Style>
- <Style TargetType="TabItem" BasedOn="{StaticResource {x:Type TabItem}}">
- <Setter Property="Padding" Value="20,2"></Setter>
- </Style>
- </TabControl.Resources>
- <TabItem Header="HSB" Padding="5">
- <Grid >
- <Grid.Background>
- <SolidColorBrush Color="{Binding ElementName=HSBPicker, Path=SelectedColor}"/>
- </Grid.Background>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"></ColumnDefinition>
- <ColumnDefinition Width="1*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="0" Orientation="Vertical" Height="Auto" HorizontalAlignment="Center" Width="Auto" VerticalAlignment="Top" Margin="10 50 0 0">
- <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">H:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" VerticalAlignment="Center" Margin="20 0 0 0">
- <TextBox x:Name="HHSBColor" Text="230" FontSize="22" Margin="2" ></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="Auto" HorizontalAlignment="Left" Margin="0 30 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">S:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" VerticalAlignment="Center" Margin="20 0 0 0">
- <TextBox x:Name="SHSBColor" Text="100" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">B:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center" >
- <TextBox x:Name="BHSBColor" Text="50" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="20" VerticalAlignment="Center" FontWeight="DemiBold" Width="65" TextWrapping="Wrap">Thumb height:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center">
- <TextBox x:Name="HSBThumbHeightProp" Text="16" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="20" VerticalAlignment="Center" FontWeight="DemiBold" Width="65" TextWrapping="Wrap" >Thumb color:</TextBlock>
- <Border Width="90" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center" >
- <TextBox x:Name="HSBThumbColorProp" Text="#F4F4F4" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- </StackPanel>
- <StackPanel Grid.Column="1" VerticalAlignment="Center" Orientation="Vertical">
- <colorpic:HsbColorPicker x:Name="HSBPicker" Width="400" Height="400" Background="White" Foreground="Black" BorderBrush="Gainsboro" BorderThickness="0.8"
- H="{Binding ElementName=HHSBColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- S="{Binding ElementName=SHSBColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- B="{Binding ElementName=BHSBColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- ThumbHeight="{Binding ElementName=HSBThumbHeightProp, Path=Text}"
- ThumbColor="{Binding ElementName=HSBThumbColorProp, Path=Text}"/>
-
- <TextBlock Background="LightGray" Margin="0 50 0 0" HorizontalAlignment="Center" Foreground="Black" Width="400" FontSize="24" Height="Auto" MinHeight="40" FontWeight="DemiBold">
- <Run Text="RGB Color: " />
- <Run Text="{Binding ElementName=HSBPicker, Path=SelectedColor}"/>
- </TextBlock>
- </StackPanel>
- </Grid>
- </TabItem>
- <TabItem Header="RGB" Padding="5">
- <Grid >
- <Grid.Background>
- <SolidColorBrush Color="{Binding ElementName=RGBPicker, Path=SelectedColor}"/>
- </Grid.Background>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"></ColumnDefinition>
- <ColumnDefinition Width="1*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="0" Orientation="Vertical" Height="Auto" HorizontalAlignment="Center" Width="Auto" VerticalAlignment="Top" Margin="10 50 0 0">
- <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">R:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" VerticalAlignment="Center" Margin="20 0 0 0">
- <TextBox x:Name="RRGBColor" Text="30" FontSize="22" Margin="2" ></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="Auto" HorizontalAlignment="Left" Margin="0 30 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">G:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" VerticalAlignment="Center" Margin="20 0 0 0">
- <TextBox x:Name="GRGBColor" Text="100" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">B:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center" >
- <TextBox x:Name="BRGBColor" Text="220" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="20" VerticalAlignment="Top" FontWeight="DemiBold" Width="65" TextWrapping="Wrap">Thumb height:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center">
- <TextBox x:Name="RGBThumbHeightProp" Text="16" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="20" VerticalAlignment="Center" FontWeight="DemiBold" Width="65" TextWrapping="Wrap" >Thumb color:</TextBlock>
- <Border Width="90" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center" >
- <TextBox x:Name="RGBThumbColorProp" Text="#F4F4F4" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- </StackPanel>
-
- <StackPanel Grid.Column="1" VerticalAlignment="Center" Orientation="Vertical">
- <colorpic:RgbColorPicker x:Name="RGBPicker" SelectedColor="#5C3D99" Width="400" Height="300" Background="White" Foreground="Black" BorderBrush="Gainsboro" BorderThickness="0.8"
- R="{Binding ElementName=RRGBColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- G="{Binding ElementName=GRGBColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- B="{Binding ElementName=BRGBColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- ThumbHeight="{Binding ElementName=RGBThumbHeightProp, Path=Text}"
- ThumbColor="{Binding ElementName=RGBThumbColorProp, Path=Text}"/>
-
- <TextBlock Margin="0 50 0 0" Background="LightGray" HorizontalAlignment="Center" Foreground="Black" Width="400" FontSize="24" Height="Auto" MinHeight="40" FontWeight="DemiBold">
- <Run Text="RGB Color: " />
- <Run Text="{Binding ElementName=RGBPicker, Path=SelectedColor}"/>
- </TextBlock>
- </StackPanel>
- </Grid>
- </TabItem>
-
- <TabItem Header="CMYK" Padding="5">
- <Grid >
- <Grid.Background>
- <SolidColorBrush Color="{Binding ElementName=CmykPicker, Path=SelectedColor}"/>
- </Grid.Background>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"></ColumnDefinition>
- <ColumnDefinition Width="1*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="0" Orientation="Vertical" Height="Auto" HorizontalAlignment="Center" Width="Auto" VerticalAlignment="Top" Margin="10 50 0 0">
- <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">C:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" VerticalAlignment="Center" Margin="20 0 0 0">
- <TextBox x:Name="CCMYKColor" Text="60" FontSize="22" Margin="2" ></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="Auto" HorizontalAlignment="Left" Margin="0 30 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">M:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" VerticalAlignment="Center" Margin="20 0 0 0">
- <TextBox x:Name="MCMYKColor" Text="20" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">Y:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center" >
- <TextBox x:Name="YCMYKColor" Text="80" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">K:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center" >
- <TextBox x:Name="KCMYKColor" Text="20" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="20" VerticalAlignment="Center" FontWeight="DemiBold" Width="65" TextWrapping="Wrap">Thumb height:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center">
- <TextBox x:Name="CMYKThumbHeightProp" Text="16" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="20" VerticalAlignment="Center" FontWeight="DemiBold" Width="65" TextWrapping="Wrap" >Thumb color:</TextBlock>
- <Border Width="90" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center" >
- <TextBox x:Name="CMYKThumbColorProp" Text="#F4F4F4" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- </StackPanel>
- <StackPanel Grid.Column="1" VerticalAlignment="Top" Orientation="Vertical" Margin="10 60 0 0">
- <colorpic:CmykColorPicker x:Name="CmykPicker" Width="400" Height="400" Background="White" Foreground="Black" BorderBrush="Gainsboro" BorderThickness="0.8"
- Cyan="{Binding ElementName=CCMYKColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- Magenta="{Binding ElementName=MCMYKColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- Yellow="{Binding ElementName=YCMYKColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- Key="{Binding ElementName=KCMYKColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- ThumbHeight="{Binding ElementName=CMYKThumbHeightProp, Path=Text}"
- ThumbColor="{Binding ElementName=CMYKThumbColorProp, Path=Text}"/>
- <TextBlock Margin="0 50 0 0" HorizontalAlignment="Center" Background="LightGray" Foreground="Black" Width="400" FontSize="24" Height="Auto" MinHeight="40" FontWeight="DemiBold">
- <Run Text="RGB Color: " />
- <Run Text="{Binding ElementName=CmykPicker, Path=SelectedColor}"/>
- </TextBlock>
- </StackPanel>
- </Grid>
- </TabItem>
+ <touch:TouchPanel>
+ <touch:LightTouchScrollViewer>
+ <Border Width="500" Height="500" Margin="0 40 0 0">
+ <Grid>
+ <aero:SystemDropShadowChrome CornerRadius="5" Color="Gray" Margin="-3">
+ <aero:SystemDropShadowChrome.RenderTransform>
+ <TranslateTransform X="-5" Y="-5"></TranslateTransform>
+ </aero:SystemDropShadowChrome.RenderTransform>
+ </aero:SystemDropShadowChrome>
+ <Border BorderThickness="1" BorderBrush="Gray" Background="White" CornerRadius="5">
- <TabItem Header="LAB" Padding="5">
- <Grid>
- <Grid.Background>
- <SolidColorBrush Color="{Binding ElementName=LabPicker, Path=SelectedColor}"/>
- </Grid.Background>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"></ColumnDefinition>
- <ColumnDefinition Width="1*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="0" Orientation="Vertical" Height="Auto" HorizontalAlignment="Center" Width="Auto" VerticalAlignment="Top" Margin="10 50 0 0">
- <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">L:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" VerticalAlignment="Center" Margin="20 0 0 0">
- <TextBox x:Name="LLabColor" Text="77" FontSize="22" Margin="2" ></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="Auto" HorizontalAlignment="Left" Margin="0 30 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">A:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" VerticalAlignment="Center" Margin="20 0 0 0">
- <TextBox x:Name="ALabColor" Text="89" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">B:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center" >
- <TextBox x:Name="BLabColor" Text="89" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="20" VerticalAlignment="Center" FontWeight="DemiBold" Width="65" TextWrapping="Wrap">Thumb height:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center">
- <TextBox x:Name="ThumbHeightProp" Text="16" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="20" VerticalAlignment="Center" FontWeight="DemiBold" Width="65" TextWrapping="Wrap" >Thumb color:</TextBlock>
- <Border Width="90" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center" >
- <TextBox x:Name="ThumbColorProp" Text="#F4F4F4" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- </StackPanel>
- <StackPanel Grid.Column="1" VerticalAlignment="Top" Orientation="Vertical" Margin="10 60 0 0">
- <colorpic:LabColorPicker x:Name="LabPicker"
- L="{Binding ElementName=LLabColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- A="{Binding ElementName=ALabColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- B="{Binding ElementName=BLabColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- ThumbHeight="{Binding ElementName=ThumbHeightProp, Path=Text}"
- ThumbColor="{Binding ElementName=ThumbColorProp, Path=Text}"
- Width="400" Height="400" Background="White" Foreground="Black" BorderBrush="Gainsboro" BorderThickness="0.8" />
- <TextBlock Margin="0 50 0 0" HorizontalAlignment="Center" Background="LightGray" Foreground="Black" Width="400" FontSize="24" Height="Auto" MinHeight="40" FontWeight="DemiBold">
- <Run Text="RGB Color: " />
- <Run Text="{Binding ElementName=LabPicker, Path=SelectedColor}"/>
- </TextBlock>
- </StackPanel>
- </Grid>
- </TabItem>
+ </Border>
+
+ <StackPanel>
+ <touch:TouchNumericTextBox HorizontalAlignment="Center" VerticalAlignment="Center" Width="200"></touch:TouchNumericTextBox>
+ <touch:TouchNumericTextBox Margin="0 40 0 0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="200"></touch:TouchNumericTextBox>
- <TabItem Header="LCH" Padding="5">
- <Grid >
- <Grid.Background>
- <SolidColorBrush Color="{Binding ElementName=LchPicker, Path=SelectedColor}"/>
- </Grid.Background>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"></ColumnDefinition>
- <ColumnDefinition Width="1*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="0" Orientation="Vertical" Height="Auto" HorizontalAlignment="Center" Width="Auto" VerticalAlignment="Top" Margin="10 50 0 0">
- <StackPanel Orientation="Horizontal" Margin="0 10 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">L:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" VerticalAlignment="Center" Margin="20 0 0 0">
- <TextBox x:Name="LLCHColor" Text="54" FontSize="22" Margin="2" ></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Height="Auto" HorizontalAlignment="Left" Margin="0 30 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">C:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" VerticalAlignment="Center" Margin="20 0 0 0">
- <TextBox x:Name="CLCHColor" Text="55" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="24" VerticalAlignment="Center" FontWeight="DemiBold" Width="65">H:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center" >
- <TextBox x:Name="HLCHColor" Text="120" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="20" VerticalAlignment="Center" FontWeight="DemiBold" Width="65" TextWrapping="Wrap">Thumb height:</TextBlock>
- <Border Width="80" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center">
- <TextBox x:Name="LCHThumbHeightProp" Text="16" FontSize="22" Margin="2"></TextBox>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0 30 0 0">
- <TextBlock FontSize="20" VerticalAlignment="Center" FontWeight="DemiBold" Width="65" TextWrapping="Wrap" >Thumb color:</TextBlock>
- <Border Width="90" Background="White" CornerRadius="6" Margin="20 0 0 0" VerticalAlignment="Center" >
- <TextBox x:Name="LCHThumbColorProp" Text="#F4F4F4" FontSize="22" Margin="2"></TextBox>
- </Border>
+ <TextBox Margin="0 40 0 0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="200" Height="40"></TextBox>
+ <TextBox Margin="0 40 0 0" HorizontalAlignment="Center" VerticalAlignment="Center" Width="200" Height="40"></TextBox>
</StackPanel>
- </StackPanel>
- <StackPanel Grid.Column="1" VerticalAlignment="Center" Orientation="Vertical">
- <colorpic:LchColorPicker x:Name="LchPicker" Width="400" Height="300" Background="White" Foreground="Black" BorderBrush="Gainsboro" BorderThickness="0.8"
- L="{Binding ElementName=LLCHColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- C="{Binding ElementName=CLCHColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- H="{Binding ElementName=HLCHColor, Path=Text,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- ThumbHeight="{Binding ElementName=LCHThumbHeightProp, Path=Text}"
- ThumbColor="{Binding ElementName=LCHThumbColorProp, Path=Text}"/>
- <TextBlock Margin="0 50 0 0" HorizontalAlignment="Center" Background="LightGray" Foreground="Black" Width="400" FontSize="24" Height="Auto" MinHeight="40" FontWeight="DemiBold">
- <Run Text="RGB Color: " />
- <Run Text="{Binding ElementName=LchPicker, Path=SelectedColor}"/>
- </TextBlock>
- </StackPanel>
- </Grid>
- </TabItem>
-
- </TabControl>
-
-
-
-
- <!--<controls:MultiSelectComboBox Width="250" Height="60" Background="White" Foreground="Black"
- x:Name="MSCombobox"
- BorderBrush="Gainsboro" BorderThickness="0.8"
- Items="{Binding Items}"
- SelectedItemsList ="{Binding SelectedItems}"/>-->
-
-
+ </Grid>
+ </Border>
+ </touch:LightTouchScrollViewer>
+ </touch:TouchPanel>
</Grid>
</Window>
diff --git a/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs b/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs
index bf2db0084..6c24121ba 100644
--- a/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs
@@ -20,6 +20,7 @@ using System.Windows.Shapes;
using System.Windows.Threading;
using Tango.BL;
using Tango.BL.Builders;
+using Tango.BL.Catalogs;
using Tango.BL.Entities;
using Tango.Core;
using Tango.Core.Commands;
@@ -38,8 +39,6 @@ using TableDependency.SqlClient.Base.EventArgs;
using TableDependency.SqlClient.Base.Abstracts;
using Tango.Core.Components;
using System.Text.RegularExpressions;
-using Tango.SharedUI.Controls;
-using System.ComponentModel;
namespace Tango.UITests
{
@@ -48,50 +47,106 @@ namespace Tango.UITests
/// </summary>
public partial class MainWindow : Window
{
- private ObservableCollection<object> _selectedItems;
+ //private ITableDependency _dep;
- public ObservableCollection<object> SelectedItems
+ //private DataSource _dataSource;
+
+ public MainWindow()
{
- get { return _selectedItems; }
- set { _selectedItems = value; }
- }
+ //_dataSource = new DataSource()
+ //{
+ // Address = "twine.database.windows.net",
+ // Catalog = "Tango_DEV",
+ // Type = DataSourceType.SQLServer,
+ // UserName = "Roy",
+ // Password = "Aa123456",
+ // IntegratedSecurity = false,
+ //};
- private ObservableCollection<string> _items;
-
+ //InitializeComponent();
+ //EntityFrameworkCache.Initialize(new MyMemoryCache() { Expiration = TimeSpan.FromMinutes(1) });
- public ObservableCollection<string> Items
- {
- get { return _items; }
- set { _items = value; }
- }
- public MainWindow()
- {
- SelectedItems = new ObservableCollection<object>
- {
- //new MultiSelectComboBoxItem("item1"),
- //new MultiSelectComboBoxItem("item2"),
- //new MultiSelectComboBoxItem("item3"),
- //new MultiSelectComboBoxItem("item4"),
- //new MultiSelectComboBoxItem("item5")
+ //this.Closing += MainWindow_Closing;
+
+ //CmdCommand command = new CmdCommand("wmic", "pagefile list /format:list");
+ //var result = command.Run().Result;
+
+ //Regex regEx = new Regex("Name=(.+)");
+ //var pageFiles = regEx.Matches(result.StandardOutput).OfType<Match>().Select(x => x.Groups.OfType<Group>().LastOrDefault()).ToList().Select(x => x.Value.Replace("\n", "").Replace("\r", "")).ToList();
- };
- Items = new ObservableCollection<string>
- {
- "item1",
- "item2",
- "item3",
- "item4",
- "item5",
- "item6",
- "item7",
- "item8",
- "item9",
+
+ //var matches = matches.OfType<Match>().Select(x => x.Groups.OfType<Group>().Last().Value.Replace("\n","").Replace("\r","")).ToList();
- };
- InitializeComponent();
}
+
+ //private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
+ //{
+ // //if (_dep != null)
+ // //{
+ // // _dep.Stop();
+ // // _dep.Dispose();
+ // //}
+ //}
+
+
+ //private void btnStart_Click(object sender, RoutedEventArgs e)
+ //{
+ // Stopwatch watch = Stopwatch.StartNew();
+
+ // using (ObservablesContext db = ObservablesContext.CreateDefault(_dataSource))
+ // {
+ // var users = db.Users.ToList();
+ // var jobs = new JobsCollectionBuilder(db).SetAll().WithSegments().WithBrushStops().Build();
+ // var first_job = jobs.First();
+
+ // if (first_job.Name == "Changed Name 2")
+ // {
+ // Debug.WriteLine("Changed and cached !!!");
+ // }
+ // else
+ // {
+ // Debug.WriteLine("Not working.");
+ // }
+ // }
+
+ // Debug.WriteLine($"Time to complete: {watch.Elapsed.TotalSeconds} seconds");
+ //}
+
+ //private void btnChange_Click(object sender, RoutedEventArgs e)
+ //{
+ // using (ObservablesContext db = ObservablesContext.CreateDefault(_dataSource))
+ // {
+ // var jobs = new JobsCollectionBuilder(db).SetAll().WithSegments().WithBrushStops().Build();
+ // var first_job = jobs.First();
+ // first_job.Name = "Changed Name 2";
+ // db.SaveChanges();
+ // }
+ //}
+
+ //private void btnListen_Click(object sender, RoutedEventArgs e)
+ //{
+ // String str = _dataSource.ToConnection().ConnectionString;
+
+ // var dep = new SqlTableDependency<DAL.Remote.DB.USER>(str, "USERS", "dbo");
+ // dep.TraceLevel = TraceLevel.Verbose;
+ // dep.TraceListener = new TextWriterTraceListener(Console.Out);
+
+ // dep.OnChanged += Changed;
+ // dep.Start();
+
+ // _dep = dep;
+ //}
+
+ //private void Changed(object sender, RecordChangedEventArgs<DAL.Remote.DB.USER> e)
+ //{
+ // var changedEntity = e.Entity;
+
+ // Console.WriteLine("DML operation: " + e.ChangeType);
+
+ // Console.WriteLine(changedEntity.ToJsonString());
+ //}
}
}
diff --git a/Software/Visual_Studio/Utilities/Tango.UITests/Tango.UITests.csproj b/Software/Visual_Studio/Utilities/Tango.UITests/Tango.UITests.csproj
index 83dd699af..9ac2e3105 100644
--- a/Software/Visual_Studio/Utilities/Tango.UITests/Tango.UITests.csproj
+++ b/Software/Visual_Studio/Utilities/Tango.UITests/Tango.UITests.csproj
@@ -49,13 +49,6 @@
<Reference Include="MahApps.Metro, Version=1.5.0.23, Culture=neutral, PublicKeyToken=f4fb5a3c4d1e5b4f, processorArchitecture=MSIL">
<HintPath>..\..\packages\MahApps.Metro.1.5.0\lib\net45\MahApps.Metro.dll</HintPath>
</Reference>
- <Reference Include="MaterialDesignColors">
- <HintPath>..\..\packages\MaterialDesignColors.1.1.2\lib\net45\MaterialDesignColors.dll</HintPath>
- </Reference>
- <Reference Include="MaterialDesignThemes.Wpf, Version=2.3.1.953, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\packages\MaterialDesignThemes.2.3.1.953\lib\net45\MaterialDesignThemes.Wpf.dll</HintPath>
- </Reference>
<Reference Include="PresentationFramework.Aero" />
<Reference Include="System" />
<Reference Include="System.ComponentModel.Annotations, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
@@ -143,10 +136,6 @@
<Project>{db79fb33-ce7a-49cf-aa89-f697e5cdb0f6}</Project>
<Name>Tango.FirmwareUpdateLib</Name>
</ProjectReference>
- <ProjectReference Include="..\..\MachineStudio\Tango.MachineStudio.Common\Tango.MachineStudio.Common.csproj">
- <Project>{cb0b0aa2-bb24-4bca-a720-45e397684e12}</Project>
- <Name>Tango.MachineStudio.Common</Name>
- </ProjectReference>
<ProjectReference Include="..\..\PPC\Tango.PPC.Common\Tango.PPC.Common.csproj">
<Project>{0be74eee-22cb-4dba-b896-793b9e1a3ac0}</Project>
<Name>Tango.PPC.Common</Name>
@@ -155,10 +144,6 @@
<Project>{F441FEEE-322A-4943-B566-110E12FD3B72}</Project>
<Name>Tango.BL</Name>
</ProjectReference>
- <ProjectReference Include="..\..\Tango.ColorPickers\Tango.ColorPickers.csproj">
- <Project>{f9df9435-a4f3-43c5-a6cd-aad6689b42ae}</Project>
- <Name>Tango.ColorPickers</Name>
- </ProjectReference>
<ProjectReference Include="..\..\Tango.Core\Tango.Core.csproj">
<Project>{A34EE0F0-649D-41C8-8489-B6F1CC6924EE}</Project>
<Name>Tango.Core</Name>