aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Windows/ExceptionResolutions.cs
blob: e27a84c3b3ab49c315f0e0d6a2ba1a6b3ce7ce9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.MachineStudio.UI.Windows
{
    public enum ExceptionResolutions
    {
        Shutdown,
        Restart,
        Ignore,
        Report
    }
}
gic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Editors;
using Tango.SharedUI;

namespace Tango.MachineStudio.Technician.ViewModels
{
    public class MachineTechTabVM : ViewModel
    {
        private ElementsEditor _editor;

        public ElementsEditor Editor
        {
            get { return _editor; }
            set { _editor = value; RaisePropertyChangedAuto(); }
        }

        private String _name;
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        public String Name
        {
            get { return _name; }
            set { _name = value; RaisePropertyChangedAuto(); }
        }

        private bool _isSelected;
        /// <summary>
        /// Gets or sets a value indicating whether this instance is selected.
        /// </summary>
        public bool IsSelected
        {
            get { return _isSelected; }
            set { _isSelected = value; RaisePropertyChangedAuto(); }
        }


        private ObservableCollection<IElementEditor> _elements;
        /// <summary>
        /// Gets or sets the visual elements.
        /// </summary>
        public ObservableCollection<IElementEditor> Elements
        {
            get { return _elements; }
            set { _elements = value; RaisePropertyChangedAuto(); }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MachineTechTabVM"/> class.
        /// </summary>
        public MachineTechTabVM()
        {
            Name = "untitled";
            Elements = new ObservableCollection<IElementEditor>();
        }
    }
}