commit 3fadc6fb9baa50f18c848a294c6b58d6e5c142e3 Author: Eugen Höglinger Date: Thu Feb 27 15:03:31 2020 +0100 Projekt neu angelegt. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a5f80a --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ + +#Ignore thumbnails created by Windows +Thumbs.db +#Ignore files built by Visual Studio +*.obj +*.exe +*.pdb +*.user +*.aps +*.pch +*.vspscc +*_i.c +*_p.c +*.ncb +*.suo +*.tlb +*.tlh +*.bak +*.cache +*.ilk +*.log +[Bb]in +[Dd]ebug*/ +*.lib +*.sbr +obj/ +[Rr]elease*/ +_ReSharper*/ +[Tt]est[Rr]esult* +.vs/ +#Nuget packages folder +packages/ diff --git a/CheckEnvironment.sln b/CheckEnvironment.sln new file mode 100644 index 0000000..77486a0 --- /dev/null +++ b/CheckEnvironment.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28010.2041 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CheckEnvironment", "CheckEnvironment\CheckEnvironment.csproj", "{548F6BF5-6FDB-4BF8-9E9E-1D2B1CD95E81}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {548F6BF5-6FDB-4BF8-9E9E-1D2B1CD95E81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {548F6BF5-6FDB-4BF8-9E9E-1D2B1CD95E81}.Debug|Any CPU.Build.0 = Debug|Any CPU + {548F6BF5-6FDB-4BF8-9E9E-1D2B1CD95E81}.Release|Any CPU.ActiveCfg = Release|Any CPU + {548F6BF5-6FDB-4BF8-9E9E-1D2B1CD95E81}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {01B5A2BF-31C7-4733-A94F-9C2FFF1F5BF2} + EndGlobalSection +EndGlobal diff --git a/CheckEnvironment/App.config b/CheckEnvironment/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/CheckEnvironment/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/CheckEnvironment/CheckEnvironment.Designer.cs b/CheckEnvironment/CheckEnvironment.Designer.cs new file mode 100644 index 0000000..4b85c94 --- /dev/null +++ b/CheckEnvironment/CheckEnvironment.Designer.cs @@ -0,0 +1,338 @@ +namespace CheckEnvironment +{ + partial class CheckEnvironment + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + this.groupBoxEnv = new System.Windows.Forms.GroupBox(); + this.labelNxOnline = new System.Windows.Forms.Label(); + this.labelNxOffline = new System.Windows.Forms.Label(); + this.labelUgiiEnvFile = new System.Windows.Forms.Label(); + this.labelCompsolvTools = new System.Windows.Forms.Label(); + this.labelCompsolveMachine = new System.Windows.Forms.Label(); + this.labelCompsolvStdLib = new System.Windows.Forms.Label(); + this.labelCompsolvUgiiSettings = new System.Windows.Forms.Label(); + this.textBoxNxOnline = new System.Windows.Forms.TextBox(); + this.textBoxNxOffline = new System.Windows.Forms.TextBox(); + this.textBoxUgiiEnvFile = new System.Windows.Forms.TextBox(); + this.textBoxCompsolveMachine = new System.Windows.Forms.TextBox(); + this.textBoxCompsolvTools = new System.Windows.Forms.TextBox(); + this.textBoxCompsolvStdLib = new System.Windows.Forms.TextBox(); + this.textBoxCompsolvUgiiSettings = new System.Windows.Forms.TextBox(); + this.labelNxOnlineResult = new System.Windows.Forms.Label(); + this.labelNxOfflineResult = new System.Windows.Forms.Label(); + this.labelUgiiEnvFileResult = new System.Windows.Forms.Label(); + this.labelCompsolveMachineResult = new System.Windows.Forms.Label(); + this.labelCompsolvToolsResult = new System.Windows.Forms.Label(); + this.labelCompsolvStdLibResult = new System.Windows.Forms.Label(); + this.labelCompsolvUgiiSettingsResult = new System.Windows.Forms.Label(); + this.labelInfo = new System.Windows.Forms.Label(); + this.buttonClose = new System.Windows.Forms.Button(); + this.groupBoxEnv.SuspendLayout(); + this.SuspendLayout(); + // + // groupBoxEnv + // + this.groupBoxEnv.Controls.Add(this.labelCompsolvUgiiSettingsResult); + this.groupBoxEnv.Controls.Add(this.labelCompsolvStdLibResult); + this.groupBoxEnv.Controls.Add(this.labelCompsolvToolsResult); + this.groupBoxEnv.Controls.Add(this.labelCompsolveMachineResult); + this.groupBoxEnv.Controls.Add(this.labelUgiiEnvFileResult); + this.groupBoxEnv.Controls.Add(this.labelNxOfflineResult); + this.groupBoxEnv.Controls.Add(this.labelNxOnlineResult); + this.groupBoxEnv.Controls.Add(this.textBoxCompsolvUgiiSettings); + this.groupBoxEnv.Controls.Add(this.textBoxCompsolvStdLib); + this.groupBoxEnv.Controls.Add(this.textBoxCompsolvTools); + this.groupBoxEnv.Controls.Add(this.textBoxCompsolveMachine); + this.groupBoxEnv.Controls.Add(this.textBoxUgiiEnvFile); + this.groupBoxEnv.Controls.Add(this.textBoxNxOffline); + this.groupBoxEnv.Controls.Add(this.textBoxNxOnline); + this.groupBoxEnv.Controls.Add(this.labelCompsolvUgiiSettings); + this.groupBoxEnv.Controls.Add(this.labelCompsolvStdLib); + this.groupBoxEnv.Controls.Add(this.labelCompsolveMachine); + this.groupBoxEnv.Controls.Add(this.labelCompsolvTools); + this.groupBoxEnv.Controls.Add(this.labelUgiiEnvFile); + this.groupBoxEnv.Controls.Add(this.labelNxOffline); + this.groupBoxEnv.Controls.Add(this.labelNxOnline); + this.groupBoxEnv.Location = new System.Drawing.Point(13, 13); + this.groupBoxEnv.Name = "groupBoxEnv"; + this.groupBoxEnv.Size = new System.Drawing.Size(602, 206); + this.groupBoxEnv.TabIndex = 0; + this.groupBoxEnv.TabStop = false; + this.groupBoxEnv.Text = "Environment Variables"; + // + // labelNxOnline + // + this.labelNxOnline.AutoSize = true; + this.labelNxOnline.Location = new System.Drawing.Point(6, 23); + this.labelNxOnline.Name = "labelNxOnline"; + this.labelNxOnline.Size = new System.Drawing.Size(68, 13); + this.labelNxOnline.TabIndex = 0; + this.labelNxOnline.Text = "NX_ONLINE"; + // + // labelNxOffline + // + this.labelNxOffline.AutoSize = true; + this.labelNxOffline.Location = new System.Drawing.Point(6, 49); + this.labelNxOffline.Name = "labelNxOffline"; + this.labelNxOffline.Size = new System.Drawing.Size(72, 13); + this.labelNxOffline.TabIndex = 1; + this.labelNxOffline.Text = "NX_OFFLINE"; + // + // labelUgiiEnvFile + // + this.labelUgiiEnvFile.AutoSize = true; + this.labelUgiiEnvFile.Location = new System.Drawing.Point(6, 75); + this.labelUgiiEnvFile.Name = "labelUgiiEnvFile"; + this.labelUgiiEnvFile.Size = new System.Drawing.Size(85, 13); + this.labelUgiiEnvFile.TabIndex = 2; + this.labelUgiiEnvFile.Text = "UGII_ENV_FILE"; + // + // labelCompsolvTools + // + this.labelCompsolvTools.AutoSize = true; + this.labelCompsolvTools.Location = new System.Drawing.Point(6, 128); + this.labelCompsolvTools.Name = "labelCompsolvTools"; + this.labelCompsolvTools.Size = new System.Drawing.Size(108, 13); + this.labelCompsolvTools.TabIndex = 3; + this.labelCompsolvTools.Text = "COMPSOLV_TOOLS"; + // + // labelCompsolveMachine + // + this.labelCompsolveMachine.AutoSize = true; + this.labelCompsolveMachine.Location = new System.Drawing.Point(6, 102); + this.labelCompsolveMachine.Name = "labelCompsolveMachine"; + this.labelCompsolveMachine.Size = new System.Drawing.Size(121, 13); + this.labelCompsolveMachine.TabIndex = 4; + this.labelCompsolveMachine.Text = "COMPSOLV_MACHINE"; + // + // labelCompsolvStdLib + // + this.labelCompsolvStdLib.AutoSize = true; + this.labelCompsolvStdLib.Location = new System.Drawing.Point(6, 154); + this.labelCompsolvStdLib.Name = "labelCompsolvStdLib"; + this.labelCompsolvStdLib.Size = new System.Drawing.Size(117, 13); + this.labelCompsolvStdLib.TabIndex = 5; + this.labelCompsolvStdLib.Text = "COMPSOLVE_STDLIB"; + // + // labelCompsolvUgiiSettings + // + this.labelCompsolvUgiiSettings.AutoSize = true; + this.labelCompsolvUgiiSettings.Location = new System.Drawing.Point(6, 180); + this.labelCompsolvUgiiSettings.Name = "labelCompsolvUgiiSettings"; + this.labelCompsolvUgiiSettings.Size = new System.Drawing.Size(154, 13); + this.labelCompsolvUgiiSettings.TabIndex = 6; + this.labelCompsolvUgiiSettings.Text = "COMPSOLV_UGII_SETTINGS"; + // + // textBoxNxOnline + // + this.textBoxNxOnline.Location = new System.Drawing.Point(170, 20); + this.textBoxNxOnline.Name = "textBoxNxOnline"; + this.textBoxNxOnline.ReadOnly = true; + this.textBoxNxOnline.Size = new System.Drawing.Size(360, 20); + this.textBoxNxOnline.TabIndex = 7; + // + // textBoxNxOffline + // + this.textBoxNxOffline.Location = new System.Drawing.Point(170, 46); + this.textBoxNxOffline.Name = "textBoxNxOffline"; + this.textBoxNxOffline.ReadOnly = true; + this.textBoxNxOffline.Size = new System.Drawing.Size(360, 20); + this.textBoxNxOffline.TabIndex = 8; + // + // textBoxUgiiEnvFile + // + this.textBoxUgiiEnvFile.Location = new System.Drawing.Point(170, 72); + this.textBoxUgiiEnvFile.Name = "textBoxUgiiEnvFile"; + this.textBoxUgiiEnvFile.ReadOnly = true; + this.textBoxUgiiEnvFile.Size = new System.Drawing.Size(360, 20); + this.textBoxUgiiEnvFile.TabIndex = 9; + // + // textBoxCompsolveMachine + // + this.textBoxCompsolveMachine.Location = new System.Drawing.Point(170, 99); + this.textBoxCompsolveMachine.Name = "textBoxCompsolveMachine"; + this.textBoxCompsolveMachine.ReadOnly = true; + this.textBoxCompsolveMachine.Size = new System.Drawing.Size(360, 20); + this.textBoxCompsolveMachine.TabIndex = 10; + // + // textBoxCompsolvTools + // + this.textBoxCompsolvTools.Location = new System.Drawing.Point(170, 125); + this.textBoxCompsolvTools.Name = "textBoxCompsolvTools"; + this.textBoxCompsolvTools.ReadOnly = true; + this.textBoxCompsolvTools.Size = new System.Drawing.Size(360, 20); + this.textBoxCompsolvTools.TabIndex = 11; + // + // textBoxCompsolvStdLib + // + this.textBoxCompsolvStdLib.Location = new System.Drawing.Point(170, 151); + this.textBoxCompsolvStdLib.Name = "textBoxCompsolvStdLib"; + this.textBoxCompsolvStdLib.ReadOnly = true; + this.textBoxCompsolvStdLib.Size = new System.Drawing.Size(360, 20); + this.textBoxCompsolvStdLib.TabIndex = 12; + // + // textBoxCompsolvUgiiSettings + // + this.textBoxCompsolvUgiiSettings.Location = new System.Drawing.Point(170, 177); + this.textBoxCompsolvUgiiSettings.Name = "textBoxCompsolvUgiiSettings"; + this.textBoxCompsolvUgiiSettings.ReadOnly = true; + this.textBoxCompsolvUgiiSettings.Size = new System.Drawing.Size(360, 20); + this.textBoxCompsolvUgiiSettings.TabIndex = 13; + // + // labelNxOnlineResult + // + this.labelNxOnlineResult.AutoSize = true; + this.labelNxOnlineResult.Location = new System.Drawing.Point(540, 23); + this.labelNxOnlineResult.Name = "labelNxOnlineResult"; + this.labelNxOnlineResult.Size = new System.Drawing.Size(42, 13); + this.labelNxOnlineResult.TabIndex = 14; + this.labelNxOnlineResult.Text = "Missing"; + // + // labelNxOfflineResult + // + this.labelNxOfflineResult.AutoSize = true; + this.labelNxOfflineResult.Location = new System.Drawing.Point(540, 49); + this.labelNxOfflineResult.Name = "labelNxOfflineResult"; + this.labelNxOfflineResult.Size = new System.Drawing.Size(42, 13); + this.labelNxOfflineResult.TabIndex = 15; + this.labelNxOfflineResult.Text = "Missing"; + // + // labelUgiiEnvFileResult + // + this.labelUgiiEnvFileResult.AutoSize = true; + this.labelUgiiEnvFileResult.Location = new System.Drawing.Point(540, 75); + this.labelUgiiEnvFileResult.Name = "labelUgiiEnvFileResult"; + this.labelUgiiEnvFileResult.Size = new System.Drawing.Size(42, 13); + this.labelUgiiEnvFileResult.TabIndex = 16; + this.labelUgiiEnvFileResult.Text = "Missing"; + // + // labelCompsolveMachineResult + // + this.labelCompsolveMachineResult.AutoSize = true; + this.labelCompsolveMachineResult.Location = new System.Drawing.Point(540, 102); + this.labelCompsolveMachineResult.Name = "labelCompsolveMachineResult"; + this.labelCompsolveMachineResult.Size = new System.Drawing.Size(42, 13); + this.labelCompsolveMachineResult.TabIndex = 17; + this.labelCompsolveMachineResult.Text = "Missing"; + // + // labelCompsolvToolsResult + // + this.labelCompsolvToolsResult.AutoSize = true; + this.labelCompsolvToolsResult.Location = new System.Drawing.Point(540, 129); + this.labelCompsolvToolsResult.Name = "labelCompsolvToolsResult"; + this.labelCompsolvToolsResult.Size = new System.Drawing.Size(42, 13); + this.labelCompsolvToolsResult.TabIndex = 18; + this.labelCompsolvToolsResult.Text = "Missing"; + // + // labelCompsolvStdLibResult + // + this.labelCompsolvStdLibResult.AutoSize = true; + this.labelCompsolvStdLibResult.Location = new System.Drawing.Point(540, 154); + this.labelCompsolvStdLibResult.Name = "labelCompsolvStdLibResult"; + this.labelCompsolvStdLibResult.Size = new System.Drawing.Size(42, 13); + this.labelCompsolvStdLibResult.TabIndex = 19; + this.labelCompsolvStdLibResult.Text = "Missing"; + // + // labelCompsolvUgiiSettingsResult + // + this.labelCompsolvUgiiSettingsResult.AutoSize = true; + this.labelCompsolvUgiiSettingsResult.Location = new System.Drawing.Point(540, 180); + this.labelCompsolvUgiiSettingsResult.Name = "labelCompsolvUgiiSettingsResult"; + this.labelCompsolvUgiiSettingsResult.Size = new System.Drawing.Size(42, 13); + this.labelCompsolvUgiiSettingsResult.TabIndex = 20; + this.labelCompsolvUgiiSettingsResult.Text = "Missing"; + // + // labelInfo + // + this.labelInfo.AutoSize = true; + this.labelInfo.Location = new System.Drawing.Point(12, 230); + this.labelInfo.Name = "labelInfo"; + this.labelInfo.Size = new System.Drawing.Size(462, 13); + this.labelInfo.TabIndex = 1; + this.labelInfo.Text = "One or more variables are not set! Please contact Eugen Höglinger (eugen.hoegling" + + "er@engel.at)"; + // + // buttonClose + // + this.buttonClose.Location = new System.Drawing.Point(540, 225); + this.buttonClose.Name = "buttonClose"; + this.buttonClose.Size = new System.Drawing.Size(75, 23); + this.buttonClose.TabIndex = 2; + this.buttonClose.Text = "Close"; + this.buttonClose.UseVisualStyleBackColor = true; + this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(627, 259); + this.ControlBox = false; + this.Controls.Add(this.buttonClose); + this.Controls.Add(this.labelInfo); + this.Controls.Add(this.groupBoxEnv); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Name = "Form1"; + this.Text = "Check Environment"; + this.Load += new System.EventHandler(this.Form1_Load); + this.groupBoxEnv.ResumeLayout(false); + this.groupBoxEnv.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.GroupBox groupBoxEnv; + private System.Windows.Forms.TextBox textBoxNxOnline; + private System.Windows.Forms.Label labelCompsolvUgiiSettings; + private System.Windows.Forms.Label labelCompsolvStdLib; + private System.Windows.Forms.Label labelCompsolveMachine; + private System.Windows.Forms.Label labelCompsolvTools; + private System.Windows.Forms.Label labelUgiiEnvFile; + private System.Windows.Forms.Label labelNxOffline; + private System.Windows.Forms.Label labelNxOnline; + private System.Windows.Forms.TextBox textBoxCompsolvUgiiSettings; + private System.Windows.Forms.TextBox textBoxCompsolvStdLib; + private System.Windows.Forms.TextBox textBoxCompsolvTools; + private System.Windows.Forms.TextBox textBoxCompsolveMachine; + private System.Windows.Forms.TextBox textBoxUgiiEnvFile; + private System.Windows.Forms.TextBox textBoxNxOffline; + private System.Windows.Forms.Label labelCompsolvUgiiSettingsResult; + private System.Windows.Forms.Label labelCompsolvStdLibResult; + private System.Windows.Forms.Label labelCompsolvToolsResult; + private System.Windows.Forms.Label labelCompsolveMachineResult; + private System.Windows.Forms.Label labelUgiiEnvFileResult; + private System.Windows.Forms.Label labelNxOfflineResult; + private System.Windows.Forms.Label labelNxOnlineResult; + private System.Windows.Forms.Label labelInfo; + private System.Windows.Forms.Button buttonClose; + } +} + diff --git a/CheckEnvironment/CheckEnvironment.cs b/CheckEnvironment/CheckEnvironment.cs new file mode 100644 index 0000000..97dc22a --- /dev/null +++ b/CheckEnvironment/CheckEnvironment.cs @@ -0,0 +1,134 @@ +using System; +using System.IO; +using System.Reflection; +using System.Windows.Forms; + +namespace CheckEnvironment +{ + public partial class CheckEnvironment : Form + { + #region Version und Copyright + // Version und Copyright + string programName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen + string version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); + static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); + string copyright = ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + string icon = Application.StartupPath + "\\Info.bmp"; + //Assembly Datum und Zeit + static DateTime value = AssemblyDateTime(); + string date = value.ToShortDateString(); + string time = value.ToLongTimeString(); + private static DateTime AssemblyDateTime() + { + var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; + var buildDateTime = new DateTime(2000, 1, 1).Add(new TimeSpan(TimeSpan.TicksPerDay * version.Build + TimeSpan.TicksPerSecond * 2 * version.Revision)); + //Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original) + return buildDateTime; + } + #endregion + + public CheckEnvironment() + { + InitializeComponent(); + } + + private void buttonClose_Click(object sender, EventArgs e) + { + this.Close(); + } + + private string CheckEnv(string env) + { + return Environment.GetEnvironmentVariable(env); + } + + private void Form1_Load(object sender, EventArgs e) + { + string result = ""; + + result = CheckEnv("NX_ONLINE"); + if (String.IsNullOrEmpty(result)) + { + textBoxNxOnline.Text = ""; + labelNxOnlineResult.Text = "MISSING"; + } + else + { + textBoxNxOnline.Text = result; + labelNxOnlineResult.Text = "OK"; + } + + result = CheckEnv("NX_OFFLINE"); + if (String.IsNullOrEmpty(result)) + { + textBoxNxOffline.Text = ""; + labelNxOfflineResult.Text = "MISSING"; + } + else + { + textBoxNxOffline.Text = result; + labelNxOfflineResult.Text = "OK"; + } + + result = CheckEnv("UGII_ENV_FILE"); + if (String.IsNullOrEmpty(result)) + { + textBoxUgiiEnvFile.Text = ""; + labelUgiiEnvFileResult.Text = "MISSING"; + } + else + { + textBoxUgiiEnvFile.Text = result; + labelUgiiEnvFileResult.Text = "OK"; + } + + result = CheckEnv("COMPSOLV_MACHINE"); + if (String.IsNullOrEmpty(result)) + { + textBoxCompsolveMachine.Text = ""; + labelCompsolveMachineResult.Text = "MISSING"; + } + else + { + textBoxCompsolveMachine.Text = result; + labelCompsolveMachineResult.Text = "OK"; + } + + result = CheckEnv("COMPSOLV_TOOLS"); + if (String.IsNullOrEmpty(result)) + { + textBoxCompsolvTools.Text = ""; + labelCompsolvToolsResult.Text = "MISSING"; + } + else + { + textBoxCompsolvTools.Text = result; + labelCompsolvToolsResult.Text = "OK"; + } + + result = CheckEnv("COMPSOLVE_STDLIB"); + if (String.IsNullOrEmpty(result)) + { + textBoxCompsolvStdLib.Text = ""; + labelCompsolvStdLibResult.Text = "MISSING"; + } + else + { + textBoxCompsolvStdLib.Text = result; + labelCompsolvStdLibResult.Text = "OK"; + } + + result = CheckEnv("COMPSOLV_UGII_SETTINGS"); + if (String.IsNullOrEmpty(result)) + { + textBoxCompsolvUgiiSettings.Text = ""; + labelCompsolvUgiiSettingsResult.Text = "MISSING"; + } + else + { + textBoxCompsolvUgiiSettings.Text = result; + labelCompsolvUgiiSettingsResult.Text = "OK"; + } + } + } +} diff --git a/CheckEnvironment/CheckEnvironment.csproj b/CheckEnvironment/CheckEnvironment.csproj new file mode 100644 index 0000000..c4805b5 --- /dev/null +++ b/CheckEnvironment/CheckEnvironment.csproj @@ -0,0 +1,116 @@ + + + + + Debug + AnyCPU + {548F6BF5-6FDB-4BF8-9E9E-1D2B1CD95E81} + WinExe + CheckEnvironment + CheckEnvironment + v4.6.1 + 512 + true + false + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + CheckEnvironment_128.ico + + + + + + + + + + + + + + + + + Form + + + CheckEnvironment.cs + + + + + CheckEnvironment.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + + + + False + Microsoft .NET Framework 4.6.1 %28x86 und x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + + \ No newline at end of file diff --git a/CheckEnvironment/CheckEnvironment.resx b/CheckEnvironment/CheckEnvironment.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/CheckEnvironment/CheckEnvironment.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/CheckEnvironment/CheckEnvironment_128.ico b/CheckEnvironment/CheckEnvironment_128.ico new file mode 100644 index 0000000..10b78be Binary files /dev/null and b/CheckEnvironment/CheckEnvironment_128.ico differ diff --git a/CheckEnvironment/Program.cs b/CheckEnvironment/Program.cs new file mode 100644 index 0000000..e6bb3b5 --- /dev/null +++ b/CheckEnvironment/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace CheckEnvironment +{ + static class Program + { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new CheckEnvironment()); + } + } +} diff --git a/CheckEnvironment/Properties/AssemblyInfo.cs b/CheckEnvironment/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..060d262 --- /dev/null +++ b/CheckEnvironment/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("CheckEnvironment")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CheckEnvironment")] +[assembly: AssemblyCopyright("Copyright © 2010-2018 by Eugen Höglinger")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("548f6bf5-6fdb-4bf8-9e9e-1d2b1cd95e81")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CheckEnvironment/Properties/Resources.Designer.cs b/CheckEnvironment/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4ed50df --- /dev/null +++ b/CheckEnvironment/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion: 4.0.30319.42000 +// +// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn +// der Code neu generiert wird. +// +//------------------------------------------------------------------------------ + +namespace CheckEnvironment.Properties +{ + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse + // über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CheckEnvironment.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/CheckEnvironment/Properties/Resources.resx b/CheckEnvironment/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/CheckEnvironment/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/CheckEnvironment/Properties/Settings.Designer.cs b/CheckEnvironment/Properties/Settings.Designer.cs new file mode 100644 index 0000000..8a3d979 --- /dev/null +++ b/CheckEnvironment/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace CheckEnvironment.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/CheckEnvironment/Properties/Settings.settings b/CheckEnvironment/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/CheckEnvironment/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Daten/CheckEnvironment_128.ico b/Daten/CheckEnvironment_128.ico new file mode 100644 index 0000000..10b78be Binary files /dev/null and b/Daten/CheckEnvironment_128.ico differ