示例#1
0
 public void OnStringChange(string value)
 {
     if (value != null)
     {
         lineValue = YangMenuHelper.ReplaceKVValue(lineValue, value);
     }
     WriteToConfig();
 }
示例#2
0
 public void OnInputChange()
 {
     //string nowValue = YangMenuHelper.GetXMLValue(lineValue);
     //int now = int.Parse(nowValue);
     //lineValue = YangMenuHelper.ReplaceXMLItemValue(lineValue, (now + addValue) + "");
     //WriteToConfig();
     lineValue = YangMenuHelper.ReplaceKVValue(lineValue, xmlValue);
     WriteToConfig();
 }
示例#3
0
 public void OnBoolChange()
 {
     if (xmlValue.ToLower().Equals("true"))
     {
         xmlValue  = "false";
         lineValue = YangMenuHelper.ReplaceKVValue(lineValue, xmlValue);
     }
     else
     {
         xmlValue  = "true";
         lineValue = YangMenuHelper.ReplaceKVValue(lineValue, xmlValue);
     }
     WriteToConfig();
 }