Технический форум по робототехнике.
public int[] baudRates = { 300, 600, 1200, 1800, 2400, 4800, 7200, 9600, 14400, 19200, 38400, 57600, 115200, 128000 };
public int[] dataBits = { 5, 6, 7, 8 };
...
new public string PortName
{
get { lock (locker) return base.PortName; }
set
{
lock (locker)
{
if (!IsOpen && null != value && "" != value) base.PortName = value;
NotifyPropertyChanged("PortName");
}
}
}
public override bool IsOpen
{
get { return base.IsOpen;}
private set
{
base.IsOpen = value;
NotifyPropertyChanged("IsOpend");
}
}
new public bool IsOpen
{
get
{
lock(locker)
{
if (_lastIsOpen != base.IsOpen)
{
_lastIsOpen = base.IsOpen;
NotifyPropertyChanged("IsOpend");
}
return base.IsOpen;
}
}
}
private set
{
.....
NotifyPropertyChanged("IsOpend");
}