遙控器調整
This commit is contained in:
parent
7864cdb4c6
commit
66fdbb7680
@ -38,6 +38,9 @@ namespace DualScreenDemo
|
||||
break;
|
||||
case "A263A4":
|
||||
ClearDisplay();
|
||||
_wrongInputCountfor62 = 0; // 重置計數器
|
||||
_wrongInputCountfor61 = 0; // 重置計數器
|
||||
_indataHistory.Clear(); // 清空歷史紀錄
|
||||
break;
|
||||
case "A268A4":
|
||||
OverlayForm.MainForm.currentPage = 1;
|
||||
@ -340,11 +343,13 @@ namespace DualScreenDemo
|
||||
_wrongInputCountfor61++;
|
||||
if(_wrongInputCountfor61 <= MaxWrongLimit)
|
||||
{
|
||||
OverlayForm.MainForm.displayLabel.Text += "#";
|
||||
string old ="";
|
||||
OverlayForm.MainForm.displayLabel.Text = check_control(old);
|
||||
}
|
||||
else
|
||||
{
|
||||
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
||||
_indataHistory.Clear(); // 清空歷史紀錄
|
||||
_wrongInputCountfor61 = 0; // 重置計數器
|
||||
}
|
||||
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
||||
@ -368,11 +373,13 @@ namespace DualScreenDemo
|
||||
_wrongInputCountfor61++;
|
||||
if(_wrongInputCountfor61 <= MaxWrongLimit)
|
||||
{
|
||||
OverlayForm.MainForm.displayLabel.Text += "#";
|
||||
string old ="";
|
||||
OverlayForm.MainForm.displayLabel.Text = check_control(old);
|
||||
}
|
||||
else
|
||||
{
|
||||
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
||||
_indataHistory.Clear(); // 清空歷史紀錄
|
||||
_wrongInputCountfor61 = 0; // 重置計數器
|
||||
}
|
||||
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
||||
@ -381,6 +388,16 @@ namespace DualScreenDemo
|
||||
}
|
||||
}
|
||||
}
|
||||
private string check_control(string old){
|
||||
foreach(string item in _indataHistory)
|
||||
{
|
||||
if(item == "A261A4")
|
||||
old += "#";
|
||||
else if(item == "A262A4")
|
||||
old += "*";
|
||||
}
|
||||
return old;
|
||||
}
|
||||
|
||||
|
||||
private void HandleInputB()
|
||||
@ -430,11 +447,13 @@ namespace DualScreenDemo
|
||||
_wrongInputCountfor62++;
|
||||
if(_wrongInputCountfor62 <= MaxWrongLimit)
|
||||
{
|
||||
OverlayForm.MainForm.displayLabel.Text += "*";
|
||||
string old ="";
|
||||
OverlayForm.MainForm.displayLabel.Text = check_control(old);
|
||||
}
|
||||
else
|
||||
{
|
||||
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
||||
_indataHistory.Clear(); // 清空歷史紀錄
|
||||
_wrongInputCountfor62 = 0; // 重置計數器
|
||||
}
|
||||
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
||||
@ -456,11 +475,13 @@ namespace DualScreenDemo
|
||||
_wrongInputCountfor62++;
|
||||
if(_wrongInputCountfor62 <= MaxWrongLimit)
|
||||
{
|
||||
OverlayForm.MainForm.displayLabel.Text += "*";
|
||||
string old ="";
|
||||
OverlayForm.MainForm.displayLabel.Text = check_control(old);
|
||||
}
|
||||
else
|
||||
{
|
||||
OverlayForm.MainForm.displayLabel.Text = "輸入錯誤!!!";
|
||||
_indataHistory.Clear(); // 清空歷史紀錄
|
||||
_wrongInputCountfor62 = 0; // 重置計數器
|
||||
}
|
||||
OverlayForm.MainForm.nextSongLabel.Visible = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user