fixed gui

This commit is contained in:
MistEO
2021-07-22 02:00:51 +08:00
parent d735404766
commit 2a89b01c1b
3 changed files with 7 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
namespace asst {
const static std::string Version = "release.beta.01";
const static std::string Version = "release.beta.01.2";
/************ Type ************/

View File

@@ -116,6 +116,7 @@ void Assistance::stop(bool block)
bool Assistance::setParam(const std::string& type, const std::string& param, const std::string& value)
{
DebugTraceFunction;
DebugTrace("SetParam |", type, param, value);
return Configer::setParam(type, param, value);
}

View File

@@ -89,7 +89,7 @@ namespace MeoAsstGui
private void textBox_useStone_TextChanged(object sender, TextChangedEventArgs e)
{
if (checkBox_useMedicine.IsChecked == true)
if (checkBox_useStone.IsChecked == true)
{
String text = textBox_useStone.Text != String.Empty ? textBox_useStone.Text : "0";
AsstSetParam(p_asst, "task.maxTimes", "StoneConfirm", text);
@@ -98,13 +98,16 @@ namespace MeoAsstGui
private void checkBox_useStone_Checked(object sender, RoutedEventArgs e)
{
if (checkBox_useMedicine.IsChecked == true)
if (checkBox_useStone.IsChecked == true)
{
AsstSetParam(p_asst, "task.type", "UseStone", "doNothing");
String text = textBox_useStone.Text != String.Empty ? textBox_useStone.Text : "0";
AsstSetParam(p_asst, "task.maxTimes", "StoneConfirm", text);
}
else
{
AsstSetParam(p_asst, "task.type", "UseStone", "stop");
AsstSetParam(p_asst, "task.maxTimes", "StoneConfirm", "0");
}
}