aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.UITests
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2020-02-16 14:48:33 +0200
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2020-02-16 14:48:33 +0200
commite2fbc8e6047fef09681b994efe2ca1043d25ac9d (patch)
treed51c5787ec50711361d557bb060c976a5b278dcb /Software/Visual_Studio/Utilities/Tango.UITests
parent1ae720e9052b2419200c113ad1fa42550382e6c7 (diff)
downloadTango-e2fbc8e6047fef09681b994efe2ca1043d25ac9d.tar.gz
Tango-e2fbc8e6047fef09681b994efe2ca1043d25ac9d.zip
Implement Job Runs View. Create 2 views in Statistics. Implements Part of JobRunsView.
Related Work Items: #2509
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.UITests')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml35
-rw-r--r--Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs111
2 files changed, 16 insertions, 130 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml b/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml
index 53fdc25d3..99c5f3259 100644
--- a/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml
+++ b/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml
@@ -3,44 +3,11 @@
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: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}}">
<Grid>
- <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">
-
- </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>
-
- <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>
- </Grid>
- </Border>
- </touch:LightTouchScrollViewer>
- </touch:TouchPanel>
+ <controls:MultiSelectComboBox Width="250" Height="60" x:Name="MSCombobox" BorderBrush="Gainsboro" BorderThickness="0.5"/>
</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 6c24121ba..7eb688342 100644
--- a/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/Utilities/Tango.UITests/MainWindow.xaml.cs
@@ -20,7 +20,6 @@ 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;
@@ -47,106 +46,26 @@ namespace Tango.UITests
/// </summary>
public partial class MainWindow : Window
{
- //private ITableDependency _dep;
-
- //private DataSource _dataSource;
-
public MainWindow()
{
- //_dataSource = new DataSource()
- //{
- // Address = "twine.database.windows.net",
- // Catalog = "Tango_DEV",
- // Type = DataSourceType.SQLServer,
- // UserName = "Roy",
- // Password = "Aa123456",
- // IntegratedSecurity = false,
- //};
-
- //InitializeComponent();
- //EntityFrameworkCache.Initialize(new MyMemoryCache() { Expiration = TimeSpan.FromMinutes(1) });
-
-
- //this.Closing += MainWindow_Closing;
-
- //CmdCommand command = new CmdCommand("wmic", "pagefile list /format:list");
- //var result = command.Run().Result;
+ InitializeComponent();
+ MSCombobox.Items = new ObservableCollection<string>
+ {
+ "item1",
+ "item2",
+ "item3"
- //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();
-
-
-
- //var matches = matches.OfType<Match>().Select(x => x.Groups.OfType<Group>().Last().Value.Replace("\n","").Replace("\r","")).ToList();
+ };
+ MSCombobox.SelectedItemsList = new ObservableCollection<string>
+ {
+ "item1",
+ "item2",
+ "item3",
+ "item2",
+ "item3"
+ };
}
-
- //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());
- //}
}
}