using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using Tango.SharedUI.Helpers;
namespace Tango.MachineStudio.Technician.TechItems
{
[TechItem(25,true)]
public class TextItem : TechItem
{
private String _text;
public String Text
{
get { return _text; }
set { _text = value; RaisePropertyChangedAuto(); }
}
///
/// Initializes a new instance of the class.
///
public TextItem() : base()
{
Name = "Static Text";
Description = "Static Text";
Text = "Static Text";
Image = ResourceHelper.GetImageFromResources("Images/text.png");
Color = Colors.DodgerBlue;
}
///
/// Initializes a new instance of the class.
///
/// The object.
public TextItem(Object obj) : this()
{
}
public override TechItem Clone()
{
TextItem cloned = base.Clone() as TextItem;
cloned.Text = Text;
return cloned;
}
}
}