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