[UI.Client]

优化WaferInfo.cs格式。
This commit is contained in:
auvkk 2023-11-23 10:55:09 +08:00
parent 2cdf7624e0
commit dff6e7d809
1 changed files with 38 additions and 43 deletions

View File

@ -6,39 +6,39 @@ namespace MECF.Framework.UI.Client.ClientBase
{
public class WaferInfo : PropertyChangedBase
{
private int _WaferStatus = 0; // WaferStatus.Empty;
private int _waferStatus = 0; // WaferStatus.Empty;
public int WaferStatus
{
get { return _WaferStatus; }
set { _WaferStatus = value; NotifyOfPropertyChange("WaferStatus"); }
get => _waferStatus;
set { _waferStatus = value; NotifyOfPropertyChange(); }
}
private int _WaferTrayStatus = 0;
private int _waferTrayStatus = 0;
public int WaferTrayStatus
{
get { return _WaferTrayStatus; }
set { _WaferTrayStatus = value; NotifyOfPropertyChange("WaferTrayStatus"); }
get => _waferTrayStatus;
set { _waferTrayStatus = value; NotifyOfPropertyChange(); }
}
private int _TrayProcessCount = 0;
private int _trayProcessCount = 0;
public int TrayProcessCount
{
get { return _TrayProcessCount; }
set { _TrayProcessCount = value; NotifyOfPropertyChange("TrayProcessCount"); }
get => _trayProcessCount;
set { _trayProcessCount = value; NotifyOfPropertyChange(); }
}
private string _RecipeName;
private string _recipeName;
public string RecipeName
{
get { return _RecipeName; }
set { _RecipeName = value; NotifyOfPropertyChange("RecipeName"); }
get => _recipeName;
set { _recipeName = value; NotifyOfPropertyChange(); }
}
private bool _isTrayExhausted;
public bool IsTrayExhausted
{
get { return _isTrayExhausted; }
set { _isTrayExhausted = value; NotifyOfPropertyChange("IsTrayExhausted"); }
get => _isTrayExhausted;
set { _isTrayExhausted = value; NotifyOfPropertyChange(); }
}
/// <summary>
@ -47,8 +47,8 @@ namespace MECF.Framework.UI.Client.ClientBase
private int _slotID;
public int SlotID
{
get { return _slotID; }
set { _slotID = value; NotifyOfPropertyChange("SlotID"); }
get => _slotID;
set { _slotID = value; NotifyOfPropertyChange(); }
}
/// <summary>
@ -57,75 +57,70 @@ namespace MECF.Framework.UI.Client.ClientBase
private int _slotIndex;
public int SlotIndex
{
get { return _slotIndex; }
set { _slotIndex = value; NotifyOfPropertyChange("SlotIndex"); }
get => _slotIndex;
set { _slotIndex = value; NotifyOfPropertyChange(); }
}
private string _moduleID;
public string ModuleID
{
get { return _moduleID; }
set { _moduleID = value; NotifyOfPropertyChange("ModuleID"); }
get => _moduleID;
set { _moduleID = value; NotifyOfPropertyChange(); }
}
private string _waferid;
private string _waferId;
public string WaferID
{
get { return _waferid; }
set { _waferid = value; NotifyOfPropertyChange("WaferID"); }
get => _waferId;
set { _waferId = value; NotifyOfPropertyChange(); }
}
private string _sourceName;
public string SourceName
{
get { return _sourceName; }
set { _sourceName = value; NotifyOfPropertyChange("SourceName"); }
get => _sourceName;
set { _sourceName = value; NotifyOfPropertyChange(); }
}
private string _lotID;
public string LotID
{
get { return _lotID; }
set { _lotID = value; NotifyOfPropertyChange("LotID"); }
get => _lotID;
set { _lotID = value; NotifyOfPropertyChange(); }
}
private string _sequenceName = string.Empty;
public string SequenceName
{
get { return _sequenceName; }
set { _sequenceName = value; NotifyOfPropertyChange("SequenceName"); }
get => _sequenceName;
set { _sequenceName = value; NotifyOfPropertyChange(); }
}
private string _originName = string.Empty;
public string OriginName
{
get { return _originName; }
set { _originName = value; NotifyOfPropertyChange("OriginName"); }
get => _originName;
set { _originName = value; NotifyOfPropertyChange(); }
}
private ToolTip _toolTip;
public ToolTip ToolTip
{
get { return _toolTip; }
set { _toolTip = value; NotifyOfPropertyChange("ToolTip"); }
get => _toolTip;
set { _toolTip = value; NotifyOfPropertyChange(); }
}
private bool isChecked;
private bool _isChecked;
public bool IsChecked
{
get
{ return isChecked; }
get => _isChecked;
set
{
isChecked = value;
NotifyOfPropertyChange("IsChecked");
_isChecked = value;
NotifyOfPropertyChange();
}
}
public Visibility IsVisibility
{
get
{ return _WaferStatus > 0 ? Visibility.Visible : Visibility.Hidden; }
}
public Visibility IsVisibility => _waferStatus > 0 ? Visibility.Visible : Visibility.Hidden;
}
}