using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace HMIControl.HMIEx
{
public class HMITextBox : TextBox, ITagReader, ITagWriter
{
public static readonly DependencyProperty TagReadTextProperty = DependencyProperty.Register("TagReadText", typeof(string), typeof(HMITextBox));
public static readonly DependencyProperty TagWriteTextProperty = DependencyProperty.Register("TagWriteText", typeof(string), typeof(HMITextBox));
///
///Tag Property
///
public string TagReadText
{
get
{
return (string)base.GetValue(TagReadTextProperty);
}
set
{
base.SetValue(TagReadTextProperty, value);
}
}
protected SortedList _dict;
public IDictionary OnTagChangedActions
{
get
{
return _dict;
}
}
public string Node
{
get { return Name; }
}
public IList Children
{
get { return null; }
}
public string TagWriteText
{
get
{
return (string)base.GetValue(TagWriteTextProperty);
}
set
{
base.SetValue(TagWriteTextProperty, value);
}
}
protected Func