|
@@ -36,6 +36,7 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
/// </summary>
|
|
|
private ModuleName _selectedDummyName = ModuleName.Dummy1;
|
|
|
private ModuleName _selectedSrdName = ModuleName.SRD1;
|
|
|
+ private ModuleName _selectedPufName = ModuleName.PUF1;
|
|
|
/// <summary>
|
|
|
/// 输入的Cycle次数
|
|
|
/// </summary>
|
|
@@ -55,7 +56,11 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
/// <summary>
|
|
|
/// 是否选中srd
|
|
|
/// </summary>
|
|
|
- private bool _isSrdSelected = false ;
|
|
|
+ private bool _isSrdSelected = false ;
|
|
|
+ /// <summary>
|
|
|
+ /// 是否选中puf
|
|
|
+ /// </summary>
|
|
|
+ private bool _isPufSelected = false;
|
|
|
#region 系统数据
|
|
|
/// <summary>
|
|
|
/// 定时器
|
|
@@ -92,6 +97,11 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
{
|
|
|
get { return _selectedSrdName; }
|
|
|
set { SetProperty(ref _selectedSrdName, value); }
|
|
|
+ }
|
|
|
+ public ModuleName SelectedPufName
|
|
|
+ {
|
|
|
+ get { return _selectedPufName; }
|
|
|
+ set { SetProperty(ref _selectedPufName, value); }
|
|
|
}
|
|
|
public int InPutCycleTimes
|
|
|
{
|
|
@@ -118,6 +128,11 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
{
|
|
|
get { return _isSrdSelected; }
|
|
|
set { SetProperty(ref _isSrdSelected, value); }
|
|
|
+ }
|
|
|
+ public bool IsPufSelected
|
|
|
+ {
|
|
|
+ get { return _isPufSelected; }
|
|
|
+ set { SetProperty(ref _isPufSelected, value); }
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
@@ -130,6 +145,8 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
public ICommand LPChangeCommand { get; set; }
|
|
|
|
|
|
public ICommand AlignerChangeCommand { get; set; }
|
|
|
+
|
|
|
+ public ICommand PufChangeCommand { get; set; }
|
|
|
|
|
|
public ICommand DummyChangeCommand { get; set; }
|
|
|
|
|
@@ -145,6 +162,7 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
RobotCycleAbortCommand = new DelegateCommand<object>(RobotCycleAbortAction);
|
|
|
LPChangeCommand = new DelegateCommand<object>(LPChangeAction);
|
|
|
AlignerChangeCommand = new DelegateCommand<object>(AlignerChangeAction);
|
|
|
+ PufChangeCommand = new DelegateCommand<object>(PufChangeAction);
|
|
|
DummyChangeCommand = new DelegateCommand<object>(DummyChangeAction);
|
|
|
SrdChangeCommand = new DelegateCommand<object>(SrdChangeAction);
|
|
|
}
|
|
@@ -158,15 +176,23 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
if (!IsSrdSelected)
|
|
|
{
|
|
|
SelectedSrdName = ModuleName.Unknown;
|
|
|
+ }
|
|
|
+ if (!IsPufSelected)
|
|
|
+ {
|
|
|
+ SelectedPufName = ModuleName.Unknown;
|
|
|
}
|
|
|
- if(!IsDummySelected && !IsSrdSelected)
|
|
|
+ if (!IsDummySelected && !IsSrdSelected)
|
|
|
{
|
|
|
MessageBox.Show("Selected at least on module between srd and dummy!");
|
|
|
return;
|
|
|
}
|
|
|
List<string> sequences = new List<string>();
|
|
|
sequences.Add(SelectedLPName.ToString());
|
|
|
- sequences.Add(SelectedAlignerName.ToString());
|
|
|
+ sequences.Add(SelectedAlignerName.ToString());
|
|
|
+ if (SelectedPufName != ModuleName.Unknown)
|
|
|
+ {
|
|
|
+ sequences.Add(SelectedPufName.ToString());
|
|
|
+ }
|
|
|
if (SelectedSrdName != ModuleName.Unknown)
|
|
|
{
|
|
|
sequences.Add(SelectedSrdName.ToString());
|
|
@@ -200,6 +226,10 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
private void AlignerChangeAction(object param)
|
|
|
{
|
|
|
|
|
|
+ }
|
|
|
+ private void PufChangeAction(object param)
|
|
|
+ {
|
|
|
+
|
|
|
}
|
|
|
private void DummyChangeAction(object param)
|
|
|
{
|