aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.config6
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.xaml24
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.xaml.cs17
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/JobHandler2.cs259
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml99
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml.cs31
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs160
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/AssemblyInfo.cs55
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Resources.Designer.cs71
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Resources.resx117
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Settings.Designer.cs30
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Settings.settings7
-rw-r--r--Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Tango.JobProgressTester.UI.csproj143
13 files changed, 0 insertions, 1019 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.config b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.config
deleted file mode 100644
index 731f6de6c..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<configuration>
- <startup>
- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
- </startup>
-</configuration> \ No newline at end of file
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.xaml b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.xaml
deleted file mode 100644
index 66f763000..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.xaml
+++ /dev/null
@@ -1,24 +0,0 @@
-<Application x:Class="Tango.JobProgressTester.UI.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:Tango.JobProgressTester.UI"
- StartupUri="MainWindow.xaml">
- <Application.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
-
- <!--Touch-->
- <ResourceDictionary Source="pack://application:,,,/Tango.Touch;component/Resources/Colors.xaml"/>
-
- <!--Common-->
- <ResourceDictionary Source="pack://application:,,,/Tango.PPC.Common;component/Resources/Merged.xaml" />
-
- <!--Local-->
- <!--<ResourceDictionary Source="Resources/Colors.xaml"></ResourceDictionary>
- <ResourceDictionary Source="Resources/Fonts.xaml"></ResourceDictionary>
- <ResourceDictionary Source="Resources/Styles.xaml"></ResourceDictionary>-->
-
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Application.Resources>
-</Application>
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.xaml.cs b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.xaml.cs
deleted file mode 100644
index b7efa1e9e..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/App.xaml.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Windows;
-
-namespace Tango.JobProgressTester.UI
-{
- /// <summary>
- /// Interaction logic for App.xaml
- /// </summary>
- public partial class App : Application
- {
- }
-}
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/JobHandler2.cs b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/JobHandler2.cs
deleted file mode 100644
index e646ee51e..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/JobHandler2.cs
+++ /dev/null
@@ -1,259 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.BL.Entities;
-using Tango.Integration.Operation;
-using Tango.Logging;
-using Tango.PMR.Printing;
-
-namespace Tango.JobProgressTester.UI
-{
- public class JobHandler2 : JobHandler
- {
- public JobHandler2(Action cancelAction, Job job, JobTicket jobTicket, ProcessParametersTable processParameters, JobHandlerModes mode)
- : base(cancelAction, job, jobTicket, processParameters, mode)
- {
-
- }
-
- protected override void InvalidateJobProgress(JobStatus s)
- {
- JobStatus = s;
-
- if (_last_progress != s.Progress)
- {
- if (s.Progress <= PROGRESS_REPORT_RANGE_METERS || s.Progress >= Status.TotalProgress - PROGRESS_REPORT_RANGE_METERS)
- {
- LogManager.Log($"Updating job progress {s.Progress}/{Status.TotalProgress}...");
- }
- else if (!loggedContinueMessage)
- {
- loggedContinueMessage = true;
- LogManager.Log($"Progress logging will continue {PROGRESS_REPORT_RANGE_METERS} meters before completion...");
- }
- }
-
- if (s.Progress < 0)
- {
- LogManager.Log($"Invalid job progress received '{s.Progress}'.", LogCategory.Error);
- return;
- }
-
- if (s.Progress > Status.TotalProgress)
- {
- LogManager.Log($"Invalid job progress received '{s.Progress}' while total progress is '{Status.TotalProgress}'.", LogCategory.Error);
- return;
- }
-
- if (s.Progress < _last_progress)
- {
- LogManager.Log($"Invalid job progress received '{s.Progress}' while last progress was '{_last_progress}'.");
- }
-
- _last_progress = s.Progress;
-
- List<Segment> unit_segments = new List<Segment>();
-
- Status.Progress = s.Progress;
- Status.RemainingTime = Status.TotalTime - Job.TranslateProgressToTime(Status.Progress, ProcessParameters);
- Status.RemainingProgress = Status.TotalProgress - Status.Progress;
-
- if (s.Progress < Status.SettingUpTotalProgress || Status.SettingUpProgress < Status.SettingUpTotalProgress)
- {
- Status.SettingUpProgress = Math.Min(s.Progress, this.Status.SettingUpTotalProgress);
- Status.IsSettingUp = true;
- }
- if (s.Progress >= Status.SettingUpTotalProgress)
- {
- if (Status.IsSettingUp && Status.Progress > 0)
- {
- Status.IsSettingUp = false;
- }
-
- Status.ProgressMinusSettingUp = s.Progress - this.Status.SettingUpTotalProgress;
- }
-
- int units = (int)Math.Max(Job.NumberOfUnits, 1);
-
- if (s.Progress < Job.LengthIncludingNumberOfUnits || _mode == JobHandlerModes.SettingUp)
- {
- Status.ProgressWithoutFinalization = s.Progress;
-
- unit_segments = _effectiveSegments.ToList();
- Status.CurrentUnitProgress = 0.0;
- double previousUnitsLengthWithoutThis = 0.0;
- for (int index = 0; index < units; ++index)
- {
- Status.CurrentUnit = index;
- double unitLength = !Job.EnableInterSegment || index >= units - 1 ? Job.Length : Job.Length + Job.InterSegmentLength;
- if (_mode == JobHandlerModes.Finalization)
- {
- if (s.Progress < unitLength + previousUnitsLengthWithoutThis)
- {
- Status.CurrentUnitProgress = s.Progress - previousUnitsLengthWithoutThis;
- break;
- }
- }
- else if (s.Progress <= previousUnitsLengthWithoutThis + unitLength + Status.SettingUpProgress)
- {
- if (!Status.IsSettingUp)
- {
- Status.CurrentUnitProgress = s.Progress - previousUnitsLengthWithoutThis - this.Status.SettingUpProgress;
- break;
- }
- break;
- }
- previousUnitsLengthWithoutThis += unitLength;
- }
- Status.RemainingUnits = this.Job.NumberOfUnits - this.Status.CurrentUnit;
-
- if (Job.EnableInterSegment && Job.NumberOfUnits > 1 && Status.RemainingUnits > 1)
- {
- unit_segments.Add(Job.CreateInterSegment(Job.InterSegmentLength));
- }
-
- if (unit_segments.Count != Status.CurrentUnitSegments.Count)
- {
- Status.CurrentUnitSegments = unit_segments;
- }
-
- Status.CurrentUnitTotalProgress = Status.RemainingUnits > 1 && Job.EnableInterSegment ? Job.Length + (Job.InterSegmentLength) : Job.Length;
-
- if (s.Message != _lastStatusMessage && s.Message != String.Empty)
- {
- Status.Message = s.Message;
- }
- else
- {
- Status.Message = null;
- }
-
- _lastStatusMessage = s.Message;
-
-
- RaiseStatusChanged();
-
- //Segments Completion
- if (Status.CurrentUnit > _last_unit)
- {
- foreach (var segment in Status.CurrentUnitSegments)
- {
- segment.Started = false;
- segment.Completed = false;
- }
-
- if (Job.NumberOfUnits > 1)
- {
- RaiseUnitCompleted(_last_unit);
- }
- }
-
- _last_unit = Status.CurrentUnit;
-
-
- for (int i = 0; i < Status.CurrentUnitSegments.Count; i++)
- {
- Segment segment = Status.CurrentUnitSegments[i];
- double previousSegmentsLengthWithThis = Status.CurrentUnitSegments.Take(i + 1).Sum(x => x.LengthWithFactor);
- TimeSpan segmentsDuration = Job.TranslateProgressToTime(previousSegmentsLengthWithThis, ProcessParameters);
- TimeSpan segmentRemainingTime = segmentsDuration - Job.TranslateProgressToTime(Status.CurrentUnitProgress, ProcessParameters);
-
- if (i == 0 && Status.CurrentUnitProgress > 0)
- {
- if (!segment.Started)
- {
- segment.Started = true;
- RaiseSegmentStarted(segment);
- }
- }
-
- if (Status.CurrentUnitProgress >= previousSegmentsLengthWithThis)
- {
- if (!segment.Completed)
- {
- segment.Completed = true;
- RaiseSegmentCompleted(segment);
- }
-
- if (i < Status.CurrentUnitSegments.Count - 1)
- {
- if (!Status.CurrentUnitSegments[i + 1].Started)
- {
- Status.CurrentUnitSegments[i + 1].Started = true;
- RaiseSegmentStarted(Status.CurrentUnitSegments[i + 1]);
- }
- }
- }
-
- if (segment.Started && !segment.Completed)
- {
- segment.RemainingTime = segmentRemainingTime;
- }
- }
-
- //Set Segment Completion for All Segments List
- for (int i = 0; i < Status.Segments.Count; i++)
- {
- Segment segment = Status.Segments[i];
- double previousSegmentsLengthWithThis = Status.Segments.Take(i + 1).Sum(x => x.LengthWithFactor);
- TimeSpan segmentsDuration = Job.TranslateProgressToTime(previousSegmentsLengthWithThis, ProcessParameters);
- TimeSpan segmentRemainingTime = segmentsDuration - Job.TranslateProgressToTime(Status.Progress, ProcessParameters);
-
- segment.Progress = Math.Min(Math.Max((previousSegmentsLengthWithThis - segment.Length - Status.Progress) * -1, 0), segment.Length);
-
- if (i == 0 && Status.Progress > 0)
- {
- if (!segment.Started)
- {
- segment.Started = true;
- Status.CurrentSegment = segment;
- }
- }
-
- if (Status.Progress >= previousSegmentsLengthWithThis)
- {
- if (!segment.Completed)
- {
- segment.Completed = true;
- }
-
- if (i < Status.Segments.Count - 1)
- {
- if (!Status.Segments[i + 1].Started)
- {
- Status.Segments[i + 1].Started = true;
- Status.CurrentSegment = Status.Segments[i + 1];
- }
- }
- }
-
- if (segment.Started && !segment.Completed)
- {
- segment.RemainingTime = segmentRemainingTime;
- }
- }
- }
- else
- {
- //Finalizing
- if (!_finalizing)
- {
- _finalizing = true;
- Status.IsFinalizing = true;
- var last_Segment = _effectiveSegments.Last().Clone();
- last_Segment.Length = ProcessParameters.DryerBufferLengthMeters;
- Status.CurrentUnitSegments = new List<Segment> { last_Segment };
- Status.CurrentUnitTotalProgress = last_Segment.Length;
- Status.CurrentUnitProgress = 0;
- Status.ProgressWithoutFinalization = Status.TotalProgressWithoutFinalization;
- RaiseFinalizing();
- }
-
- Status.CurrentUnitProgress = s.Progress - Job.LengthIncludingNumberOfUnits;
- Status.FinalizingProgress = s.Progress - Status.TotalProgressWithoutFinalization;
- }
- }
- }
-}
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml
deleted file mode 100644
index d31e45d72..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml
+++ /dev/null
@@ -1,99 +0,0 @@
-<Window x:Class="Tango.JobProgressTester.UI.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- 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:jobViews="clr-namespace:Tango.PPC.Jobs.Views;assembly=Tango.PPC.Jobs"
- xmlns:local="clr-namespace:Tango.JobProgressTester.UI"
- mc:Ignorable="d"
- Title="Job Progress Tester" Height="950" Width="600" d:DataContext="{d:DesignInstance Type=local:MainWindowVM,IsDesignTimeCreatable=False}">
- <Grid IsEnabled="{Binding IsFree}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="90"/>
- <RowDefinition Height="600*"/>
- <RowDefinition Height="150*"/>
- <RowDefinition Height="110"/>
- </Grid.RowDefinitions>
-
- <ComboBox FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Center" Width="350" ItemsSource="{Binding Jobs}" SelectedItem="{Binding SelectedJob}" DisplayMemberPath="Name" Margin="96,28"></ComboBox>
-
- <Grid Grid.Row="1">
- <Viewbox Stretch="Uniform">
- <jobViews:JobProgressView Width="800" Height="1000" DataContext="{Binding JobProgressViewVM}" />
- </Viewbox>
- </Grid>
-
- <Grid Grid.Row="2">
- <StackPanel Margin="10">
- <TextBlock>Current Unit Segments.</TextBlock>
- <ItemsControl ItemsSource="{Binding JobProgressViewVM.RunningJobStatus.CurrentUnitSegments}" Margin="0 5">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <DockPanel>
- <TextBlock>
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Visibility" Value="Visible"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsInterSegment}" Value="True">
- <Setter Property="Visibility" Value="Collapsed"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- <Run>Segment</Run>
- <Run Text="{Binding SegmentIndex}"></Run>
- </TextBlock>
- <TextBlock Text="Inter Segment">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Visibility" Value="Collapsed"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsInterSegment}" Value="True">
- <Setter Property="Visibility" Value="Visible"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Margin="10 0 0 0">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Setter Property="Text" Value="Pending"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding Started}" Value="True">
- <Setter Property="Text" Value="Started"></Setter>
- </DataTrigger>
- <DataTrigger Binding="{Binding Completed}" Value="True">
- <Setter Property="Text" Value="Completed"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- <TextBlock Margin="10 0 0 0" Text="{Binding RemainingTime,StringFormat='hh\\:mm\\:ss'}"></TextBlock>
- </DockPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </StackPanel>
- </Grid>
-
- <Grid Grid.Row="3">
- <StackPanel Margin="20">
- <TextBlock HorizontalAlignment="Center">
- <Run Text="{Binding Progress,Mode=OneWay,StringFormat='0.0'}"></Run>
- <Run>/</Run>
- <Run Text="{Binding JobHandler.Status.TotalProgress,Mode=OneWay,StringFormat='0.0'}"></Run>
- </TextBlock>
- <DockPanel Margin="0 5 0 0" HorizontalAlignment="Center" Width="200" >
- <Button DockPanel.Dock="Right" Width="40" Height="20">SET</Button>
- <TextBox Text="{Binding Progress}"></TextBox>
- </DockPanel>
- <Slider VerticalAlignment="Center" Margin="0 10 0 0" Maximum="{Binding JobHandler.Status.TotalProgress}" Value="{Binding Progress,Mode=TwoWay}"></Slider>
- </StackPanel>
- </Grid>
- </Grid>
- </Grid>
-</Window>
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml.cs b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml.cs
deleted file mode 100644
index 2bfbf4101..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindow.xaml.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using Tango.Core.DI;
-
-namespace Tango.JobProgressTester.UI
-{
- /// <summary>
- /// Interaction logic for MainWindow.xaml
- /// </summary>
- public partial class MainWindow : Window
- {
- public MainWindow()
- {
- TangoIOC.Default.ThrowOnRequestedTypeNotFound = false;
- InitializeComponent();
- DataContext = new MainWindowVM();
- }
- }
-}
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs
deleted file mode 100644
index d21500685..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/MainWindowVM.cs
+++ /dev/null
@@ -1,160 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Data.Entity;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-using Tango.BL;
-using Tango.BL.Builders;
-using Tango.BL.Entities;
-using Tango.Core;
-using Tango.Integration.Operation;
-using Tango.Logging;
-using Tango.PMR.Printing;
-using Tango.PPC.Jobs.ViewModels;
-using Tango.SharedUI;
-
-namespace Tango.JobProgressTester.UI
-{
- public class MainWindowVM : ViewModel
- {
- private DataSource _dataSource;
-
- private List<Job> _jobs;
- public List<Job> Jobs
- {
- get { return _jobs; }
- set { _jobs = value; RaisePropertyChangedAuto(); }
- }
-
- private Job _selectedJob;
- public Job SelectedJob
- {
- get { return _selectedJob; }
- set { _selectedJob = value; RaisePropertyChangedAuto(); OnSelectedJobChanged(); }
- }
-
- private Job _activeJob;
- public Job ActiveJob
- {
- get { return _activeJob; }
- set { _activeJob = value; RaisePropertyChangedAuto(); }
- }
-
- private JobProgressViewVM _jobProgressViewVM;
- public JobProgressViewVM JobProgressViewVM
- {
- get { return _jobProgressViewVM; }
- set { _jobProgressViewVM = value; RaisePropertyChangedAuto(); }
- }
-
- private JobHandler2 _jobHandler;
- public JobHandler2 JobHandler
- {
- get { return _jobHandler; }
- set { _jobHandler = value; RaisePropertyChangedAuto(); }
- }
-
- private double _progress;
- public double Progress
- {
- get { return _progress; }
- set { _progress = value; RaisePropertyChangedAuto(); OnProgressChanged(); }
- }
-
- public MainWindowVM()
- {
- Application.Current.MainWindow.ContentRendered += (_, __) => Init();
- }
-
- private async void Init()
- {
- LogManager.RegisterLogger(new VSOutputLogger());
-
- _dataSource = new DataSource()
- {
- Address = "localhost\\SQLPPC",
- Catalog = "Tango",
- IntegratedSecurity = true
- };
-
- try
- {
- IsFree = false;
- ObservablesContext.OverrideSettingsDataSource(_dataSource);
-
- using (ObservablesContext db = ObservablesContext.CreateDefault())
- {
- Jobs = await db.Jobs.ToListAsync();
- }
- }
- catch (Exception ex)
- {
- ShowError(ex.FlattenMessage());
- }
- finally
- {
- IsFree = true;
- }
- }
-
- private async void OnSelectedJobChanged()
- {
- if (SelectedJob != null)
- {
- try
- {
- IsFree = false;
-
- using (ObservablesContext db = ObservablesContext.CreateDefault())
- {
- ActiveJob = await new JobBuilder(db)
- .Set(SelectedJob)
- .WithConfiguration()
- .WithBrushStops()
- .WithRML()
- .WithSegments()
- .WithUser()
- .BuildAsync();
-
- JobHandler = new JobHandler2(() => { }, ActiveJob, null, ActiveJob.Rml.GetActiveProcessGroup().ProcessParametersTables.First(), JobHandlerModes.SettingUp);
-
- JobProgressViewVM = new JobProgressViewVM()
- {
- Job = ActiveJob,
- RunningJobStatus = JobHandler.Status,
- };
-
- Progress = 0.1;
- }
- }
- catch (Exception ex)
- {
- ShowError(ex.FlattenMessage());
- }
- finally
- {
- IsFree = true;
- }
- }
- }
-
- private void OnProgressChanged()
- {
- if(JobHandler != null)
- {
- JobHandler.RaiseStatusReceived(new JobStatus()
- {
- Progress = Progress,
- });
- }
-
- }
-
- private void ShowError(String message)
- {
- MessageBox.Show(Application.Current.MainWindow, message, "Job Progress Tester", MessageBoxButton.OK, MessageBoxImage.Error);
- }
- }
-}
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/AssemblyInfo.cs b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/AssemblyInfo.cs
deleted file mode 100644
index a8f112331..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Windows;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Tango.JobProgressTester.UI")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Tango.JobProgressTester.UI")]
-[assembly: AssemblyCopyright("Copyright © 2020")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-//In order to begin building localizable applications, set
-//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
-//inside a <PropertyGroup>. For example, if you are using US english
-//in your source files, set the <UICulture> to en-US. Then uncomment
-//the NeutralResourceLanguage attribute below. Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
- //(used if a resource is not found in the page,
- // or application resource dictionaries)
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
- //(used if a resource is not found in the page,
- // app, or any theme specific resource dictionaries)
-)]
-
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Resources.Designer.cs b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Resources.Designer.cs
deleted file mode 100644
index d11849c50..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace Tango.JobProgressTester.UI.Properties
-{
-
-
- /// <summary>
- /// A strongly-typed resource class, for looking up localized strings, etc.
- /// </summary>
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources
- {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources()
- {
- }
-
- /// <summary>
- /// Returns the cached ResourceManager instance used by this class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager
- {
- get
- {
- if ((resourceMan == null))
- {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Tango.JobProgressTester.UI.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- /// <summary>
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture
- {
- get
- {
- return resourceCulture;
- }
- set
- {
- resourceCulture = value;
- }
- }
- }
-}
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Resources.resx b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Resources.resx
deleted file mode 100644
index af7dbebba..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
-</root> \ No newline at end of file
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Settings.Designer.cs b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Settings.Designer.cs
deleted file mode 100644
index 832cab525..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace Tango.JobProgressTester.UI.Properties
-{
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
- {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default
- {
- get
- {
- return defaultInstance;
- }
- }
- }
-}
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Settings.settings b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Settings.settings
deleted file mode 100644
index 033d7a5e9..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Properties/Settings.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
- <Profiles>
- <Profile Name="(Default)" />
- </Profiles>
- <Settings />
-</SettingsFile> \ No newline at end of file
diff --git a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Tango.JobProgressTester.UI.csproj b/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Tango.JobProgressTester.UI.csproj
deleted file mode 100644
index eb5297422..000000000
--- a/Software/Visual_Studio/Utilities/Tango.JobProgressTester.UI/Tango.JobProgressTester.UI.csproj
+++ /dev/null
@@ -1,143 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{A248FF61-94E5-428C-B30C-25CB433C5F53}</ProjectGuid>
- <OutputType>WinExe</OutputType>
- <RootNamespace>Tango.JobProgressTester.UI</RootNamespace>
- <AssemblyName>Tango.JobProgressTester.UI</AssemblyName>
- <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <WarningLevel>4</WarningLevel>
- <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
- <Deterministic>true</Deterministic>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <PlatformTarget>AnyCPU</PlatformTarget>
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <PlatformTarget>AnyCPU</PlatformTarget>
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="System.Net.Http" />
- <Reference Include="System.Xaml">
- <RequiredTargetFramework>4.0</RequiredTargetFramework>
- </Reference>
- <Reference Include="WindowsBase" />
- <Reference Include="PresentationCore" />
- <Reference Include="PresentationFramework" />
- </ItemGroup>
- <ItemGroup>
- <ApplicationDefinition Include="App.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </ApplicationDefinition>
- <Page Include="MainWindow.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Compile Include="App.xaml.cs">
- <DependentUpon>App.xaml</DependentUpon>
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="JobHandler2.cs" />
- <Compile Include="MainWindow.xaml.cs">
- <DependentUpon>MainWindow.xaml</DependentUpon>
- <SubType>Code</SubType>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="MainWindowVM.cs" />
- <Compile Include="Properties\AssemblyInfo.cs">
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="Properties\Resources.Designer.cs">
- <AutoGen>True</AutoGen>
- <DesignTime>True</DesignTime>
- <DependentUpon>Resources.resx</DependentUpon>
- </Compile>
- <Compile Include="Properties\Settings.Designer.cs">
- <AutoGen>True</AutoGen>
- <DependentUpon>Settings.settings</DependentUpon>
- <DesignTimeSharedInput>True</DesignTimeSharedInput>
- </Compile>
- <EmbeddedResource Include="Properties\Resources.resx">
- <Generator>ResXFileCodeGenerator</Generator>
- <LastGenOutput>Resources.Designer.cs</LastGenOutput>
- </EmbeddedResource>
- <None Include="Properties\Settings.settings">
- <Generator>SettingsSingleFileGenerator</Generator>
- <LastGenOutput>Settings.Designer.cs</LastGenOutput>
- </None>
- </ItemGroup>
- <ItemGroup>
- <None Include="App.config" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\PPC\Modules\Tango.PPC.Jobs\Tango.PPC.Jobs.csproj">
- <Project>{096f16c8-6d06-4b5f-9496-b9d2df2d94a3}</Project>
- <Name>Tango.PPC.Jobs</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\PPC\Tango.PPC.Common\Tango.PPC.Common.csproj">
- <Project>{0be74eee-22cb-4dba-b896-793b9e1a3ac0}</Project>
- <Name>Tango.PPC.Common</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.BL\Tango.BL.csproj">
- <Project>{f441feee-322a-4943-b566-110e12fd3b72}</Project>
- <Name>Tango.BL</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.Core\Tango.Core.csproj">
- <Project>{a34ee0f0-649d-41c8-8489-b6f1cc6924ee}</Project>
- <Name>Tango.Core</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.Integration\Tango.Integration.csproj">
- <Project>{4206ac58-3b57-4699-8835-90bf6db01a61}</Project>
- <Name>Tango.Integration</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.Logging\Tango.Logging.csproj">
- <Project>{BC932DBD-7CDB-488C-99E4-F02CF441F55E}</Project>
- <Name>Tango.Logging</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.PMR\Tango.PMR.csproj">
- <Project>{e4927038-348d-4295-aaf4-861c58cb3943}</Project>
- <Name>Tango.PMR</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.SharedUI\Tango.SharedUI.csproj">
- <Project>{8491d07b-c1f6-4b62-a412-41b9fd2d6538}</Project>
- <Name>Tango.SharedUI</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.Touch\Tango.Touch.csproj">
- <Project>{fd86424c-6e84-491b-8df9-3d0f5c236a2a}</Project>
- <Name>Tango.Touch</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <PackageReference Include="EntityFramework">
- <Version>6.2.0</Version>
- </PackageReference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
-</Project> \ No newline at end of file