Commit 986299e5 lailai.xing

关键字上移与下移后,右边的属性值变化的问题

1 个父辈 00474f0d
......@@ -709,8 +709,19 @@ namespace SmartScan.SetControl.WPF
lines[selectIndex - 1] = startKey;
lines[selectIndex] = endKey;
System.IO.File.WriteAllLines(FilePath.CONFIG_MACRO_KEY, lines);
string[]vlines= System.IO.File.ReadAllLines(FilePath.CONFIG_MACRO_Value);
string startvKey = vlines[selectIndex];
string endvKey = vlines[selectIndex - 1];
vlines[selectIndex - 1] = startvKey;
vlines[selectIndex] = endvKey;
System.IO.File.WriteAllLines(FilePath.CONFIG_MACRO_Value, vlines);
initKey();
// string originalKey
}
//下移事件
//kmon
//2025-6-24
......@@ -726,6 +737,13 @@ namespace SmartScan.SetControl.WPF
lines[selectIndex + 1] = startKey;
lines[selectIndex] = endKey;
System.IO.File.WriteAllLines(FilePath.CONFIG_MACRO_KEY, lines);
string[] vlines = System.IO.File.ReadAllLines(FilePath.CONFIG_MACRO_Value);
string startvKey = vlines[selectIndex];
string endvKey = vlines[selectIndex + 1];
vlines[selectIndex + 1] = startvKey;
vlines[selectIndex] = endvKey;
System.IO.File.WriteAllLines(FilePath.CONFIG_MACRO_Value, vlines);
initKey();
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!