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>();
}
}
}