public void OnStringChange(string value) { if (value != null) { lineValue = YangMenuHelper.ReplaceKVValue(lineValue, value); } WriteToConfig(); }
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(); }
public void OnBoolChange() { if (xmlValue.ToLower().Equals("true")) { xmlValue = "false"; lineValue = YangMenuHelper.ReplaceKVValue(lineValue, xmlValue); } else { xmlValue = "true"; lineValue = YangMenuHelper.ReplaceKVValue(lineValue, xmlValue); } WriteToConfig(); }