mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-04-21 19:24:00 +00:00
桌面环境:增加环境变量APP并给Paint应用程序增加更多画图工具
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user