Änderung

- Export Routine auf static umgestellt
This commit is contained in:
Eugen Höglinger 2021-05-20 13:25:00 +02:00
parent 67af2983c9
commit ed617d9051
10 changed files with 6 additions and 6 deletions

View File

@ -154,7 +154,7 @@ namespace ShowInstalledNXversion
private void buttonShowVersion_Click(object sender, EventArgs e) private void buttonShowVersion_Click(object sender, EventArgs e)
{ {
var wltd = new WriteListToDesktop(InstallationFolder, InstalledNxVersions); WriteListToDesktop.Write(InstallationFolder, InstalledNxVersions);
} }
protected string InstallationFolder { private set; get; } protected string InstallationFolder { private set; get; }

View File

@ -8,9 +8,9 @@ using Eugen.NX;
namespace ShowInstalledNXversion namespace ShowInstalledNXversion
{ {
class WriteListToDesktop public static class WriteListToDesktop
{ {
public WriteListToDesktop(string installationFolder, List<string> verList) public static void Write(string installationFolder, List<string> verList)
{ {
VerList = verList; VerList = verList;
InstallationFolder = installationFolder; InstallationFolder = installationFolder;
@ -25,10 +25,10 @@ namespace ShowInstalledNXversion
File.WriteAllLines(String.Concat(path, "\\", fileName, ".", ext), list); File.WriteAllLines(String.Concat(path, "\\", fileName, ".", ext), list);
} }
protected string InstallationFolder { private set; get; } private static string InstallationFolder { set; get; }
protected List<string> VerList { private set; get; } private static List<string> VerList { set; get; }
private List<string> CreateList() private static List<string> CreateList()
{ {
List<string> list = new List<string>(); List<string> list = new List<string>();
list.Clear(); list.Clear();