桌面环境:增加环境变量APP并给Paint应用程序增加更多画图工具

This commit is contained in:
2026-03-25 20:08:10 +08:00
parent a0eaf70304
commit a8ac9384c6
11 changed files with 519 additions and 3 deletions

View File

@@ -184,5 +184,27 @@ namespace CMLeonOS
return false;
}
}
public Dictionary<string, string> GetAllVariables()
{
Dictionary<string, string> copy = new Dictionary<string, string>();
foreach (KeyValuePair<string, string> kvp in environmentVariables)
{
copy[kvp.Key] = kvp.Value;
}
return copy;
}
public string[] GetAllVariablesAsLines()
{
string[] lines = new string[environmentVariables.Count];
int index = 0;
foreach (KeyValuePair<string, string> kvp in environmentVariables)
{
lines[index] = kvp.Key + "=" + kvp.Value;
index++;
}
return lines;
}
}
}