aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Publisher.CLI/packages.config
blob: 011bf97c7ad5a41ea6990713c4a54b379678cec9 (plain)
1
2
3
4
<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="CommandLineParser" version="1.9.71" targetFramework="net461" />
</packages>
f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
using System.Windows.Media;
using Tango.Core;

namespace Tango.FSE.Common.Notifications
{
    /// <summary>
    /// Represents a base notification item.
    /// </summary>
    public abstract class NotificationItem : ItemBase
    {
        public enum NotificationPriority
        {
            Low,
            Normal,
            High,
            VeryHigh,
            Critical,
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="NotificationItem"/> class.
        /// </summary>
        public NotificationItem() : base()
        {
            CanClose = true;
            Priority = NotificationPriority.Normal;
        }

        private bool _isExpanded;
        /// <summary>
        /// Gets or sets a value indicating whether the notification panel is expanded.
        /// </summary>
        public bool IsExpanded
        {
            get { return _isExpanded; }
            set { _isExpanded = value; RaisePropertyChangedAuto(); }
        }

        private bool _canClose;
        /// <summary>
        /// Gets or sets a value indicating whether this instance can close.
        /// </summary>
        public bool CanClose
        {
            get { return _canClose; }
            set { _canClose = value; RaisePropertyChangedAuto(); }
        }

        /// <summary>
        /// Gets or sets the notification priority.
        /// </summary>
        public NotificationPriority Priority { get; set; }

        /// <summary>
        /// Called when the item has been pressed.
        /// </summary>
        protected override void OnPreesed()
        {
            base.OnPreesed();

            if (CanClose)
            {
                Close();
            }
        }
    }
}