aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2018-07-14 21:27:57 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2018-07-14 21:27:57 +0300
commit64bcf92608faae31b7cd31ac3da5c7d1d7ebcd0b (patch)
tree2dea80413ecffe5aa5d44b1d73d98f1f735e5916 /Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems
parent7f20e0b3199b469197364cb72436a4843b68b114 (diff)
downloadTango-64bcf92608faae31b7cd31ac3da5c7d1d7ebcd0b.tar.gz
Tango-64bcf92608faae31b7cd31ac3da5c7d1d7ebcd0b.zip
Implemented job completed notification item.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotification.cs34
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.xaml15
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.xaml.cs28
3 files changed, 0 insertions, 77 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotification.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotification.cs
deleted file mode 100644
index 49a0c03eb..000000000
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotification.cs
+++ /dev/null
@@ -1,34 +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.PPC.Common.Notifications;
-
-namespace Tango.PPC.UI.Notifications.NotificationItems
-{
- public class EmptyCartridgesNotification : NotificationItem
- {
- public List<LiquidType> LiquidTypes { get; set; }
-
- public EmptyCartridgesNotification()
- {
- Message = "Cartridges are empty, please replace cartridges";
- }
-
- public EmptyCartridgesNotification(IEnumerable<LiquidType> liquidTypes) : this()
- {
- LiquidTypes = liquidTypes.ToList();
- }
-
- public override Type ViewType
- {
- get
- {
- return typeof(EmptyCartridgesNotificationView);
- }
- }
- }
-}
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.xaml
deleted file mode 100644
index ccb6618e7..000000000
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.xaml
+++ /dev/null
@@ -1,15 +0,0 @@
-<UserControl x:Class="Tango.PPC.UI.Notifications.NotificationItems.EmptyCartridgesNotificationView"
- 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.PPC.UI.Notifications.NotificationItems"
- mc:Ignorable="d"
- d:DesignHeight="60" d:DesignWidth="400" MinHeight="50" Background="Transparent" Foreground="#FF7777" d:DataContext="{d:DesignInstance Type=local:EmptyCartridgesNotification, IsDesignTimeCreatable=True}">
- <Grid Margin="10">
- <DockPanel>
- <Image Source="/Images/warning-test.png" Margin="5" />
- <TextBlock Margin="10 0 0 0" VerticalAlignment="Center" TextWrapping="Wrap" Text="{Binding Message}"></TextBlock>
- </DockPanel>
- </Grid>
-</UserControl>
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.xaml.cs
deleted file mode 100644
index 5fab4ab44..000000000
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.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.PPC.UI.Notifications.NotificationItems
-{
- /// <summary>
- /// Interaction logic for EmptyCartridgesNotification.xaml
- /// </summary>
- public partial class EmptyCartridgesNotificationView : UserControl
- {
- public EmptyCartridgesNotificationView()
- {
- InitializeComponent();
- }
- }
-}