aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/EmergencyView.xaml
blob: f2b018bfa0c9951c2edbe5ea974d807a710989d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Tango.Core;

namespace Tango.MachineStudio.Common.Notifications
{
    public class BarItem : ExtendedObject, IDisposable
    {
        private INotificationProvider _notificationProvider;

        public FrameworkElement Element 
class="w"> BarItem(INotificationProvider notificationProvider) { _notificationProvider = notificationProvider; } public BarItem(INotificationProvider notificationProvider, FrameworkElement element) : this(notificationProvider) { Element = element; } /// <summary> /// Removed this item from the queue. /// </summary> public void Pop() { _notificationProvider.PopBarItem(this); } /// <summary> /// Pushes this item to the queue. /// </summary> public void Push() { _notificationProvider.PushBarItem(this); } /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() { Pop(); } } }