diff --git a/.vs/ShowInstalledNXversion.git/v16/.suo b/.vs/ShowInstalledNXversion.git/v16/.suo index 4354531..abac590 100644 Binary files a/.vs/ShowInstalledNXversion.git/v16/.suo and b/.vs/ShowInstalledNXversion.git/v16/.suo differ diff --git a/ShowInstalledNXversion/Form1.Designer.cs b/ShowInstalledNXversion/Form1.Designer.cs index f4f48dc..644fabd 100644 --- a/ShowInstalledNXversion/Form1.Designer.cs +++ b/ShowInstalledNXversion/Form1.Designer.cs @@ -39,7 +39,8 @@ namespace ShowInstalledNXversion this.groupBoxResult = new System.Windows.Forms.GroupBox(); this.textBoxInstalledNxVersion = new System.Windows.Forms.TextBox(); this.labelInstalledNxVersion = new System.Windows.Forms.Label(); - this.buttonShowVersion = new System.Windows.Forms.Button(); + this.buttonExportVersion = new System.Windows.Forms.Button(); + this.buttonAbout = new System.Windows.Forms.Button(); this.groupBoxSelect.SuspendLayout(); this.groupBoxResult.SuspendLayout(); this.SuspendLayout(); @@ -49,9 +50,9 @@ namespace ShowInstalledNXversion this.labelInstallationFolder.AutoSize = true; this.labelInstallationFolder.Location = new System.Drawing.Point(6, 22); this.labelInstallationFolder.Name = "labelInstallationFolder"; - this.labelInstallationFolder.Size = new System.Drawing.Size(89, 13); + this.labelInstallationFolder.Size = new System.Drawing.Size(115, 13); this.labelInstallationFolder.TabIndex = 0; - this.labelInstallationFolder.Text = "Installation Folder"; + this.labelInstallationFolder.Text = "Installationsverzeichnis"; // // groupBoxSelect // @@ -62,17 +63,17 @@ namespace ShowInstalledNXversion this.groupBoxSelect.Controls.Add(this.labelInstallationFolder); this.groupBoxSelect.Location = new System.Drawing.Point(12, 12); this.groupBoxSelect.Name = "groupBoxSelect"; - this.groupBoxSelect.Size = new System.Drawing.Size(369, 72); + this.groupBoxSelect.Size = new System.Drawing.Size(381, 72); this.groupBoxSelect.TabIndex = 1; this.groupBoxSelect.TabStop = false; - this.groupBoxSelect.Text = "Select"; + this.groupBoxSelect.Text = "Auswahl"; // // comboBoxInstalledNX // this.comboBoxInstalledNX.FormattingEnabled = true; - this.comboBoxInstalledNX.Location = new System.Drawing.Point(112, 45); + this.comboBoxInstalledNX.Location = new System.Drawing.Point(127, 45); this.comboBoxInstalledNX.Name = "comboBoxInstalledNX"; - this.comboBoxInstalledNX.Size = new System.Drawing.Size(250, 21); + this.comboBoxInstalledNX.Size = new System.Drawing.Size(247, 21); this.comboBoxInstalledNX.TabIndex = 5; this.comboBoxInstalledNX.SelectedIndexChanged += new System.EventHandler(this.comboBoxInstalledNX_SelectedIndexChanged); // @@ -87,7 +88,7 @@ namespace ShowInstalledNXversion // // buttonInstallationFolder // - this.buttonInstallationFolder.Location = new System.Drawing.Point(288, 17); + this.buttonInstallationFolder.Location = new System.Drawing.Point(300, 17); this.buttonInstallationFolder.Name = "buttonInstallationFolder"; this.buttonInstallationFolder.Size = new System.Drawing.Size(75, 23); this.buttonInstallationFolder.TabIndex = 2; @@ -97,9 +98,9 @@ namespace ShowInstalledNXversion // // textBoxInstallationFolder // - this.textBoxInstallationFolder.Location = new System.Drawing.Point(112, 19); + this.textBoxInstallationFolder.Location = new System.Drawing.Point(127, 19); this.textBoxInstallationFolder.Name = "textBoxInstallationFolder"; - this.textBoxInstallationFolder.Size = new System.Drawing.Size(170, 20); + this.textBoxInstallationFolder.Size = new System.Drawing.Size(167, 20); this.textBoxInstallationFolder.TabIndex = 1; this.textBoxInstallationFolder.Text = "C:\\CAD"; this.textBoxInstallationFolder.TextChanged += new System.EventHandler(this.textBoxInstallationFolder_TextChanged); @@ -111,17 +112,17 @@ namespace ShowInstalledNXversion this.groupBoxResult.Controls.Add(this.labelInstalledNxVersion); this.groupBoxResult.Location = new System.Drawing.Point(12, 90); this.groupBoxResult.Name = "groupBoxResult"; - this.groupBoxResult.Size = new System.Drawing.Size(368, 46); + this.groupBoxResult.Size = new System.Drawing.Size(380, 46); this.groupBoxResult.TabIndex = 2; this.groupBoxResult.TabStop = false; - this.groupBoxResult.Text = "Result"; + this.groupBoxResult.Text = "Ergebnis"; // // textBoxInstalledNxVersion // - this.textBoxInstalledNxVersion.Location = new System.Drawing.Point(111, 20); + this.textBoxInstalledNxVersion.Location = new System.Drawing.Point(127, 20); this.textBoxInstalledNxVersion.Name = "textBoxInstalledNxVersion"; this.textBoxInstalledNxVersion.ReadOnly = true; - this.textBoxInstalledNxVersion.Size = new System.Drawing.Size(251, 20); + this.textBoxInstalledNxVersion.Size = new System.Drawing.Size(247, 20); this.textBoxInstalledNxVersion.TabIndex = 1; // // labelInstalledNxVersion @@ -129,26 +130,37 @@ namespace ShowInstalledNXversion this.labelInstalledNxVersion.AutoSize = true; this.labelInstalledNxVersion.Location = new System.Drawing.Point(6, 23); this.labelInstalledNxVersion.Name = "labelInstalledNxVersion"; - this.labelInstalledNxVersion.Size = new System.Drawing.Size(102, 13); + this.labelInstalledNxVersion.Size = new System.Drawing.Size(110, 13); this.labelInstalledNxVersion.TabIndex = 0; - this.labelInstalledNxVersion.Text = "Installed NX Version"; + this.labelInstalledNxVersion.Text = "Installierte NX Version"; // - // buttonShowVersion + // buttonExportVersion // - this.buttonShowVersion.Location = new System.Drawing.Point(12, 143); - this.buttonShowVersion.Name = "buttonShowVersion"; - this.buttonShowVersion.Size = new System.Drawing.Size(368, 23); - this.buttonShowVersion.TabIndex = 3; - this.buttonShowVersion.Text = "Export all NX installation to \'Installed NX-Versions.txt\' on the Desktop"; - this.buttonShowVersion.UseVisualStyleBackColor = true; - this.buttonShowVersion.Click += new System.EventHandler(this.buttonShowVersion_Click); + this.buttonExportVersion.Location = new System.Drawing.Point(12, 143); + this.buttonExportVersion.Name = "buttonExportVersion"; + this.buttonExportVersion.Size = new System.Drawing.Size(336, 23); + this.buttonExportVersion.TabIndex = 3; + this.buttonExportVersion.Text = "Exportiere alle Installatione in \'InstalledNX-Versions.txt\' am Desktop"; + this.buttonExportVersion.UseVisualStyleBackColor = true; + this.buttonExportVersion.Click += new System.EventHandler(this.buttonExportVersion_Click); + // + // buttonAbout + // + this.buttonAbout.Location = new System.Drawing.Point(354, 143); + this.buttonAbout.Name = "buttonAbout"; + this.buttonAbout.Size = new System.Drawing.Size(38, 23); + this.buttonAbout.TabIndex = 4; + this.buttonAbout.Text = "Über"; + this.buttonAbout.UseVisualStyleBackColor = true; + this.buttonAbout.Click += new System.EventHandler(this.buttonAbout_Click); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(392, 178); - this.Controls.Add(this.buttonShowVersion); + this.ClientSize = new System.Drawing.Size(404, 178); + this.Controls.Add(this.buttonAbout); + this.Controls.Add(this.buttonExportVersion); this.Controls.Add(this.groupBoxResult); this.Controls.Add(this.groupBoxSelect); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; @@ -175,8 +187,9 @@ namespace ShowInstalledNXversion private System.Windows.Forms.GroupBox groupBoxResult; private System.Windows.Forms.TextBox textBoxInstalledNxVersion; private System.Windows.Forms.Label labelInstalledNxVersion; - private System.Windows.Forms.Button buttonShowVersion; + private System.Windows.Forms.Button buttonExportVersion; private System.Windows.Forms.ComboBox comboBoxInstalledNX; + private System.Windows.Forms.Button buttonAbout; } } diff --git a/ShowInstalledNXversion/Form1.cs b/ShowInstalledNXversion/Form1.cs index a9e967f..266f29a 100644 --- a/ShowInstalledNXversion/Form1.cs +++ b/ShowInstalledNXversion/Form1.cs @@ -1,17 +1,11 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using Eugen.ESystem; -using Eugen.ESystem.IO; +using Eugen.ESystem.IO; +using Eugen.ESystem.Windows.Forms; using Eugen.NX; +using System; +using System.Collections.Generic; +using System.IO; +using System.Reflection; +using System.Windows.Forms; namespace ShowInstalledNXversion { @@ -152,11 +146,18 @@ namespace ShowInstalledNXversion ShowVersion(); } - private void buttonShowVersion_Click(object sender, EventArgs e) + private void buttonExportVersion_Click(object sender, EventArgs e) { WriteListToDesktop.Write(InstallationFolder, InstalledNxVersions); } + private void buttonAbout_Click(object sender, EventArgs e) + { + //Zeigt das 'AboutBox' Fenster an + var about = new AboutBox(ProgramName, ProgramVersion, Copyright, true, 550, 400); + about.ShowDialog(); + } + protected string InstallationFolder { private set; get; } protected List InstalledNxVersions { private set; get; } protected string NxVersion { private set; get; } diff --git a/ShowInstalledNXversion/ShowInstalledNXversion.csproj b/ShowInstalledNXversion/ShowInstalledNXversion.csproj index a9aca1f..83fba69 100644 --- a/ShowInstalledNXversion/ShowInstalledNXversion.csproj +++ b/ShowInstalledNXversion/ShowInstalledNXversion.csproj @@ -33,6 +33,9 @@ 4 + + ..\..\..\_DLL\AboutBox.git\AboutBox\bin\Debug\heabox.dll + ..\..\..\_DLL\NxVersion.git\NxVersion\bin\Debug\henxver.dll diff --git a/ShowInstalledNXversion/WriteListToDesktop.cs b/ShowInstalledNXversion/WriteListToDesktop.cs index d82a0d3..d541636 100644 --- a/ShowInstalledNXversion/WriteListToDesktop.cs +++ b/ShowInstalledNXversion/WriteListToDesktop.cs @@ -15,7 +15,7 @@ namespace ShowInstalledNXversion VerList = verList; InstallationFolder = installationFolder; - string fileName = "Installed NX-Versions"; + string fileName = "InstalledNX-Versions"; string path = String.Concat(Environment.GetEnvironmentVariable("OneDrive"), "\\Desktop"); string ext = "txt"; diff --git a/ShowInstalledNXversion/bin/Debug/NxVersion.dll b/ShowInstalledNXversion/bin/Debug/NxVersion.dll deleted file mode 100644 index 4ba09c0..0000000 Binary files a/ShowInstalledNXversion/bin/Debug/NxVersion.dll and /dev/null differ diff --git a/ShowInstalledNXversion/bin/Debug/ShowInstalledNXversion.exe b/ShowInstalledNXversion/bin/Debug/ShowInstalledNXversion.exe index 5aadea8..dfdafda 100644 Binary files a/ShowInstalledNXversion/bin/Debug/ShowInstalledNXversion.exe and b/ShowInstalledNXversion/bin/Debug/ShowInstalledNXversion.exe differ diff --git a/ShowInstalledNXversion/bin/Debug/ShowInstalledNXversion.pdb b/ShowInstalledNXversion/bin/Debug/ShowInstalledNXversion.pdb index e5df515..36601e4 100644 Binary files a/ShowInstalledNXversion/bin/Debug/ShowInstalledNXversion.pdb and b/ShowInstalledNXversion/bin/Debug/ShowInstalledNXversion.pdb differ diff --git a/ShowInstalledNXversion/bin/Debug/de/heabox.resources.dll b/ShowInstalledNXversion/bin/Debug/de/heabox.resources.dll new file mode 100644 index 0000000..ab00c66 Binary files /dev/null and b/ShowInstalledNXversion/bin/Debug/de/heabox.resources.dll differ diff --git a/ShowInstalledNXversion/bin/Debug/en/heabox.resources.dll b/ShowInstalledNXversion/bin/Debug/en/heabox.resources.dll new file mode 100644 index 0000000..f57a07f Binary files /dev/null and b/ShowInstalledNXversion/bin/Debug/en/heabox.resources.dll differ diff --git a/ShowInstalledNXversion/bin/Debug/heabox.dll b/ShowInstalledNXversion/bin/Debug/heabox.dll new file mode 100644 index 0000000..0a86c38 Binary files /dev/null and b/ShowInstalledNXversion/bin/Debug/heabox.dll differ diff --git a/ShowInstalledNXversion/bin/Debug/heabox.pdb b/ShowInstalledNXversion/bin/Debug/heabox.pdb new file mode 100644 index 0000000..64ce1af Binary files /dev/null and b/ShowInstalledNXversion/bin/Debug/heabox.pdb differ diff --git a/ShowInstalledNXversion/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ShowInstalledNXversion/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 856b7ac..af796ef 100644 Binary files a/ShowInstalledNXversion/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/ShowInstalledNXversion/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.Form1.resources b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.Form1.resources index 6c05a97..a33c3af 100644 Binary files a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.Form1.resources and b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.Form1.resources differ diff --git a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.CoreCompileInputs.cache b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.CoreCompileInputs.cache index a037d88..101a5f6 100644 --- a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.CoreCompileInputs.cache +++ b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -998d7a179fd4fed6e53318402ca043fe3eaee5ee +a8f1d44814445f7273189101ea924fc6805765a9 diff --git a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.FileListAbsolute.txt b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.FileListAbsolute.txt index 6651214..106d239 100644 --- a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.FileListAbsolute.txt +++ b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.FileListAbsolute.txt @@ -13,3 +13,7 @@ H:\Programmieren\Git-WorkRepository\VisualStudio\_PROJEKTE\ShowInstalledNXversio H:\Programmieren\Git-WorkRepository\VisualStudio\_PROJEKTE\ShowInstalledNXversion.git\ShowInstalledNXversion\obj\Debug\ShowInstalledNXversion.csproj.CopyComplete H:\Programmieren\Git-WorkRepository\VisualStudio\_PROJEKTE\ShowInstalledNXversion.git\ShowInstalledNXversion\bin\Debug\henxver.dll H:\Programmieren\Git-WorkRepository\VisualStudio\_PROJEKTE\ShowInstalledNXversion.git\ShowInstalledNXversion\bin\Debug\henxver.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_PROJEKTE\ShowInstalledNXversion.git\ShowInstalledNXversion\bin\Debug\heabox.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_PROJEKTE\ShowInstalledNXversion.git\ShowInstalledNXversion\bin\Debug\heabox.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_PROJEKTE\ShowInstalledNXversion.git\ShowInstalledNXversion\bin\Debug\de\heabox.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_PROJEKTE\ShowInstalledNXversion.git\ShowInstalledNXversion\bin\Debug\en\heabox.resources.dll diff --git a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.GenerateResource.cache b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.GenerateResource.cache index e30a3d9..67cb932 100644 Binary files a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.GenerateResource.cache and b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csproj.GenerateResource.cache differ diff --git a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csprojAssemblyReference.cache b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csprojAssemblyReference.cache index ca0037d..fb70a10 100644 Binary files a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csprojAssemblyReference.cache and b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.csprojAssemblyReference.cache differ diff --git a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.exe b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.exe index 5aadea8..dfdafda 100644 Binary files a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.exe and b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.exe differ diff --git a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.pdb b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.pdb index e5df515..36601e4 100644 Binary files a/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.pdb and b/ShowInstalledNXversion/obj/Debug/ShowInstalledNXversion.pdb differ