aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views
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/Views
parent157e0685abb2e7b22b6584cdc7d6f5838ed0a808 (diff)
downloadTango-e571f20e27c4fca6bb6efe03d6427a1f332f9830.tar.gz
Tango-e571f20e27c4fca6bb6efe03d6427a1f332f9830.zip
Working on panel pc.
Diffstat (limited to 'Software/Visual_Studio/PanelPC/Tango.PanelPC.UI/Views')
-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
8 files changed, 0 insertions, 312 deletions
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();
- }
- }
-}