aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-05-27 19:33:15 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-05-27 19:33:15 +0300
commite571f20e27c4fca6bb6efe03d6427a1f332f9830 (patch)
treeb16041b76ea3b4e8368039c9396f9bbf9624dcc2 /Software/Visual_Studio/PanelPC/Tango.PanelPC.UI
parent157e0685abb2e7b22b6584cdc7d6f5838ed0a808 (diff)
downloadTango-e571f20e27c4fca6bb6efe03d6427a1f332f9830.tar.gz
Tango-e571f20e27c4fca6bb6efe03d6427a1f332f9830.zip
Working on panel pc.
Diffstat (limited to 'Software/Visual_Studio/PanelPC/Tango.PanelPC.UI')
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/App.config72
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/App.xaml221
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/App.xaml.cs17
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Authentication/DefaultAuthenticationProvider.cs32
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Authentication/IAuthenticationProvider.cs38
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Diagnostics/DefaultDiagnosticsFrameProvider.cs97
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Diagnostics/IDiagnosticsFrameProvider.cs32
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/EventLogging/DefaultEventLogger.cs332
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/EventLogging/IEventLogger.cs64
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Images/account.pngbin3373 -> 0 bytes
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Images/liquid.pngbin1043 -> 0 bytes
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/MainWindow.xaml17
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/MainWindow.xaml.cs28
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/DefaultNavigationManager.cs16
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/INavigationManager.cs20
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/NavigationView.cs20
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/DefaultNotificationProvider.cs115
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/DialogViewVM.cs74
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/INotificationProvider.cs140
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/TaskItem.cs62
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/DefaultPanelPCApplicationManager.cs48
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/IPanelPCApplicationManager.cs42
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Properties/AssemblyInfo.cs55
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Properties/Resources.Designer.cs71
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Properties/Resources.resx117
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Properties/Settings.Designer.cs30
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Properties/Settings.settings7
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Resources/Colors.xaml14
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Resources/MaterialOverride.xaml185
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Resources/Styles.xaml19
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Tango.PanelPC.UI.csproj244
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModelLocator.cs90
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/JobsViewVM.cs35
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LayoutViewVM.cs14
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LoadingView.cs14
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/MainViewVM.cs20
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/JobsView.xaml50
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/JobsView.xaml.cs28
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LayoutView.xaml119
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LayoutView.xaml.cs28
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LoadingView.xaml14
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LoadingView.xaml.cs28
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/MainView.xaml17
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/MainView.xaml.cs28
-rw-r--r--Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/packages.config11
45 files changed, 0 insertions, 2725 deletions
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/App.config b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/App.config
deleted file mode 100644
index 895afa970..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/App.config
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<configuration>
- <configSections>
- <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
- <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
- </configSections>
- <startup>
- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
- </startup>
- <runtime>
- <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
- <dependentAssembly>
- <assemblyIdentity name="System.Reactive.Core" publicKeyToken="94bc3704cddfc263" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-3.0.3000.0" newVersion="3.0.3000.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Xml.ReaderWriter" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-1.2.2.0" newVersion="1.2.2.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Reflection.Metadata" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-1.4.2.0" newVersion="1.4.2.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.IO.FileSystem" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.IO.FileSystem.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Security.Cryptography.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Xml.XPath.XDocument" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Console" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
- </dependentAssembly>
- <dependentAssembly>
- <assemblyIdentity name="System.Diagnostics.StackTrace" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
- </dependentAssembly>
- </assemblyBinding>
- </runtime>
- <entityFramework>
- <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
- <providers>
- <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
- </providers>
- </entityFramework>
-</configuration> \ No newline at end of file
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/App.xaml b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/App.xaml
deleted file mode 100644
index 6b54c0f0d..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/App.xaml
+++ /dev/null
@@ -1,221 +0,0 @@
-<Application x:Class="Tango.PanelPC.UI.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:dragAndDrop="clr-namespace:Tango.DragAndDrop;assembly=Tango.DragAndDrop"
- xmlns:local="clr-namespace:Tango.PanelPC.UI"
- StartupUri="MainWindow.xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" d1p1:Ignorable="d" xmlns:d1p1="http://schemas.openxmlformats.org/markup-compatibility/2006">
- <Application.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! -->
- <!-- Accent and AppTheme setting -->
- <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml">
- </ResourceDictionary>
- <!--Material Design-->
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/materialdesigncolor.blue.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/materialdesigncolor.yellow.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.CheckBox.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ListBox.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.PopupBox.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.RadioButton.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToggleButton.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/materialdesigntheme.TextBlock.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/materialdesigntheme.Label.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/materialdesigntheme.Slider.xaml">
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/materialdesigntheme.ProgressBar.xaml"/>
-
- <!--MahApps Brushes-->
- <ResourceDictionary>
- <SolidColorBrush x:Key="HighlightBrush" Color="{DynamicResource Primary700}" />
- <SolidColorBrush x:Key="AccentColorBrush" Color="{DynamicResource Primary500}" />
- <SolidColorBrush x:Key="AccentColorBrush2" Color="{DynamicResource Primary400}" />
- <SolidColorBrush x:Key="AccentColorBrush3" Color="{DynamicResource Primary300}" />
- <SolidColorBrush x:Key="AccentColorBrush4" Color="{DynamicResource Primary200}" />
- <SolidColorBrush x:Key="WindowTitleColorBrush" Color="{DynamicResource Primary700}" />
- <SolidColorBrush x:Key="AccentSelectedColorBrush" Color="{DynamicResource Primary500Foreground}" />
- <LinearGradientBrush x:Key="ProgressBrush" EndPoint="0.001,0.5" StartPoint="1.002,0.5">
- <GradientStop Color="{DynamicResource Primary700}" Offset="0" />
- <GradientStop Color="{DynamicResource Primary300}" Offset="1" />
- </LinearGradientBrush>
- <SolidColorBrush x:Key="CheckmarkFill" Color="{DynamicResource Primary500}" />
- <SolidColorBrush x:Key="RightArrowFill" Color="{DynamicResource Primary500}" />
- <SolidColorBrush x:Key="IdealForegroundColorBrush" Color="{DynamicResource Primary500Foreground}" />
- <SolidColorBrush x:Key="IdealForegroundDisabledBrush" Color="{DynamicResource Primary500}" Opacity="0.4" />
- </ResourceDictionary>
-
- <ResourceDictionary Source="pack://application:,,,/Tango.Touch;component/Resources/Colors.xaml"/>
-
- <!--Styles-->
- <ResourceDictionary>
- <Style TargetType="{x:Type ListBoxItem}" x:Key="basicListBoxItem">
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="BorderThickness" Value="0"></Setter>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
- <Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
- <Setter Property="Padding" Value="0"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" Background="{TemplateBinding Background}" Padding="0" SnapsToDevicePixels="true">
- <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="true">
- <Setter Property="Background" TargetName="Bd" Value="Transparent"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsSelected" Value="true"/>
- <Condition Property="Selector.IsSelectionActive" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="Background" TargetName="Bd" Value="Transparent"/>
- </MultiTrigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="emptyToggleButton" TargetType="ToggleButton">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ToggleButton">
- <Grid Background="{TemplateBinding Background}">
- <ContentPresenter />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="emptyButton" TargetType="Button">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Grid Background="{TemplateBinding Background}">
- <ContentPresenter />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!--Drag & Drop-->
- <Style x:Key="draggableGrid" TargetType="Grid">
- <Setter Property="RenderTransform">
- <Setter.Value>
- <ScaleTransform ScaleX="1" ScaleY="1"></ScaleTransform>
- </Setter.Value>
- </Setter>
- <Setter Property="RenderTransformOrigin" Value="0.5,0.5"></Setter>
- <Setter Property="Background" Value="Transparent"></Setter>
- <Setter Property="dragAndDrop:DragAndDropService.Draggable" Value="True"></Setter>
- <Setter Property="dragAndDrop:DragAndDropService.DraggingSurface" Value="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=DraggingSurface}"></Setter>
- </Style>
-
- <Style x:Key="droppableGrid" TargetType="Grid">
- <Setter Property="RenderTransform">
- <Setter.Value>
- <ScaleTransform ScaleX="1" ScaleY="1"></ScaleTransform>
- </Setter.Value>
- </Setter>
- <Setter Property="RenderTransformOrigin" Value="0.5,0.5"></Setter>
- <Setter Property="Background" Value="Transparent"></Setter>
- <Setter Property="dragAndDrop:DragAndDropService.Droppable" Value="True"></Setter>
- <Setter Property="dragAndDrop:DragAndDropService.DraggingSurface" Value="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=DraggingSurface}"></Setter>
- <Style.Triggers>
- <Trigger Property="dragAndDrop:DragAndDropService.IsDraggableOver" Value="True">
- <Setter Property="Opacity" Value="0.5"></Setter>
- <Trigger.EnterActions>
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation To="0.95" Duration="00:00:0.2" Storyboard.TargetProperty="RenderTransform.ScaleX"></DoubleAnimation>
- <DoubleAnimation To="0.95" Duration="00:00:0.2" Storyboard.TargetProperty="RenderTransform.ScaleY"></DoubleAnimation>
- </Storyboard>
- </BeginStoryboard>
- </Trigger.EnterActions>
- <Trigger.ExitActions>
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation To="1" Duration="00:00:0.2" Storyboard.TargetProperty="RenderTransform.ScaleX"></DoubleAnimation>
- <DoubleAnimation To="1" Duration="00:00:0.2" Storyboard.TargetProperty="RenderTransform.ScaleY"></DoubleAnimation>
- </Storyboard>
- </BeginStoryboard>
- </Trigger.ExitActions>
- </Trigger>
- </Style.Triggers>
- </Style>
-
- <Style x:Key="draggableDroppableGrid" TargetType="Grid">
- <Setter Property="RenderTransform">
- <Setter.Value>
- <ScaleTransform ScaleX="1" ScaleY="1"></ScaleTransform>
- </Setter.Value>
- </Setter>
- <Setter Property="RenderTransformOrigin" Value="0.5,0.5"></Setter>
- <Setter Property="Background" Value="Transparent"></Setter>
- <Setter Property="dragAndDrop:DragAndDropService.Draggable" Value="True"></Setter>
- <Setter Property="dragAndDrop:DragAndDropService.Droppable" Value="True"></Setter>
- <Setter Property="dragAndDrop:DragAndDropService.DraggingSurface" Value="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=DraggingSurface}"></Setter>
- <Style.Triggers>
- <Trigger Property="dragAndDrop:DragAndDropService.IsDraggableOver" Value="True">
- <Setter Property="Opacity" Value="0.5"></Setter>
- <Trigger.EnterActions>
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation To="0.95" Duration="00:00:0.2" Storyboard.TargetProperty="RenderTransform.ScaleX"></DoubleAnimation>
- <DoubleAnimation To="0.95" Duration="00:00:0.2" Storyboard.TargetProperty="RenderTransform.ScaleY"></DoubleAnimation>
- </Storyboard>
- </BeginStoryboard>
- </Trigger.EnterActions>
- <Trigger.ExitActions>
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation To="1" Duration="00:00:0.2" Storyboard.TargetProperty="RenderTransform.ScaleX"></DoubleAnimation>
- <DoubleAnimation To="1" Duration="00:00:0.2" Storyboard.TargetProperty="RenderTransform.ScaleY"></DoubleAnimation>
- </Storyboard>
- </BeginStoryboard>
- </Trigger.ExitActions>
- </Trigger>
- </Style.Triggers>
- </Style>
- <!--Drag & Drop-->
-
- <!--Extensions-->
-
- </ResourceDictionary>
-
- <ResourceDictionary Source="Resources/Colors.xaml"></ResourceDictionary>
- <ResourceDictionary Source="Resources/MaterialOverride.xaml"></ResourceDictionary>
- <ResourceDictionary Source="Resources/Styles.xaml"></ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Application.Resources>
-</Application>
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/App.xaml.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/App.xaml.cs
deleted file mode 100644
index 69f8d217a..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.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.PanelPC.UI
-{
- /// <summary>
- /// Interaction logic for App.xaml
- /// </summary>
- public partial class App : Application
- {
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Authentication/DefaultAuthenticationProvider.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Authentication/DefaultAuthenticationProvider.cs
deleted file mode 100644
index 6129e9a87..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Authentication/DefaultAuthenticationProvider.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.BL.Entities;
-
-namespace Tango.PanelPC.UI.Authentication
-{
- public class DefaultAuthenticationProvider : IAuthenticationProvider
- {
- public User CurrentUser
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public event EventHandler<User> CurrentUserChanged;
-
- public User Login(string email, string password)
- {
- throw new NotImplementedException();
- }
-
- public void Logout()
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Authentication/IAuthenticationProvider.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Authentication/IAuthenticationProvider.cs
deleted file mode 100644
index 02542926f..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Authentication/IAuthenticationProvider.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.BL.Entities;
-
-namespace Tango.PanelPC.UI.Authentication
-{
- /// <summary>
- /// Represents the Machine Studio user authentication provider responsible for the current logged-in user.
- /// </summary>
- public interface IAuthenticationProvider
- {
- /// <summary>
- /// Occurs when the current logged-in user has changed.
- /// </summary>
- event EventHandler<User> CurrentUserChanged;
-
- /// <summary>
- /// Gets the current logged-in user.
- /// </summary>
- User CurrentUser { get; }
-
- /// <summary>
- /// Performs a user login by the specified email and password.
- /// </summary>
- /// <param name="email">The email.</param>
- /// <param name="password">The password.</param>
- /// <returns></returns>
- User Login(String email, String password);
-
- /// <summary>
- /// Logs-out the current logged-in user.
- /// </summary>
- void Logout();
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Diagnostics/DefaultDiagnosticsFrameProvider.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Diagnostics/DefaultDiagnosticsFrameProvider.cs
deleted file mode 100644
index 0dfeaf631..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Diagnostics/DefaultDiagnosticsFrameProvider.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.Core;
-using Tango.Integration.Operation;
-using Tango.Integration.Services;
-using Tango.PanelPC.UI.PanelPCApplication;
-using Tango.PMR.Diagnostics;
-
-namespace Tango.PanelPC.UI.Diagnostics
-{
- /// <summary>
- /// Represents the default diagnostics frame provider.
- /// </summary>
- /// <seealso cref="Tango.MachineStudio.Common.Diagnostics.IDiagnosticsFrameProvider" />
- public class DefaultDiagnosticsFrameProvider : ExtendedObject, IDiagnosticsFrameProvider
- {
- private IPanelPCApplicationManager _application;
-
- private bool _disable;
- /// <summary>
- /// Disables the frame delivery from the current connected machine and enables the manual push frame method.
- /// </summary>
- public bool Disable
- {
- get { return _disable; }
- set
- {
- _disable = value;
- }
- }
-
- /// <summary>
- /// Occurs when a new data frame is available.
- /// </summary>
- public event EventHandler<StartDiagnosticsResponse> FrameReceived;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="DefaultDiagnosticsFrameProvider"/> class.
- /// </summary>
- /// <param name="applicationManager">The application manager.</param>
- public DefaultDiagnosticsFrameProvider(IPanelPCApplicationManager applicationManager)
- {
- _application = applicationManager;
- applicationManager.ConnectedMachineChanged += ApplicationManager_ConnectedMachineChanged;
- }
-
- /// <summary>
- /// Applications the manager connected machine changed.
- /// </summary>
- /// <param name="sender">The sender.</param>
- /// <param name="machine">The machine.</param>
- private void ApplicationManager_ConnectedMachineChanged(object sender, IMachineOperator machine)
- {
- if (machine != null)
- {
- machine.DiagnosticsDataAvailable += DefaultDiagnosticsFrameProvider_DiagnosticsDataAvailable;
- }
- }
-
- /// <summary>
- /// Defaults the diagnostics frame provider diagnostics data available.
- /// </summary>
- /// <param name="sender">The sender.</param>
- /// <param name="frame">The frame.</param>
- private void DefaultDiagnosticsFrameProvider_DiagnosticsDataAvailable(object sender, StartDiagnosticsResponse frame)
- {
- if (!Disable)
- {
- OnFrameReceived(frame);
- }
- }
-
- /// <summary>
- /// Push frames manual. (Only when Disable = true)
- /// </summary>
- /// <param name="frame">The frame.</param>
- public void PushFrame(StartDiagnosticsResponse frame)
- {
- if (Disable)
- {
- OnFrameReceived(frame);
- }
- }
-
- /// <summary>
- /// Raises the <see cref="FrameReceived"/> event.
- /// </summary>
- /// <param name="frame">The frame.</param>
- protected virtual void OnFrameReceived(StartDiagnosticsResponse frame)
- {
- FrameReceived?.Invoke(this, frame);
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Diagnostics/IDiagnosticsFrameProvider.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Diagnostics/IDiagnosticsFrameProvider.cs
deleted file mode 100644
index 7e9ddab23..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Diagnostics/IDiagnosticsFrameProvider.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.Integration.Operation;
-using Tango.PMR.Diagnostics;
-
-namespace Tango.PanelPC.UI.Diagnostics
-{
- /// <summary>
- /// Represents a tango machine diagnostics frame provider.
- /// </summary>
- public interface IDiagnosticsFrameProvider
- {
- /// <summary>
- /// Occurs when a new data frame is available.
- /// </summary>
- event EventHandler<StartDiagnosticsResponse> FrameReceived;
-
- /// <summary>
- /// Disables the frame delivery from the current connected machine and enables the manual push frame method.
- /// </summary>
- bool Disable { get; set; }
-
- /// <summary>
- /// Push frames manual. (Only when Disable = true)
- /// </summary>
- /// <param name="frame">The frame.</param>
- void PushFrame(StartDiagnosticsResponse frame);
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/EventLogging/DefaultEventLogger.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/EventLogging/DefaultEventLogger.cs
deleted file mode 100644
index edc0e2afd..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/EventLogging/DefaultEventLogger.cs
+++ /dev/null
@@ -1,332 +0,0 @@
-using Google.Protobuf;
-using System;
-using System.Collections.Concurrent;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading;
-using System.Threading.Tasks;
-using Tango.BL;
-using Tango.BL.Entities;
-using Tango.BL.Enumerations;
-using Tango.Core;
-using Tango.Integration.Services;
-using Tango.Logging;
-using Tango.PMR.Diagnostics;
-using Tango.Integration.Operation;
-using Tango.PanelPC.UI.PanelPCApplication;
-using Tango.PanelPC.UI.Authentication;
-
-namespace Tango.PanelPC.UI.EventLogging
-{
- /// <summary>
- /// Represents the default database events logger.
- /// </summary>
- /// <seealso cref="IEventLogger" />
- public class DefaultEventLogger : ExtendedObject, IEventLogger
- {
- private ObservablesContext _db;
- private Thread _logThread;
- private ConcurrentQueue<MachinesEvent> _events;
- private IPanelPCApplicationManager _application;
- private IAuthenticationProvider _authentication;
- private Dictionary<EventTypes, BL.Entities.EventType> _eventTypesGuids;
- private String _hostName;
- private bool _isInitialized;
- private List<MachinesEvent> _pendingEvents;
-
- #region Events
-
- /// <summary>
- /// Occurs when a new machine event has been logged.
- /// </summary>
- public event EventHandler<MachinesEvent> NewLog;
-
- #endregion
-
- #region Constructors
-
- /// <summary>
- /// Initializes a new instance of the <see cref="DefaultEventLogger"/> class.
- /// </summary>
- /// <param name="applicationManager">The application manager.</param>
- /// <param name="authenticationProvider">The authentication provider.</param>
- public DefaultEventLogger(IPanelPCApplicationManager applicationManager, IAuthenticationProvider authenticationProvider)
- {
- _hostName = Environment.MachineName;
-
- _events = new ConcurrentQueue<MachinesEvent>();
- _pendingEvents = new List<MachinesEvent>();
-
- _eventTypesGuids = new Dictionary<EventTypes, BL.Entities.EventType>();
-
- _application = applicationManager;
- _authentication = authenticationProvider;
- _logThread = new Thread(LogThreadMethod);
- _logThread.IsBackground = true;
- _logThread.Start();
-
- _application.ConnectedMachineChanged += _application_ConnectedMachineChanged;
- }
-
- #endregion
-
- #region Private Methods
-
- private void Init()
- {
- if (!_isInitialized)
- {
- try
- {
- _db = ObservablesContext.CreateDefault();
- _db.Configuration.LazyLoadingEnabled = false;
-
- _db.ActionTypes.ToList();
- _db.EventTypesActions.ToList();
- _db.EventTypesCategories.ToList();
- _db.EventTypesGroups.ToList();
- _db.EventTypes.ToList();
-
- foreach (var type in _db.EventTypes)
- {
- _eventTypesGuids.Add((EventTypes)type.Code, type);
- }
-
- _isInitialized = true;
- }
- catch
- {
- _isInitialized = false;
- }
- }
- }
-
- #endregion
-
- #region Event Handlers
-
- /// <summary>
- /// Handle the application manager connected machine changed event.
- /// </summary>
- /// <param name="sender">The sender.</param>
- /// <param name="machine">The machine.</param>
- private void _application_ConnectedMachineChanged(object sender, IMachineOperator machine)
- {
- if (machine != null)
- {
- if (machine.MachineEventsStateProvider != null)
- {
- machine.MachineEventsStateProvider.NewEvents -= MachineEventsStateProvider_NewEvents;
- machine.MachineEventsStateProvider.NewEvents += MachineEventsStateProvider_NewEvents;
- machine.MachineEventsStateProvider.EventsResolved -= MachineEventsStateProvider_EventsResolved;
- machine.MachineEventsStateProvider.EventsResolved += MachineEventsStateProvider_EventsResolved;
- }
-
- machine.RequestSent -= Machine_RequestSent;
- machine.RequestFailed -= Machine_RequestFailed;
- machine.ResponseReceived -= Machine_ResponseReceived;
-
- machine.RequestSent += Machine_RequestSent;
- machine.RequestFailed += Machine_RequestFailed;
- machine.ResponseReceived += Machine_ResponseReceived;
- }
- }
-
- /// <summary>
- /// Handles the RequestSent event of the connected machine.
- /// </summary>
- /// <param name="sender">The sender.</param>
- /// <param name="message">The message.</param>
- private void Machine_RequestSent(object sender, IMessage message)
- {
- Log(EventTypes.RequestSent, String.Format("Sending request '{0}'...{1}{2}", message.GetType().Name, Environment.NewLine, message.ToJsonString()));
- }
-
- /// <summary>
- /// Handles the RequestFailed event of the connected machine.
- /// </summary>
- /// <param name="sender">The source of the event.</param>
- /// <param name="e">The <see cref="RequestFailedEventArgs"/> instance containing the event data.</param>
- private void Machine_RequestFailed(object sender, RequestFailedEventArgs e)
- {
- Log(EventTypes.RequestFailed, String.Format("Request failed '{0}'...{1}{2}{1}{3}", e.Message.GetType().Name, Environment.NewLine, e.Message.ToJsonString(), e.Exception.ToString()));
- }
-
- /// <summary>
- /// Handles the ResponseReceived event of the connected machine.
- /// </summary>
- /// <param name="sender">The sender.</param>
- /// <param name="message">The message.</param>
- private void Machine_ResponseReceived(object sender, IMessage message)
- {
- Log(EventTypes.ResponseReceived, String.Format("Response received '{0}'...{1}{2}", message.GetType().Name, Environment.NewLine, message.ToJsonString()));
- }
-
- /// <summary>
- /// Handles the connected machine events state provider NewEvents event.
- /// </summary>
- /// <param name="sender">The sender.</param>
- /// <param name="events">The events.</param>
- private void MachineEventsStateProvider_NewEvents(object sender, IEnumerable<MachinesEvent> events)
- {
- foreach (var ev in events)
- {
- Log(ev);
- }
- }
-
- /// <summary>
- /// Handles the connected machine events state provider EventsResolved event.
- /// </summary>
- /// <param name="sender">The sender.</param>
- /// <param name="events">The events.</param>
- private void MachineEventsStateProvider_EventsResolved(object sender, IEnumerable<MachinesEvent> events)
- {
- foreach (var ev in events)
- {
- Log(String.Format("Event '{0}' resolved.", ev.EventType.Name));
- }
- }
-
- #endregion
-
- #region Logging
-
- /// <summary>
- /// Logs the specified machine event.
- /// </summary>
- /// <param name="machineEvent">The machine event.</param>
- public void Log(MachinesEvent machineEvent)
- {
- machineEvent.HostName = _hostName;
- machineEvent.EventType = _eventTypesGuids[machineEvent.Type];
-
- if (_application.ConnectedMachine == null || _authentication.CurrentUser == null)
- {
- _pendingEvents.Add(machineEvent);
- }
- else
- {
- if (_pendingEvents.Count > 0)
- {
- var pending = _pendingEvents.ToList();
- _pendingEvents.Clear();
-
- foreach (var ev in pending)
- {
- Log(ev);
- }
- }
-
- LogManager.Log("Logging event " + machineEvent.EventType.Name + " - " + machineEvent.Description);
- machineEvent.MachineGuid = _application.ConnectedMachine.Machine.Guid;
- machineEvent.UserGuid = _authentication.CurrentUser.Guid;
- machineEvent.User = _authentication.CurrentUser;
- _events.Enqueue(machineEvent);
- NewLog?.Invoke(this, machineEvent);
- }
- }
-
- /// <summary>
- /// Logs the specified event type.
- /// </summary>
- /// <param name="eventType">Type of the event.</param>
- /// <param name="message">The message.</param>
- public void Log(EventTypes eventType, string message)
- {
- Init();
-
- MachinesEvent machineEvent = new MachinesEvent();
- machineEvent.DateTime = DateTime.UtcNow;
- machineEvent.Description = message;
- machineEvent.EventType = _eventTypesGuids[eventType];
- machineEvent.EventTypeGuid = machineEvent.EventType.Guid;
-
- Log(machineEvent);
- }
-
- /// <summary>
- /// Logs the specified hardware event.
- /// </summary>
- /// <param name="hardwareEvent">The hardware event.</param>
- public void Log(Event hardwareEvent)
- {
- Log((EventTypes)hardwareEvent.Type, hardwareEvent.Message);
- }
-
- /// <summary>
- /// Logs the specified exception using the <see cref="EventTypes.ApplicationException"/>.
- /// </summary>
- /// <param name="exception">The exception.</param>
- public void Log(Exception exception)
- {
- Log(EventTypes.ApplicationException, exception.ToString());
- }
-
- /// <summary>
- /// Logs the specified exception using the <see cref="EventTypes.ApplicationException" />.
- /// </summary>
- /// <param name="exception">The exception.</param>
- /// <param name="description"></param>
- public void Log(Exception exception, string description)
- {
- Log(EventTypes.ApplicationException, description + Environment.NewLine + exception.ToString());
- }
-
- /// <summary>
- /// Logs the specified message using the <see cref="EventTypes.ApplicationInformation"/>.
- /// </summary>
- /// <param name="message">The message.</param>
- public void Log(String message)
- {
- Log(EventTypes.ApplicationInformation, message);
- }
-
- /// <summary>
- /// Logging thread loop.
- /// </summary>
- private void LogThreadMethod()
- {
- while (true)
- {
- FlushAll();
- Thread.Sleep(5000);
- }
- }
-
- /// <summary>
- /// Immediately saves all pending events to database.
- /// </summary>
- public void FlushAll()
- {
- bool _saveChanges = false;
-
- while (_events.Count > 0)
- {
- MachinesEvent ev = null;
-
- if (_events.TryDequeue(out ev))
- {
- ev.User = null;
- _db.MachinesEvents.Add(ev);
- _saveChanges = true;
- }
- }
-
- if (_saveChanges)
- {
- try
- {
- _db.SaveChanges();
- }
- catch (Exception ex)
- {
- LogManager.Log(ex, "Error saving machine event to database.");
- }
- }
- }
-
- #endregion
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/EventLogging/IEventLogger.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/EventLogging/IEventLogger.cs
deleted file mode 100644
index d43aea14c..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/EventLogging/IEventLogger.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.BL.Entities;
-using Tango.BL.Enumerations;
-using Tango.PMR.Diagnostics;
-
-namespace Tango.PanelPC.UI.EventLogging
-{
- /// <summary>
- /// Represents a database events logger.
- /// </summary>
- public interface IEventLogger
- {
- /// <summary>
- /// Occurs when a new machine event has been logged.
- /// </summary>
- event EventHandler<MachinesEvent> NewLog;
-
- /// <summary>
- /// Logs the specified machine event.
- /// </summary>
- /// <param name="machineEvent">The machine event.</param>
- void Log(MachinesEvent machineEvent);
-
- /// <summary>
- /// Logs the specified event type.
- /// </summary>
- /// <param name="eventType">Type of the event.</param>
- /// <param name="message">The message.</param>
- void Log(EventTypes eventType, String message);
-
- /// <summary>
- /// Logs the specified hardware event.
- /// </summary>
- /// <param name="hardwareEvent">The hardware event.</param>
- void Log(Event hardwareEvent);
-
- /// <summary>
- /// Logs the specified exception using the <see cref="EventTypes.ApplicationException"/>.
- /// </summary>
- /// <param name="exception">The exception.</param>
- void Log(Exception exception);
-
- /// <summary>
- /// Logs the specified exception using the <see cref="EventTypes.ApplicationException"/>.
- /// </summary>
- /// <param name="exception">The exception.</param>
- void Log(Exception exception, String description);
-
- /// <summary>
- /// Logs the specified message using the <see cref="EventTypes.ApplicationInformation"/>.
- /// </summary>
- /// <param name="message">The message.</param>
- void Log(String message);
-
- /// <summary>
- /// Immediately saves all pending events to database.
- /// </summary>
- void FlushAll();
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Images/account.png b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Images/account.png
deleted file mode 100644
index 46f0d38fc..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Images/account.png
+++ /dev/null
Binary files differ
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Images/liquid.png b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Images/liquid.png
deleted file mode 100644
index 7c5a4bceb..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Images/liquid.png
+++ /dev/null
Binary files differ
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/MainWindow.xaml b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/MainWindow.xaml
deleted file mode 100644
index 7bc312cc7..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/MainWindow.xaml
+++ /dev/null
@@ -1,17 +0,0 @@
-<Window x:Class="Tango.PanelPC.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:local="clr-namespace:Tango.PanelPC.UI"
- xmlns:views="clr-namespace:Tango.PanelPC.UI.Views"
- mc:Ignorable="d"
- Title="MainWindow" Height="1000" Width="625">
- <Grid>
- <Viewbox Stretch="Fill">
- <Grid Height="1280" Width="800">
- <views:MainView/>
- </Grid>
- </Viewbox>
- </Grid>
-</Window>
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/MainWindow.xaml.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/MainWindow.xaml.cs
deleted file mode 100644
index c82b9e898..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/MainWindow.xaml.cs
+++ /dev/null
@@ -1,28 +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;
-
-namespace Tango.PanelPC.UI
-{
- /// <summary>
- /// Interaction logic for MainWindow.xaml
- /// </summary>
- public partial class MainWindow : Window
- {
- public MainWindow()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/DefaultNavigationManager.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/DefaultNavigationManager.cs
deleted file mode 100644
index 0ad28f8ab..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/DefaultNavigationManager.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Tango.PanelPC.UI.Navigation
-{
- public class DefaultNavigationManager : INavigationManager
- {
- public void NavigateTo(NavigationView view)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/INavigationManager.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/INavigationManager.cs
deleted file mode 100644
index d4b03519b..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/INavigationManager.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Tango.PanelPC.UI.Navigation
-{
- /// <summary>
- /// Represents the Machine Studio views navigation manager.
- /// </summary>
- public interface INavigationManager
- {
- /// <summary>
- /// Navigates to the specified view.
- /// </summary>
- /// <param name="view">The view.</param>
- void NavigateTo(NavigationView view);
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/NavigationView.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/NavigationView.cs
deleted file mode 100644
index 182d3e295..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Navigation/NavigationView.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Tango.PanelPC.UI.Navigation
-{
- /// <summary>
- /// Represents the available views to navigate to using the <see cref="INavigationManager"/>.
- /// </summary>
- public enum NavigationView
- {
- LoadingView,
- MainView,
- LoginView,
- ShutdownView,
- UpdateView,
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/DefaultNotificationProvider.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/DefaultNotificationProvider.cs
deleted file mode 100644
index 9601d61ea..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/DefaultNotificationProvider.cs
+++ /dev/null
@@ -1,115 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Windows.Media;
-using MaterialDesignThemes.Wpf;
-
-namespace Tango.PanelPC.UI.Notifications
-{
- public class DefaultNotificationProvider : INotificationProvider
- {
- public ObservableCollection<TaskItem> TaskItems
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public TaskItem CurrentTaskItem
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public bool HasTaskItems
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public void PopTaskItem(TaskItem taskItem)
- {
- throw new NotImplementedException();
- }
-
- public void PushTaskItem(TaskItem taskItem)
- {
- throw new NotImplementedException();
- }
-
- public TaskItem PushTaskItem(string message)
- {
- throw new NotImplementedException();
- }
-
- public void ShowError(string message)
- {
- throw new NotImplementedException();
- }
-
- public void ShowInfo(string message)
- {
- throw new NotImplementedException();
- }
-
- public bool? ShowMessageBox(PackIconKind icon, Brush iconColor, string message, bool hasCancel)
- {
- throw new NotImplementedException();
- }
-
- public void ShowModalDialog<View, VM>(Action<VM> onAccept, Action onCancel)
- where View : FrameworkElement
- where VM : DialogViewVM
- {
- throw new NotImplementedException();
- }
-
- public void ShowModalDialog<VM>(Action<VM> onAccept, Action onCancel) where VM : DialogViewVM
- {
- throw new NotImplementedException();
- }
-
- public void ShowModalDialog<VM, View>(VM vm, Action<VM> onAccept, Action onCancel)
- where VM : DialogViewVM
- where View : FrameworkElement
- {
- throw new NotImplementedException();
- }
-
- public void ShowModalDialog<VM, View>(VM vm, View view, Action<VM> onAccept, Action onCancel)
- where VM : DialogViewVM
- where View : FrameworkElement
- {
- throw new NotImplementedException();
- }
-
- public void ShowModalDialog<VM>(Action<VM> onAccept) where VM : DialogViewVM
- {
- throw new NotImplementedException();
- }
-
- public bool ShowQuestion(string message)
- {
- throw new NotImplementedException();
- }
-
- public string ShowTextInput(string message, string hint, string defaultResponse = null)
- {
- throw new NotImplementedException();
- }
-
- public void ShowWarning(string message)
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/DialogViewVM.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/DialogViewVM.cs
deleted file mode 100644
index 6c4605217..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/DialogViewVM.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.Core.Commands;
-using Tango.SharedUI;
-
-namespace Tango.PanelPC.UI.Notifications
-{
- /// <summary>
- /// Represents a dialog view model base class.
- /// </summary>
- /// <seealso cref="Tango.SharedUI.ViewModel" />
- public abstract class DialogViewVM : ViewModel
- {
- public event Action Accepted;
- public event Action Canceled;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="DialogViewVM"/> class.
- /// </summary>
- public DialogViewVM()
- {
- CanClose = true;
- CloseCommand = new RelayCommand(Cancel, (x) => CanClose);
- OKCommand = new RelayCommand(Accept, (x) => CanClose);
- }
-
- private bool _canClose;
- /// <summary>
- /// Gets or sets a value indicating whether this dialog can be closed.
- /// </summary>
- public bool CanClose
- {
- get { return _canClose; }
- set { _canClose = value; RaisePropertyChangedAuto(); InvalidateRelayCommands(); }
- }
-
- /// <summary>
- /// Gets or sets the close command.
- /// </summary>
- public RelayCommand CloseCommand { get; set; }
-
- /// <summary>
- /// Gets or sets the ok command.
- /// </summary>
- public RelayCommand OKCommand { get; set; }
-
- /// <summary>
- /// Called when the dialog has been shown.
- /// </summary>
- public virtual void OnShow()
- {
-
- }
-
- /// <summary>
- /// Invokes the <see cref="Accepted"/> event.
- /// </summary>
- protected virtual void Accept()
- {
- Accepted?.Invoke();
- }
-
- /// <summary>
- /// Invokes the <see cref="Canceled"/> event.
- /// </summary>
- protected virtual void Cancel()
- {
- Canceled?.Invoke();
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/INotificationProvider.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/INotificationProvider.cs
deleted file mode 100644
index f27f78625..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/INotificationProvider.cs
+++ /dev/null
@@ -1,140 +0,0 @@
-using MaterialDesignThemes.Wpf;
-using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Windows.Media;
-
-namespace Tango.PanelPC.UI.Notifications
-{
- /// <summary>
- /// Represents the Machine Studio user notification provider responsible for displaying information, alerts and dialogs to the user.
- /// </summary>
- public interface INotificationProvider
- {
- /// <summary>
- /// Gets the collection of active task items.
- /// </summary>
- ObservableCollection<TaskItem> TaskItems { get; }
-
- /// <summary>
- /// Gets the current displayed task item.
- /// </summary>
- TaskItem CurrentTaskItem { get; }
-
- /// <summary>
- /// Gets a value indicating whether there are any queued task items.
- /// </summary>
- bool HasTaskItems { get; }
-
- /// <summary>
- /// Pushes the specified task item to the queue.
- /// </summary>
- /// <param name="taskItem">The task item.</param>
- void PushTaskItem(TaskItem taskItem);
-
- /// <summary>
- /// Create and push a new task item from the specified message.
- /// </summary>
- /// <param name="message">The message.</param>
- /// <returns></returns>
- TaskItem PushTaskItem(String message);
-
- /// <summary>
- /// Removed the specified task item from the queue.
- /// </summary>
- /// <param name="taskItem">The task item.</param>
- void PopTaskItem(TaskItem taskItem);
-
- /// <summary>
- /// Creates a new instance of the specified View type and displays it as a modal dialog.
- /// </summary>
- /// <typeparam name="View">The type of the view.</typeparam>
- /// <typeparam name="VM">The type of the view model.</typeparam>
- /// <param name="onAccept">Accept button callback.</param>
- /// <param name="onCancel">Cancel button callback.</param>
- void ShowModalDialog<View, VM>(Action<VM> onAccept, Action onCancel) where View : FrameworkElement where VM : DialogViewVM;
-
- /// <summary>
- /// Creates a new view by a naming convention of the specified view model type.
- /// </summary>
- /// <typeparam name="VM">The type of the view model.</typeparam>
- /// <param name="onAccept">Accept button callback.</param>
- /// <param name="onCancel">Cancel button callback.</param>
- void ShowModalDialog<VM>(Action<VM> onAccept, Action onCancel) where VM : DialogViewVM;
-
- /// <summary>
- /// Shows the specified view with the specified view model as it's data context.
- /// </summary>
- /// <typeparam name="VM">The type of the mm.</typeparam>
- /// <typeparam name="View">The type of the view.</typeparam>
- /// <param name="vm">The view model.</param>
- /// <param name="onAccept">The accept action.</param>
- /// <param name="onCancel">The cancel action.</param>
- void ShowModalDialog<VM, View>(VM vm, Action<VM> onAccept, Action onCancel) where View : FrameworkElement where VM : DialogViewVM;
-
- /// <summary>
- /// Shows the specified view with the specified view model as it's data context.
- /// </summary>
- /// <typeparam name="VM">The type of the mm.</typeparam>
- /// <typeparam name="View">The type of the view.</typeparam>
- /// <param name="vm">The view model.</param>
- /// <param name="view">The view.</param>
- /// <param name="onAccept">The accept action.</param>
- /// <param name="onCancel">The cancel action.</param>
- void ShowModalDialog<VM, View>(VM vm, View view, Action<VM> onAccept, Action onCancel) where View : FrameworkElement where VM : DialogViewVM;
-
- /// <summary>
- /// Creates a new view by a naming convention of the specified view model type.
- /// </summary>
- /// <typeparam name="VM">The type of the view model.</typeparam>
- /// <param name="onAccept">Accept button callback.</param>
- void ShowModalDialog<VM>(Action<VM> onAccept) where VM : DialogViewVM;
-
- /// <summary>
- /// Display a message box.
- /// </summary>
- /// <param name="icon">The icon.</param>
- /// <param name="iconColor">Color of the icon.</param>
- /// <param name="message">The message.</param>
- /// <param name="hasCancel">if set to <c>true</c> displays the cancel button.</param>
- /// <returns></returns>
- bool? ShowMessageBox(PackIconKind icon, Brush iconColor, String message, bool hasCancel);
-
- /// <summary>
- /// Shows an information message box.
- /// </summary>
- /// <param name="message">The message.</param>
- void ShowInfo(String message);
-
- /// <summary>
- /// Shows warning message box.
- /// </summary>
- /// <param name="message">The message.</param>
- void ShowWarning(String message);
-
- /// <summary>
- /// Shows an error message box.
- /// </summary>
- /// <param name="message">The message.</param>
- void ShowError(String message);
-
- /// <summary>
- /// Shows a question message box.
- /// </summary>
- /// <param name="message">The message.</param>
- bool ShowQuestion(String message);
-
- /// <summary>
- /// Shows a dialog with a text input field and returns the response.
- /// </summary>
- /// <param name="message">The message.</param>
- /// <param name="hint">Text field hint.</param>
- /// <param name="defaultResponse">Optional default response.</param>
- /// <returns></returns>
- String ShowTextInput(String message, String hint, String defaultResponse = null);
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/TaskItem.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/TaskItem.cs
deleted file mode 100644
index 7f0dc7dab..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Notifications/TaskItem.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.Core;
-
-namespace Tango.PanelPC.UI.Notifications
-{
- /// <summary>
- /// Represents a Machine Studio "work-bar" item.
- /// </summary>
- /// <seealso cref="Tango.Core.ExtendedObject" />
- /// <seealso cref="System.IDisposable" />
- public class TaskItem : ExtendedObject, IDisposable
- {
- private INotificationProvider _notificationProvider;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="TaskItem"/> class.
- /// </summary>
- /// <param name="notificationProvider">The notification provider.</param>
- public TaskItem(INotificationProvider notificationProvider)
- {
- _notificationProvider = notificationProvider;
- }
-
- private String _message;
- /// <summary>
- /// Gets or sets the message.
- /// </summary>
- public String Message
- {
- get { return _message; }
- set { _message = value; RaisePropertyChangedAuto(); }
- }
-
- /// <summary>
- /// Removed this item from the queue.
- /// </summary>
- public void Pop()
- {
- _notificationProvider.PopTaskItem(this);
- }
-
- /// <summary>
- /// Pushes this item to the queue.
- /// </summary>
- public void Push()
- {
- _notificationProvider.PushTaskItem(this);
- }
-
- /// <summary>
- /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- /// </summary>
- public void Dispose()
- {
- Pop();
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/DefaultPanelPCApplicationManager.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/DefaultPanelPCApplicationManager.cs
deleted file mode 100644
index aa36bb9cd..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/DefaultPanelPCApplicationManager.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.Integration.Operation;
-
-namespace Tango.PanelPC.UI.PanelPCApplication
-{
- public class DefaultPanelPCApplicationManager : IPanelPCApplicationManager
- {
- public bool IsShuttingDown
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public IMachineOperator ConnectedMachine
- {
- get
- {
- throw new NotImplementedException();
- }
-
- set
- {
- throw new NotImplementedException();
- }
- }
-
- public string Version
- {
- get
- {
- throw new NotImplementedException();
- }
- }
-
- public event EventHandler<IMachineOperator> ConnectedMachineChanged;
-
- public void ShutDown()
- {
- throw new NotImplementedException();
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/IPanelPCApplicationManager.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/IPanelPCApplicationManager.cs
deleted file mode 100644
index fd5b68f3c..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/PanelPCApplication/IPanelPCApplicationManager.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-using Tango.Integration.Operation;
-using Tango.Integration.Services;
-
-namespace Tango.PanelPC.UI.PanelPCApplication
-{
- /// <summary>
- /// Represents the Machine Studio application manager.
- /// </summary>
- public interface IPanelPCApplicationManager
- {
- /// <summary>
- /// Occurs when the connected machine property has changed.
- /// </summary>
- event EventHandler<IMachineOperator> ConnectedMachineChanged;
-
- /// <summary>
- /// Gets a value indicating whether Machine Studio is shutting down.
- /// </summary>
- bool IsShuttingDown { get; }
-
- /// <summary>
- /// Shutdown the application.
- /// </summary>
- void ShutDown();
-
- /// <summary>
- /// Gets or sets the currently connected machine if any.
- /// </summary>
- IMachineOperator ConnectedMachine { get; set; }
-
- /// <summary>
- /// Gets the machine studio application version.
- /// </summary>
- String Version { get; }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Properties/AssemblyInfo.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Properties/AssemblyInfo.cs
deleted file mode 100644
index cf2bc2e13..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.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.PanelPC.UI")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Tango.PanelPC.UI")]
-[assembly: AssemblyCopyright("Copyright © 2018")]
-[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/PanelPC/Tango.PanelPC.UI/Properties/Resources.Designer.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Properties/Resources.Designer.cs
deleted file mode 100644
index 22ca0612f..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.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.PanelPC.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.PanelPC.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/PanelPC/Tango.PanelPC.UI/Properties/Resources.resx b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Properties/Resources.resx
deleted file mode 100644
index af7dbebba..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.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/PanelPC/Tango.PanelPC.UI/Properties/Settings.Designer.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Properties/Settings.Designer.cs
deleted file mode 100644
index 2b6ca1383..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.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.PanelPC.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/PanelPC/Tango.PanelPC.UI/Properties/Settings.settings b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Properties/Settings.settings
deleted file mode 100644
index 033d7a5e9..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.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/PanelPC/Tango.PanelPC.UI/Resources/Colors.xaml b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Resources/Colors.xaml
deleted file mode 100644
index d0800fc89..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Resources/Colors.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:Tango.PanelPC.UI.Resources">
-
-
- <Color x:Key="AccentColor">#2F65EE</Color>
- <SolidColorBrush x:Key="AccentColorBrush" Color="{StaticResource AccentColor}"></SolidColorBrush>
-
- <Color x:Key="WhiteColor">#FFFFFF</Color>
- <SolidColorBrush x:Key="WhiteColorBrush" Color="{StaticResource WhiteColor}"></SolidColorBrush>
-
- <Color x:Key="BorderColor">#C8CBD4</Color>
- <SolidColorBrush x:Key="BorderColorBrush" Color="{StaticResource BorderColor}"></SolidColorBrush>
-</ResourceDictionary> \ No newline at end of file
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Resources/MaterialOverride.xaml b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Resources/MaterialOverride.xaml
deleted file mode 100644
index f7f81a974..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Resources/MaterialOverride.xaml
+++ /dev/null
@@ -1,185 +0,0 @@
-<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:wpf="clr-namespace:MaterialDesignThemes.Wpf;assembly=MaterialDesignThemes.Wpf"
- xmlns:converters="clr-namespace:MaterialDesignThemes.Wpf.Converters;assembly=MaterialDesignThemes.Wpf"
- xmlns:local="clr-namespace:Tango.PanelPC.UI.Resources">
-
-
- <Style TargetType="ListBox" BasedOn="{StaticResource {x:Type ListBox}}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"></Setter>
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled"></Setter>
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalOnly"></Setter>
- <Setter Property="VirtualizingStackPanel.ScrollUnit" Value="Pixel"></Setter>
- <Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
- </Style>
-
- <!--ListBoxItem--><!--
- <Style TargetType="{x:Type ListBoxItem}">
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"></Setter>
- <Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
- <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
- <Setter Property="Padding" Value="8"/>
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <Border Background="White"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="5"
- Margin="2"
- ClipToBounds="{TemplateBinding ClipToBounds}">
- <Border.Effect>
- <DropShadowEffect ShadowDepth="0" BlurRadius="8" Color="Silver" />
- </Border.Effect>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup Name="CommonStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.3" To="Normal">
- <VisualTransition.GeneratedEasingFunction>
- <CircleEase EasingMode="EaseOut"/>
- </VisualTransition.GeneratedEasingFunction>
- </VisualTransition>
- </VisualStateGroup.Transitions>
- <VisualState Name="Normal"/>
- --><!--<VisualState Name="MouseOver">
- <Storyboard>
- <DoubleAnimation Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="Opacity"
- To="0.1" Duration="0"/>
- </Storyboard>
- </VisualState>--><!--
- <VisualState Name="Disabled"/>
- </VisualStateGroup>
- <VisualStateGroup Name="SelectionStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.6"/>
- </VisualStateGroup.Transitions>
- <VisualState Name="Selected">
- <Storyboard>
- <DoubleAnimation Storyboard.TargetName="SelectedBorder"
- Storyboard.TargetProperty="Opacity"
- To="0.18" Duration="0"/>
- </Storyboard>
- </VisualState>
- <VisualState Name="Unselected"/>
- <VisualState Name="SelectedUnfocused">
- <Storyboard>
- <DoubleAnimation Storyboard.TargetName="SelectedBorder"
- Storyboard.TargetProperty="Opacity"
- To="0.03" Duration="0"/>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Grid>
- <Border x:Name="MouseOverBorder"
- Opacity="0" CornerRadius="5"
- Background="{TemplateBinding Foreground, Converter={StaticResource BrushRoundConverter}}"/>
-
- <Border x:Name="SelectedBorder"
- Opacity="0" CornerRadius="5"
- Background="{TemplateBinding Foreground, Converter={StaticResource BrushRoundConverter}}"
- RenderTransformOrigin="0.5,0.5">
- <Border.RenderTransform>
- <ScaleTransform ScaleX="1"/>
- </Border.RenderTransform>
- </Border>
- <wpf:Ripple Feedback="{TemplateBinding Foreground, Converter={StaticResource BrushRoundConverter}}"
- Focusable="False"
- Content="{TemplateBinding Content}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
- HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
- Padding="{TemplateBinding Padding}"/>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Opacity" Value=".56" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- --><!--ListBoxItem-->
-
- <!--Colors-->
- <SolidColorBrush x:Key="PrimaryHueLightBrush" Color="{StaticResource Primary200}" />
- <SolidColorBrush x:Key="PrimaryHueLightForegroundBrush" Color="{StaticResource Primary200Foreground}" />
- <SolidColorBrush x:Key="PrimaryHueMidBrush" Color="{StaticResource AccentColor}" />
- <SolidColorBrush x:Key="PrimaryHueMidForegroundBrush" Color="{StaticResource Primary500Foreground}" />
- <SolidColorBrush x:Key="PrimaryHueDarkBrush" Color="{StaticResource Primary700}" />
- <SolidColorBrush x:Key="PrimaryHueDarkForegroundBrush" Color="{StaticResource Primary700Foreground}" />
- <!--Colors-->
-
- <!--RoundedButton--><!--
- <Style x:Key="MaterialDesignRaisedRoundedButton" TargetType="{x:Type ButtonBase}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
- <Setter Property="Background" Value="{DynamicResource PrimaryHueMidBrush}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueMidBrush}"/>
- <Setter Property="Foreground" Value="{DynamicResource PrimaryHueMidForegroundBrush}"/>
- <Setter Property="wpf:RippleAssist.Feedback" Value="White" />
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="wpf:ShadowAssist.ShadowDepth" Value="Depth1" />
- <Setter Property="TextBlock.FontWeight" Value="Medium"/>
- <Setter Property="TextBlock.FontSize" Value="14"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Padding" Value="16 4 16 4"/>
- <Setter Property="Height" Value="32" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ButtonBase}">
- <Grid>
- <AdornerDecorator CacheMode="{Binding RelativeSource={RelativeSource Self}, Path=(wpf:ShadowAssist.CacheMode)}">
- <Grid>
- <Border Background="{TemplateBinding Background}" CornerRadius="20"
- BorderThickness="{TemplateBinding BorderThickness}"
- BorderBrush="{TemplateBinding BorderBrush}"
- x:Name="border"
- Effect="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:ShadowAssist.ShadowDepth), Converter={x:Static converters:ShadowConverter.Instance}}" />
- <Border HorizontalAlignment="Left" Background="{DynamicResource MaterialDesignBackground}" Opacity=".4">
- <Border.Width>
- <MultiBinding Converter="{StaticResource RangeLengthConverter}">
- <Binding Path="(wpf:ButtonProgressAssist.Minimum)" RelativeSource="{RelativeSource TemplatedParent}" />
- <Binding Path="(wpf:ButtonProgressAssist.Maximum)" RelativeSource="{RelativeSource TemplatedParent}" />
- <Binding Path="(wpf:ButtonProgressAssist.Value)" RelativeSource="{RelativeSource TemplatedParent}" />
- <Binding Path="ActualWidth" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type ButtonBase}}" />
- </MultiBinding>
- </Border.Width>
- </Border>
- </Grid>
- </AdornerDecorator>
- <wpf:Ripple Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Focusable="False"
- HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
- Padding="{TemplateBinding Padding}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="border" Property="wpf:ShadowAssist.Darken" Value="True" />
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="true">
- <Setter TargetName="border" Property="wpf:ShadowAssist.Darken" Value="True" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Opacity" Value="0.23"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- --><!--RoundedButton-->
-
-
-</ResourceDictionary> \ No newline at end of file
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Resources/Styles.xaml b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Resources/Styles.xaml
deleted file mode 100644
index 01a5ff01f..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Resources/Styles.xaml
+++ /dev/null
@@ -1,19 +0,0 @@
-<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:Tango.PanelPC.UI.Resources">
-
- <Style x:Key="JobsListBoxItem" TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">
- <Setter Property="BorderBrush" Value="Silver"></Setter>
- <Setter Property="BorderThickness" Value="0 0 0 1"></Setter>
- <Setter Property="Focusable" Value="False"></Setter>
- <Setter Property="Background" Value="White"></Setter>
- </Style>
-
-
-
- <Style x:Key="JobsListBox" TargetType="ListBox" BasedOn="{StaticResource {x:Type ListBox}}">
- <Setter Property="ItemContainerStyle" Value="{StaticResource JobsListBoxItem}"></Setter>
- <Setter Property="Background" Value="#f2f5fa"></Setter>
- </Style>
-
-</ResourceDictionary> \ No newline at end of file
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Tango.PanelPC.UI.csproj b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Tango.PanelPC.UI.csproj
deleted file mode 100644
index 549ed57bb..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Tango.PanelPC.UI.csproj
+++ /dev/null
@@ -1,244 +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>{654BEDA3-16FB-44FF-ADE7-B52E50B02E63}</ProjectGuid>
- <OutputType>WinExe</OutputType>
- <RootNamespace>Tango.PanelPC.UI</RootNamespace>
- <AssemblyName>Tango.PanelPC.UI</AssemblyName>
- <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <WarningLevel>4</WarningLevel>
- <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <PlatformTarget>AnyCPU</PlatformTarget>
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>..\..\Build\Debug\PanelPC\</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>..\..\Build\Release\PanelPC\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="ControlzEx, Version=3.0.2.4, Culture=neutral, processorArchitecture=MSIL">
- <HintPath>..\..\packages\ControlzEx.3.0.2.4\lib\net45\ControlzEx.dll</HintPath>
- </Reference>
- <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
- <HintPath>..\..\packages\EntityFramework.6.0.0\lib\net45\EntityFramework.dll</HintPath>
- </Reference>
- <Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
- <HintPath>..\..\packages\EntityFramework.6.0.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
- </Reference>
- <Reference Include="FontAwesome.WPF, Version=4.7.0.37774, Culture=neutral, PublicKeyToken=0758b07a11a4f466, processorArchitecture=MSIL">
- <HintPath>..\..\packages\FontAwesome.WPF.4.7.0.9\lib\net40\FontAwesome.WPF.dll</HintPath>
- </Reference>
- <Reference Include="Google.Protobuf, Version=3.4.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL">
- <HintPath>..\..\packages\Google.Protobuf.3.4.1\lib\net45\Google.Protobuf.dll</HintPath>
- </Reference>
- <Reference Include="MahApps.Metro, Version=1.6.0.0, Culture=neutral, processorArchitecture=MSIL">
- <HintPath>..\..\packages\MahApps.Metro.1.6.4\lib\net46\MahApps.Metro.dll</HintPath>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.ComponentModel.DataAnnotations" />
- <Reference Include="System.Data" />
- <Reference Include="System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
- <HintPath>..\..\packages\Expression.Blend.Sdk.1.0.2\lib\net45\System.Windows.Interactivity.dll</HintPath>
- </Reference>
- <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>
- <Compile Include="Authentication\DefaultAuthenticationProvider.cs" />
- <Compile Include="Authentication\IAuthenticationProvider.cs" />
- <Compile Include="Diagnostics\DefaultDiagnosticsFrameProvider.cs" />
- <Compile Include="Diagnostics\IDiagnosticsFrameProvider.cs" />
- <Compile Include="EventLogging\DefaultEventLogger.cs" />
- <Compile Include="EventLogging\IEventLogger.cs" />
- <Compile Include="Navigation\DefaultNavigationManager.cs" />
- <Compile Include="Navigation\INavigationManager.cs" />
- <Compile Include="Navigation\NavigationView.cs" />
- <Compile Include="Notifications\DefaultNotificationProvider.cs" />
- <Compile Include="Notifications\DialogViewVM.cs" />
- <Compile Include="Notifications\INotificationProvider.cs" />
- <Compile Include="Notifications\TaskItem.cs" />
- <Compile Include="PanelPCApplication\DefaultPanelPCApplicationManager.cs" />
- <Compile Include="PanelPCApplication\IPanelPCApplicationManager.cs" />
- <Compile Include="ViewModelLocator.cs" />
- <Compile Include="ViewModels\JobsViewVM.cs" />
- <Compile Include="ViewModels\LayoutViewVM.cs" />
- <Compile Include="ViewModels\LoadingView.cs" />
- <Compile Include="ViewModels\MainViewVM.cs" />
- <Compile Include="Views\JobsView.xaml.cs">
- <DependentUpon>JobsView.xaml</DependentUpon>
- </Compile>
- <Compile Include="Views\LayoutView.xaml.cs">
- <DependentUpon>LayoutView.xaml</DependentUpon>
- </Compile>
- <Compile Include="Views\LoadingView.xaml.cs">
- <DependentUpon>LoadingView.xaml</DependentUpon>
- </Compile>
- <Compile Include="Views\MainView.xaml.cs">
- <DependentUpon>MainView.xaml</DependentUpon>
- </Compile>
- <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="MainWindow.xaml.cs">
- <DependentUpon>MainWindow.xaml</DependentUpon>
- <SubType>Code</SubType>
- </Compile>
- <Page Include="Resources\Colors.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </Page>
- <Page Include="Resources\MaterialOverride.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </Page>
- <Page Include="Resources\Styles.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </Page>
- <Page Include="Views\JobsView.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </Page>
- <Page Include="Views\LayoutView.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </Page>
- <Page Include="Views\LoadingView.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </Page>
- <Page Include="Views\MainView.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </Page>
- </ItemGroup>
- <ItemGroup>
- <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="packages.config" />
- <None Include="Properties\Settings.settings">
- <Generator>SettingsSingleFileGenerator</Generator>
- <LastGenOutput>Settings.Designer.cs</LastGenOutput>
- </None>
- </ItemGroup>
- <ItemGroup>
- <None Include="App.config" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\SideChains\MaterialDesignInXamlToolkit-master\MaterialDesignColors.Wpf\MaterialDesignColors.Wpf.csproj">
- <Project>{90b53209-c60c-4655-b28d-a1b3e1044ba3}</Project>
- <Name>MaterialDesignColors.Wpf</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\SideChains\MaterialDesignInXamlToolkit-master\MaterialDesignThemes.Wpf\MaterialDesignThemes.Wpf.csproj">
- <Project>{f079fb0a-a8ed-4216-b6a5-345756751a04}</Project>
- <Name>MaterialDesignThemes.Wpf</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.DragAndDrop\Tango.DragAndDrop.csproj">
- <Project>{b112d89a-a106-41ae-a0c1-4abc84c477f5}</Project>
- <Name>Tango.DragAndDrop</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.Serialization\Tango.Serialization.csproj">
- <Project>{22f87980-e990-4686-be81-be63d562c4d5}</Project>
- <Name>Tango.Serialization</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.Settings\Tango.Settings.csproj">
- <Project>{d8f1ad85-526a-4f50-b6dc-d437af63d8d8}</Project>
- <Name>Tango.Settings</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.SharedUI\Tango.SharedUI.csproj">
- <Project>{8491d07b-c1f6-4b62-a412-41b9fd2d6538}</Project>
- <Name>Tango.SharedUI</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.TFS\Tango.TFS.csproj">
- <Project>{998f8471-dc1b-41b6-9d96-354e1b4e7a32}</Project>
- <Name>Tango.TFS</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.Touch\Tango.Touch.csproj">
- <Project>{fd86424c-6e84-491b-8df9-3d0f5c236a2a}</Project>
- <Name>Tango.Touch</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\Tango.Transport\Tango.Transport.csproj">
- <Project>{74e700b0-1156-4126-be40-ee450d3c3026}</Project>
- <Name>Tango.Transport</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <Resource Include="Images\liquid.png" />
- </ItemGroup>
- <ItemGroup>
- <Resource Include="Images\account.png" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
-</Project> \ No newline at end of file
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModelLocator.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModelLocator.cs
deleted file mode 100644
index 061454b32..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModelLocator.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-using System;
-using Tango.Core.DI;
-using Tango.Integration.Services;
-using Tango.Logging;
-using Tango.PanelPC.UI.Authentication;
-using Tango.PanelPC.UI.Diagnostics;
-using Tango.PanelPC.UI.EventLogging;
-using Tango.PanelPC.UI.Navigation;
-using Tango.PanelPC.UI.Notifications;
-using Tango.PanelPC.UI.PanelPCApplication;
-using Tango.PanelPC.UI.ViewModels;
-using Tango.TFS;
-
-namespace Tango.PanelPC.UI
-{
- /// <summary>
- /// This class contains static references to all the view models in the
- /// application and provides an entry point for the bindings.
- /// </summary>
- public static class ViewModelLocator
- {
- /// <summary>
- /// Initializes a new instance of the ViewModelLocator class.
- /// </summary>
- static ViewModelLocator()
- {
- TangoIOC.Default.Unregister<INotificationProvider>();
- TangoIOC.Default.Unregister<IAuthenticationProvider>();
- TangoIOC.Default.Unregister<INavigationManager>();
- TangoIOC.Default.Unregister<IPanelPCApplicationManager>();
- TangoIOC.Default.Unregister<ExternalBridgeScanner>();
- TangoIOC.Default.Unregister<IDiagnosticsFrameProvider>();
- TangoIOC.Default.Unregister<IEventLogger>();
- TangoIOC.Default.Unregister<ITeamFoundationServiceClient>();
-
- TangoIOC.Default.Register<INotificationProvider, DefaultNotificationProvider>();
- TangoIOC.Default.Register<IAuthenticationProvider, DefaultAuthenticationProvider>();
- TangoIOC.Default.Register<INavigationManager, DefaultNavigationManager>();
- TangoIOC.Default.Register<IPanelPCApplicationManager, DefaultPanelPCApplicationManager>();
- TangoIOC.Default.Register<ExternalBridgeScanner, ExternalBridgeScanner>();
- TangoIOC.Default.Register<IDiagnosticsFrameProvider, DefaultDiagnosticsFrameProvider>();
- TangoIOC.Default.Register<IEventLogger, DefaultEventLogger>();
- //TangoIOC.Default.Register<TeamFoundationServiceExtendedClient>(new TeamFoundationServiceExtendedClient("https://twinetfs.visualstudio.com", String.Empty, "szzfokrceo4rhd4eqi5qpmxn3pa5iwl3q7tlqd36l2m7smz2ynoa"));
-
- TangoIOC.Default.Register<LoadingView>();
- TangoIOC.Default.Register<MainViewVM>();
- TangoIOC.Default.Register<LayoutViewVM>();
- TangoIOC.Default.Register<JobsViewVM>();
- //TangoIOC.Default.Register<LoadingViewVM>();
- //TangoIOC.Default.Register<ShutdownViewVM>();
- //TangoIOC.Default.Register<LoginViewVM>();
- //TangoIOC.Default.Register<MachineConnectionViewVM>();
- //TangoIOC.Default.Register<ConnectedMachineViewVM>();
- //TangoIOC.Default.Register<MachineLoginViewVM>();
- //TangoIOC.Default.Register<UpdateViewVM>();
- }
-
- public static LoadingView LoadingView
- {
- get
- {
- return TangoIOC.Default.GetInstance<LoadingView>();
- }
- }
-
- public static MainViewVM MainViewVM
- {
- get
- {
- return TangoIOC.Default.GetInstance<MainViewVM>();
- }
- }
-
- public static LayoutViewVM LayoutViewVM
- {
- get
- {
- return TangoIOC.Default.GetInstance<LayoutViewVM>();
- }
- }
-
- public static JobsViewVM JobsViewVM
- {
- get
- {
- return TangoIOC.Default.GetInstance<JobsViewVM>();
- }
- }
- }
-} \ No newline at end of file
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/JobsViewVM.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/JobsViewVM.cs
deleted file mode 100644
index 27a3f8a84..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/JobsViewVM.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.BL.Entities;
-using Tango.SharedUI;
-
-namespace Tango.PanelPC.UI.ViewModels
-{
- public class JobsViewVM : ViewModel
- {
- private ObservableCollection<Job> _jobs;
- public ObservableCollection<Job> Jobs
- {
- get { return _jobs; }
- set { _jobs = value; RaisePropertyChangedAuto(); }
- }
-
- public JobsViewVM()
- {
- Jobs = new ObservableCollection<Job>();
-
- for (int i = 0; i < 50; i++)
- {
- Jobs.Add(new Job()
- {
- Name = "Job " + (i + 1),
- Description = "Some Description..."
- });
- }
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LayoutViewVM.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LayoutViewVM.cs
deleted file mode 100644
index 4ea7a4bb5..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LayoutViewVM.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.SharedUI;
-
-namespace Tango.PanelPC.UI.ViewModels
-{
- public class LayoutViewVM : ViewModel
- {
-
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LoadingView.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LoadingView.cs
deleted file mode 100644
index c1c9d1bb4..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/LoadingView.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.SharedUI;
-
-namespace Tango.PanelPC.UI.ViewModels
-{
- public class LoadingView : ViewModel
- {
-
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/MainViewVM.cs
deleted file mode 100644
index 71501c8b1..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/ViewModels/MainViewVM.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Tango.PanelPC.UI.PanelPCApplication;
-using Tango.SharedUI;
-
-namespace Tango.PanelPC.UI.ViewModels
-{
- public class MainViewVM : ViewModel
- {
- public String Test { get; set; }
-
- public MainViewVM(IPanelPCApplicationManager application)
- {
- Test = "This is a binding test";
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/JobsView.xaml b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/JobsView.xaml
deleted file mode 100644
index 358eba147..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/JobsView.xaml
+++ /dev/null
@@ -1,50 +0,0 @@
-<UserControl x:Class="Tango.PanelPC.UI.Views.JobsView"
- 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:vm="clr-namespace:Tango.PanelPC.UI.ViewModels"
- xmlns:global="clr-namespace:Tango.PanelPC.UI"
- xmlns:keyboard="clr-namespace:Tango.SharedUI.Keyboard;assembly=Tango.SharedUI"
- xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
- xmlns:entities="clr-namespace:Tango.BL.Entities;assembly=Tango.BL"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- xmlns:local="clr-namespace:Tango.PanelPC.UI.Views"
- mc:Ignorable="d"
- d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:JobsViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.JobsViewVM}">
- <Grid Background="{StaticResource TangoMidBackgroundBrush}">
- <Grid.RowDefinitions>
- <RowDefinition Height="82"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
-
- <Border Background="{StaticResource TangoPrimaryBackgroundBrush}" BorderThickness="0 0 0 1" BorderBrush="{StaticResource TangoDividerBrush}">
- <Border.Effect>
- <DropShadowEffect Color="Silver" ShadowDepth="0" BlurRadius="20" Opacity="1" />
- </Border.Effect>
- <TextBlock VerticalAlignment="Center" Margin="20" FontSize="25" FontWeight="SemiBold">JOBS</TextBlock>
- </Border>
-
- <Grid Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="100"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
-
- <touch:TouchNavigationLinks VerticalAlignment="Bottom" Margin="20" FontSize="18" FontWeight="SemiBold">
- <sys:String>READY TO DYE</sys:String>
- <sys:String>NOT READY</sys:String>
- <sys:String>ALL</sys:String>
- </touch:TouchNavigationLinks>
-
- <Grid Grid.Row="1">
- <touch:TouchDataGrid ItemsSource="{Binding Jobs}" Margin="10" EnableDropShadow="True" ShadowColor="#ECECEC" AutoGenerateColumns="False" RowHeight="68" ColumnHeaderHeight="67">
- <touch:TouchDataGrid.Columns>
- <DataGridTextColumn Header="Name" Binding="{Binding Name}"></DataGridTextColumn>
- <DataGridTextColumn Header="Description" Binding="{Binding Description}"></DataGridTextColumn>
- </touch:TouchDataGrid.Columns>
- </touch:TouchDataGrid>
- </Grid>
- </Grid>
- </Grid>
-</UserControl>
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/JobsView.xaml.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/JobsView.xaml.cs
deleted file mode 100644
index 918b2c973..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/JobsView.xaml.cs
+++ /dev/null
@@ -1,28 +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;
-
-namespace Tango.PanelPC.UI.Views
-{
- /// <summary>
- /// Interaction logic for JobsView.xaml
- /// </summary>
- public partial class JobsView : UserControl
- {
- public JobsView()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LayoutView.xaml b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LayoutView.xaml
deleted file mode 100644
index a9cdc8a6c..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LayoutView.xaml
+++ /dev/null
@@ -1,119 +0,0 @@
-<UserControl x:Class="Tango.PanelPC.UI.Views.LayoutView"
- 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:Tango.PanelPC.UI.Views"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:vm="clr-namespace:Tango.PanelPC.UI.ViewModels"
- xmlns:global="clr-namespace:Tango.PanelPC.UI"
- xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
- xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
- xmlns:keyboard="clr-namespace:Tango.Touch.Keyboard;assembly=Tango.Touch"
- mc:Ignorable="d"
- d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:LayoutViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.LayoutViewVM}">
-
- <Grid>
- <materialDesign:DrawerHost IsLeftDrawerOpen="{Binding Source={x:Reference MenuToggleButton}, Path=IsChecked}">
- <materialDesign:DrawerHost.LeftDrawerContent>
- <DockPanel LastChildFill="False">
- <StackPanel MinWidth="300" DockPanel.Dock="Top">
- <Grid>
- <ToggleButton Style="{StaticResource MaterialDesignHamburgerToggleButton}"
- HorizontalAlignment="Right" Margin="16"
- IsChecked="{Binding Source={x:Reference MenuToggleButton}, Path=IsChecked, Mode=TwoWay}" />
-
- <StackPanel Margin="5 0 0 0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
- <Image Source="/Images/account.png" RenderOptions.BitmapScalingMode="Fant" VerticalAlignment="Center" Width="50" Height="50"></Image>
- <StackPanel Margin="0 5 0 0">
- <TextBlock FontSize="16" TextTrimming="CharacterEllipsis" MaxWidth="170" FontStyle="Italic" FontWeight="Bold" Margin="10 0 0 0" VerticalAlignment="Center" Text="{Binding AuthenticationProvider.CurrentUser.Contact.FullName}"></TextBlock>
- <TextBlock FontSize="12" TextTrimming="CharacterEllipsis" MaxWidth="170" FontStyle="Italic" Margin="10 5 0 0" VerticalAlignment="Center">
- <Run Text="{Binding AuthenticationProvider.CurrentUser.Organization.Name}"></Run>
- ,
- <Run Text="{Binding AuthenticationProvider.CurrentUser.Roles[0].Name}">
- <Run.ToolTip>
- <ItemsControl ItemsSource="{Binding AuthenticationProvider.CurrentUser.Roles}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal" Margin="2">
- <materialDesign:PackIcon Kind="AccountKey" Width="16" Height="16" />
- <TextBlock Margin="5 0 0 0" Text="{Binding Name}"></TextBlock>
- </StackPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </Run.ToolTip>
- </Run>
- <Run>...</Run>
- </TextBlock>
- </StackPanel>
- </StackPanel>
- </Grid>
- <StackPanel Margin="0 16 0 0">
- <ListBoxItem>
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="PreviewMouseUp">
- <i:InvokeCommandAction Command="{Binding HomeCommand}"></i:InvokeCommandAction>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <StackPanel Orientation="Horizontal">
- <materialDesign:PackIcon VerticalAlignment="Center" Kind="Home" Width="32" Height="32"></materialDesign:PackIcon>
- <TextBlock FontSize="16" VerticalAlignment="Center" Margin="10 0 0 0">Home</TextBlock>
- </StackPanel>
- </ListBoxItem>
- </StackPanel>
- </StackPanel>
-
- <StackPanel DockPanel.Dock="Bottom">
- <Separator Margin="0 10 0 0" Background="Gainsboro" />
- <ListBoxItem>
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="PreviewMouseUp">
- <i:InvokeCommandAction Command="{Binding SignoutCommand}"></i:InvokeCommandAction>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <StackPanel Orientation="Horizontal">
- <materialDesign:PackIcon VerticalAlignment="Center" Kind="Logout" Width="32" Height="32"></materialDesign:PackIcon>
- <TextBlock FontSize="16" VerticalAlignment="Center" Margin="10 0 0 0">Sign out</TextBlock>
- </StackPanel>
- </ListBoxItem>
- </StackPanel>
- </DockPanel>
- </materialDesign:DrawerHost.LeftDrawerContent>
- <DockPanel>
- <materialDesign:ColorZone Height="96" materialDesign:ShadowAssist.ShadowDepth="Depth2" BorderThickness="0 0 0 1" BorderBrush="{StaticResource BorderColorBrush}"
- Foreground="{StaticResource AccentColorBrush}" Background="{StaticResource WhiteColorBrush}" DockPanel.Dock="Top">
- <Border BorderThickness="0 0 0 1" BorderBrush="{StaticResource TangoDividerBrush}">
- <DockPanel>
- <Border Padding="20" BorderThickness="0 0 1 0" BorderBrush="{StaticResource BorderColorBrush}">
- <ToggleButton Width="50" Height="50" Style="{StaticResource MaterialDesignHamburgerToggleButton}" IsChecked="{Binding IsMenuOpened}" x:Name="MenuToggleButton">
- <ToggleButton.Effect>
- <DropShadowEffect ShadowDepth="15" BlurRadius="20" Color="Silver" />
- </ToggleButton.Effect>
- </ToggleButton>
- </Border>
- <Grid>
- <StackPanel HorizontalAlignment="Right" Margin="30 0" Orientation="Horizontal">
- <touch:TouchButton Height="54" FontSize="20" Padding="0" Width="184" CornerRadius="30" BlurRadius="20">
- DYE
- </touch:TouchButton>
- </StackPanel>
- </Grid>
- </DockPanel>
- </Border>
- </materialDesign:ColorZone>
-
- <Grid Background="{StaticResource TangoMidBackgroundBrush}">
- <Grid>
- <keyboard:KeyboardView>
- <controls:NavigationControl x:Name="NavigationControl" x:FieldModifier="public" TransitionAlwaysFades="True" TransitionType="Zoom">
- <local:JobsView controls:NavigationControl.NavigationName="JobsView"></local:JobsView>
- </controls:NavigationControl>
- </keyboard:KeyboardView>
- </Grid>
- </Grid>
- </DockPanel>
- </materialDesign:DrawerHost>
- </Grid>
-</UserControl>
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LayoutView.xaml.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LayoutView.xaml.cs
deleted file mode 100644
index 789386aca..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LayoutView.xaml.cs
+++ /dev/null
@@ -1,28 +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;
-
-namespace Tango.PanelPC.UI.Views
-{
- /// <summary>
- /// Interaction logic for LayoutView.xaml
- /// </summary>
- public partial class LayoutView : UserControl
- {
- public LayoutView()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LoadingView.xaml b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LoadingView.xaml
deleted file mode 100644
index 05d57ecf7..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LoadingView.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-<UserControl x:Class="Tango.PanelPC.UI.Views.LoadingView"
- 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:vm="clr-namespace:Tango.PanelPC.UI.ViewModels"
- xmlns:global="clr-namespace:Tango.PanelPC.UI"
- xmlns:local="clr-namespace:Tango.PanelPC.UI.Views"
- mc:Ignorable="d"
- d:DesignHeight="300" d:DesignWidth="300" d:DataContext="{d:DesignInstance Type=vm:LoadingView, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.LoadingView}">
- <Grid>
-
- </Grid>
-</UserControl>
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LoadingView.xaml.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LoadingView.xaml.cs
deleted file mode 100644
index 612fe308b..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/LoadingView.xaml.cs
+++ /dev/null
@@ -1,28 +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;
-
-namespace Tango.PanelPC.UI.Views
-{
- /// <summary>
- /// Interaction logic for LoadingView.xaml
- /// </summary>
- public partial class LoadingView : UserControl
- {
- public LoadingView()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/MainView.xaml b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/MainView.xaml
deleted file mode 100644
index 8e46a4588..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/MainView.xaml
+++ /dev/null
@@ -1,17 +0,0 @@
-<UserControl x:Class="Tango.PanelPC.UI.Views.MainView"
- 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:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
- xmlns:vm="clr-namespace:Tango.PanelPC.UI.ViewModels"
- xmlns:global="clr-namespace:Tango.PanelPC.UI"
- xmlns:local="clr-namespace:Tango.PanelPC.UI.Views"
- mc:Ignorable="d"
- d:DesignHeight="300" d:DesignWidth="300" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}">
- <Grid>
- <controls:NavigationControl TransitionAlwaysFades="True" TransitionType="Zoom" x:Name="TransitionControl" x:FieldModifier="public">
- <local:LayoutView controls:NavigationControl.NavigationName="LayoutView"></local:LayoutView>
- </controls:NavigationControl>
- </Grid>
-</UserControl>
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/MainView.xaml.cs b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/MainView.xaml.cs
deleted file mode 100644
index 581a4e774..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views/MainView.xaml.cs
+++ /dev/null
@@ -1,28 +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;
-
-namespace Tango.PanelPC.UI.Views
-{
- /// <summary>
- /// Interaction logic for MainView.xaml
- /// </summary>
- public partial class MainView : UserControl
- {
- public MainView()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/packages.config b/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/packages.config
deleted file mode 100644
index e2e2bc482..000000000
--- a/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/packages.config
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<packages>
- <package id="ControlzEx" version="3.0.2.4" targetFramework="net46" />
- <package id="EntityFramework" version="6.0.0" targetFramework="net46" />
- <package id="Expression.Blend.Sdk" version="1.0.2" targetFramework="net46" />
- <package id="FontAwesome.WPF" version="4.7.0.9" targetFramework="net46" />
- <package id="Google.Protobuf" version="3.4.1" targetFramework="net46" />
- <package id="MahApps.Metro" version="1.6.4" targetFramework="net46" />
- <package id="MaterialDesignColors" version="1.1.2" targetFramework="net46" />
- <package id="MaterialDesignThemes" version="2.3.1.953" targetFramework="net46" />
-</packages> \ No newline at end of file