Initialize
This commit is contained in:
parent
d3917497ed
commit
f95779a050
@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio 15
|
# Visual Studio 15
|
||||||
VisualStudioVersion = 15.0.28307.572
|
VisualStudioVersion = 15.0.28307.572
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VaribleThroughString", "VaribleThroughString\VaribleThroughString.csproj", "{8D5C22C1-DD1A-4A28-B636-445F02ADB815}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReplaceVariableByValue", "ReplaceVariableByValue\ReplaceVariableByValue.csproj", "{8D5C22C1-DD1A-4A28-B636-445F02ADB815}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_VaribleThroughString", "Test_VaribleThroughString\Test_VaribleThroughString.csproj", "{196A7F39-5BDA-4E02-84E8-B30973309C8B}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_ReplaceVariableByValue", "Test_ReplaceVariableByValue\Test_ReplaceVariableByValue.csproj", "{196A7F39-5BDA-4E02-84E8-B30973309C8B}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
|||||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||||
// die einer Assembly zugeordnet sind.
|
// die einer Assembly zugeordnet sind.
|
||||||
[assembly: AssemblyTitle("VaribleThroughString")]
|
[assembly: AssemblyTitle("ReplaceVariableByValue")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("VaribleThroughString")]
|
[assembly: AssemblyProduct("ReplaceVariableByValue")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2019 by Eugen Höglinger")]
|
[assembly: AssemblyCopyright("Copyright © 2019 by Eugen Höglinger")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
@ -6,17 +6,19 @@ using System.Reflection;
|
|||||||
using System.Resources;
|
using System.Resources;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Eugen.ESystem
|
namespace Eugen.ESystem
|
||||||
{
|
{
|
||||||
public class VaribleThroughString
|
public class ReplaceVariableByValue
|
||||||
{
|
{
|
||||||
#region Version und Copyright
|
#region Version und Copyright
|
||||||
// Version und Copyright
|
// Version und Copyright
|
||||||
string dllName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
|
static string dllName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
|
||||||
string dllVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
static string dllVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||||
static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
|
static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
|
||||||
string copyright = ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
|
static string copyright = GenerateCopyright();
|
||||||
|
string icon = Application.StartupPath + "\\Info.bmp";
|
||||||
//Assembly Datum und Zeit
|
//Assembly Datum und Zeit
|
||||||
static DateTime value = AssemblyDateTime();
|
static DateTime value = AssemblyDateTime();
|
||||||
string date = value.ToShortDateString();
|
string date = value.ToShortDateString();
|
||||||
@ -28,48 +30,78 @@ namespace Eugen.ESystem
|
|||||||
//Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original)
|
//Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original)
|
||||||
return buildDateTime;
|
return buildDateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static string CurrentYear()
|
||||||
|
{
|
||||||
|
DateTime dtn = DateTime.Now;
|
||||||
|
return dtn.Year.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string StartYear()
|
||||||
|
{
|
||||||
|
string startYear = "";
|
||||||
|
if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © "))
|
||||||
|
{
|
||||||
|
startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", "");
|
||||||
|
while (startYear.StartsWith(" "))
|
||||||
|
{
|
||||||
|
startYear = startYear.Remove(0, 1);
|
||||||
|
}
|
||||||
|
startYear = startYear.Remove(startYear.IndexOf(" "));
|
||||||
|
return startYear;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DateTime dtn = DateTime.Now;
|
||||||
|
return dtn.Year.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string GenerateCopyright()
|
||||||
|
{
|
||||||
|
string startYear = StartYear();
|
||||||
|
string currentYear = CurrentYear();
|
||||||
|
|
||||||
|
if (startYear == currentYear)
|
||||||
|
{
|
||||||
|
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear));
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region DLL-Info
|
#region DLL-Info
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains the name of the dll file.
|
/// Contains the name of the program file
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string DllName { private set; get; }
|
public static string DllName { set; get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains the version of the dll file.
|
/// Contains the version of the program file
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string DllVersion { private set; get; }
|
public static string DllVersion { set; get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains the copyright notice.
|
/// Contains the copyright notice
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string Copyright { private set; get; }
|
public static string Copyright { set; get; }
|
||||||
|
|
||||||
/// <summary>
|
private static void SetDllInfo()
|
||||||
/// Contains the name-, version- and copyright-information of the dll file.
|
|
||||||
/// </summary>
|
|
||||||
public static string[] DllInfo { private set; get; }
|
|
||||||
|
|
||||||
private void SetDllInfo()
|
|
||||||
{
|
{
|
||||||
//Name, Version und Copyright setzen
|
//Name, Version und Copyright setzen
|
||||||
DllName = dllName;
|
DllName = dllName;
|
||||||
DllVersion = dllVersion;
|
DllVersion = dllVersion;
|
||||||
Copyright = this.copyright;
|
Copyright = copyright;
|
||||||
|
|
||||||
string[] dllInfo = new string[3];
|
|
||||||
dllInfo[0] = dllName;
|
|
||||||
dllInfo[1] = dllVersion;
|
|
||||||
dllInfo[2] = this.copyright;
|
|
||||||
DllInfo = dllInfo;
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Replaces a Environment variable through the variable value.
|
/// Replaces a Environment variable through the variable value.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public VaribleThroughString()
|
static ReplaceVariableByValue()
|
||||||
{
|
{
|
||||||
SetDllInfo(); //Name, Version und Copyright der DLL setzen
|
SetDllInfo(); //Name, Version und Copyright der DLL setzen
|
||||||
}
|
}
|
||||||
@ -124,7 +156,7 @@ namespace Eugen.ESystem
|
|||||||
/// <returns>The edited text</returns>
|
/// <returns>The edited text</returns>
|
||||||
public static string Replace(string text, bool messageWhenError)
|
public static string Replace(string text, bool messageWhenError)
|
||||||
{
|
{
|
||||||
if (!(text.Contains("${") || !text.Contains("%")) || String.IsNullOrEmpty(text))
|
if ((!text.Contains("${") && !text.Contains("%")) || String.IsNullOrEmpty(text))
|
||||||
{
|
{
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
@ -7,8 +7,8 @@
|
|||||||
<ProjectGuid>{8D5C22C1-DD1A-4A28-B636-445F02ADB815}</ProjectGuid>
|
<ProjectGuid>{8D5C22C1-DD1A-4A28-B636-445F02ADB815}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>VaribleThroughString</RootNamespace>
|
<RootNamespace>ReplaceVariableByValue</RootNamespace>
|
||||||
<AssemblyName>VaribleThroughString</AssemblyName>
|
<AssemblyName>ReplaceVariableByValue</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<Deterministic>false</Deterministic>
|
<Deterministic>false</Deterministic>
|
||||||
@ -33,6 +33,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
@ -46,7 +47,7 @@
|
|||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
<DependentUpon>Language.resx</DependentUpon>
|
<DependentUpon>Language.resx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="VaribleThroughString.cs" />
|
<Compile Include="ReplaceVariableByValue.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
157
Test_ReplaceVariableByValue/Form1.Designer.cs
generated
Normal file
157
Test_ReplaceVariableByValue/Form1.Designer.cs
generated
Normal file
@ -0,0 +1,157 @@
|
|||||||
|
namespace Eugen.ESystem
|
||||||
|
{
|
||||||
|
partial class Form1
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Designervariable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Verwendete Ressourcen bereinigen.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Vom Windows Form-Designer generierter Code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Methode für die Designerunterstützung.
|
||||||
|
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.labelResult = new System.Windows.Forms.Label();
|
||||||
|
this.buttonStart = new System.Windows.Forms.Button();
|
||||||
|
this.labelSourceString = new System.Windows.Forms.Label();
|
||||||
|
this.groupBoxProgramInfo = new System.Windows.Forms.GroupBox();
|
||||||
|
this.labelProgramInfo = new System.Windows.Forms.Label();
|
||||||
|
this.groupBoxDLLInfo = new System.Windows.Forms.GroupBox();
|
||||||
|
this.labelDLLInfo = new System.Windows.Forms.Label();
|
||||||
|
this.buttonStartWithMessage = new System.Windows.Forms.Button();
|
||||||
|
this.groupBoxProgramInfo.SuspendLayout();
|
||||||
|
this.groupBoxDLLInfo.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// labelResult
|
||||||
|
//
|
||||||
|
this.labelResult.AutoSize = true;
|
||||||
|
this.labelResult.Location = new System.Drawing.Point(9, 117);
|
||||||
|
this.labelResult.Name = "labelResult";
|
||||||
|
this.labelResult.Size = new System.Drawing.Size(16, 13);
|
||||||
|
this.labelResult.TabIndex = 0;
|
||||||
|
this.labelResult.Text = "...";
|
||||||
|
//
|
||||||
|
// buttonStart
|
||||||
|
//
|
||||||
|
this.buttonStart.Location = new System.Drawing.Point(12, 343);
|
||||||
|
this.buttonStart.Name = "buttonStart";
|
||||||
|
this.buttonStart.Size = new System.Drawing.Size(385, 23);
|
||||||
|
this.buttonStart.TabIndex = 1;
|
||||||
|
this.buttonStart.Text = "Tausche Variable geben Wert (Ohne Meldung bei Fehler)";
|
||||||
|
this.buttonStart.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click);
|
||||||
|
//
|
||||||
|
// labelSourceString
|
||||||
|
//
|
||||||
|
this.labelSourceString.AutoSize = true;
|
||||||
|
this.labelSourceString.Location = new System.Drawing.Point(12, 9);
|
||||||
|
this.labelSourceString.Name = "labelSourceString";
|
||||||
|
this.labelSourceString.Size = new System.Drawing.Size(16, 13);
|
||||||
|
this.labelSourceString.TabIndex = 2;
|
||||||
|
this.labelSourceString.Text = "...";
|
||||||
|
//
|
||||||
|
// groupBoxProgramInfo
|
||||||
|
//
|
||||||
|
this.groupBoxProgramInfo.Controls.Add(this.labelProgramInfo);
|
||||||
|
this.groupBoxProgramInfo.Location = new System.Drawing.Point(12, 372);
|
||||||
|
this.groupBoxProgramInfo.Name = "groupBoxProgramInfo";
|
||||||
|
this.groupBoxProgramInfo.Size = new System.Drawing.Size(385, 66);
|
||||||
|
this.groupBoxProgramInfo.TabIndex = 9;
|
||||||
|
this.groupBoxProgramInfo.TabStop = false;
|
||||||
|
this.groupBoxProgramInfo.Text = "Programm Information";
|
||||||
|
//
|
||||||
|
// labelProgramInfo
|
||||||
|
//
|
||||||
|
this.labelProgramInfo.AutoSize = true;
|
||||||
|
this.labelProgramInfo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||||
|
this.labelProgramInfo.Location = new System.Drawing.Point(7, 20);
|
||||||
|
this.labelProgramInfo.Name = "labelProgramInfo";
|
||||||
|
this.labelProgramInfo.Size = new System.Drawing.Size(16, 13);
|
||||||
|
this.labelProgramInfo.TabIndex = 0;
|
||||||
|
this.labelProgramInfo.Text = "...";
|
||||||
|
//
|
||||||
|
// groupBoxDLLInfo
|
||||||
|
//
|
||||||
|
this.groupBoxDLLInfo.Controls.Add(this.labelDLLInfo);
|
||||||
|
this.groupBoxDLLInfo.Location = new System.Drawing.Point(403, 372);
|
||||||
|
this.groupBoxDLLInfo.Name = "groupBoxDLLInfo";
|
||||||
|
this.groupBoxDLLInfo.Size = new System.Drawing.Size(385, 66);
|
||||||
|
this.groupBoxDLLInfo.TabIndex = 10;
|
||||||
|
this.groupBoxDLLInfo.TabStop = false;
|
||||||
|
this.groupBoxDLLInfo.Text = "DLL Information";
|
||||||
|
//
|
||||||
|
// labelDLLInfo
|
||||||
|
//
|
||||||
|
this.labelDLLInfo.AutoSize = true;
|
||||||
|
this.labelDLLInfo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||||
|
this.labelDLLInfo.Location = new System.Drawing.Point(7, 20);
|
||||||
|
this.labelDLLInfo.Name = "labelDLLInfo";
|
||||||
|
this.labelDLLInfo.Size = new System.Drawing.Size(16, 13);
|
||||||
|
this.labelDLLInfo.TabIndex = 0;
|
||||||
|
this.labelDLLInfo.Text = "...";
|
||||||
|
//
|
||||||
|
// buttonStartWithMessage
|
||||||
|
//
|
||||||
|
this.buttonStartWithMessage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.buttonStartWithMessage.Location = new System.Drawing.Point(403, 343);
|
||||||
|
this.buttonStartWithMessage.Name = "buttonStartWithMessage";
|
||||||
|
this.buttonStartWithMessage.Size = new System.Drawing.Size(385, 23);
|
||||||
|
this.buttonStartWithMessage.TabIndex = 11;
|
||||||
|
this.buttonStartWithMessage.Text = "Tausche Variable geben Wert (Meldung bei Fehler)";
|
||||||
|
this.buttonStartWithMessage.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonStartWithMessage.Click += new System.EventHandler(this.buttonStartWithMessage_Click_1);
|
||||||
|
//
|
||||||
|
// Form1
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||||
|
this.Controls.Add(this.buttonStartWithMessage);
|
||||||
|
this.Controls.Add(this.groupBoxProgramInfo);
|
||||||
|
this.Controls.Add(this.groupBoxDLLInfo);
|
||||||
|
this.Controls.Add(this.labelSourceString);
|
||||||
|
this.Controls.Add(this.buttonStart);
|
||||||
|
this.Controls.Add(this.labelResult);
|
||||||
|
this.Name = "Form1";
|
||||||
|
this.Text = "Test_ReplaceVariableByValue";
|
||||||
|
this.Load += new System.EventHandler(this.Form1_Load);
|
||||||
|
this.groupBoxProgramInfo.ResumeLayout(false);
|
||||||
|
this.groupBoxProgramInfo.PerformLayout();
|
||||||
|
this.groupBoxDLLInfo.ResumeLayout(false);
|
||||||
|
this.groupBoxDLLInfo.PerformLayout();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label labelResult;
|
||||||
|
private System.Windows.Forms.Button buttonStart;
|
||||||
|
private System.Windows.Forms.Label labelSourceString;
|
||||||
|
private System.Windows.Forms.GroupBox groupBoxProgramInfo;
|
||||||
|
private System.Windows.Forms.Label labelProgramInfo;
|
||||||
|
private System.Windows.Forms.GroupBox groupBoxDLLInfo;
|
||||||
|
private System.Windows.Forms.Label labelDLLInfo;
|
||||||
|
private System.Windows.Forms.Button buttonStartWithMessage;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
179
Test_ReplaceVariableByValue/Form1.cs
Normal file
179
Test_ReplaceVariableByValue/Form1.cs
Normal file
@ -0,0 +1,179 @@
|
|||||||
|
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;
|
||||||
|
|
||||||
|
namespace Eugen.ESystem
|
||||||
|
{
|
||||||
|
public partial class Form1 : Form
|
||||||
|
{
|
||||||
|
#region Version und Copyright
|
||||||
|
// Version und Copyright
|
||||||
|
string programName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
|
||||||
|
string programVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||||
|
static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
|
||||||
|
string copyright = GenerateCopyright();
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string CurrentYear()
|
||||||
|
{
|
||||||
|
DateTime dtn = DateTime.Now;
|
||||||
|
return dtn.Year.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string StartYear()
|
||||||
|
{
|
||||||
|
//string startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
|
||||||
|
//return startYear.Remove(0, startYear.LastIndexOf(" ") + 1);
|
||||||
|
string startYear = "";
|
||||||
|
if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © "))
|
||||||
|
{
|
||||||
|
startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", "");
|
||||||
|
while (startYear.StartsWith(" "))
|
||||||
|
{
|
||||||
|
startYear = startYear.Remove(0, 1);
|
||||||
|
}
|
||||||
|
startYear = startYear.Remove(startYear.IndexOf(" "));
|
||||||
|
return startYear;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DateTime dtn = DateTime.Now;
|
||||||
|
return dtn.Year.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string GenerateCopyright()
|
||||||
|
{
|
||||||
|
string startYear = StartYear();
|
||||||
|
string currentYear = CurrentYear();
|
||||||
|
|
||||||
|
if (startYear == currentYear)
|
||||||
|
{
|
||||||
|
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//return String.Concat(((AssemblyCopyrightAttribute)attributes[0]).Copyright, "-", currentYear);
|
||||||
|
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Programm-Info
|
||||||
|
/// <summary>
|
||||||
|
/// Contains the name of the program file
|
||||||
|
/// </summary>
|
||||||
|
public static string ProgramName { set; get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contains the version of the program file
|
||||||
|
/// </summary>
|
||||||
|
public static string ProgramVersion { set; get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contains the copyright notice
|
||||||
|
/// </summary>
|
||||||
|
public static string Copyright { set; get; }
|
||||||
|
|
||||||
|
private void SetProgramInfo()
|
||||||
|
{
|
||||||
|
//Name, Version und Copyright setzen
|
||||||
|
ProgramName = programName;
|
||||||
|
ProgramVersion = programVersion;
|
||||||
|
Copyright = copyright;
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Form1()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
SetProgramInfo(); //Name, Version und Copyright setzen
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Form1_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ShowInformation(); //Programm- und DLL-Information anzeigen
|
||||||
|
|
||||||
|
labelSourceString.Text = String.Concat("Ursprünglicher Text mit Umgebungsvariablen:\n", text);
|
||||||
|
}
|
||||||
|
|
||||||
|
string text = "NX ist im Verzeichns ${UGII_BASE_DIR} installiert. Im Verzeichnis ${UGII_ROOT_DIR} sind die Befehle.\nAls Systemsprache ist %UGII_LANG% eingestellt. Als temporäres NX Verzeichnis ist %UGII_TMP_DIR% definiert.";
|
||||||
|
|
||||||
|
private void ShowInformation()
|
||||||
|
{
|
||||||
|
labelProgramInfo.Text = String.Concat(ProgramName, "\n", ProgramVersion, "\n", Copyright); //Programm-Information anzeigen
|
||||||
|
|
||||||
|
// DLL-Information anzeigen
|
||||||
|
labelDLLInfo.Text = String.Concat(ReplaceVariableByValue.DllName, "\n", ReplaceVariableByValue.DllVersion, "\n", ReplaceVariableByValue.Copyright);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonStart_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
//Diese Zeile in das Programm kopieren
|
||||||
|
//
|
||||||
|
//Tauscht bekannte Umgebungsvariblen gegen ihren Wert aus. Unbekannte Umgebungsvariablen werden nicht getauscht.
|
||||||
|
string textNeu = ReplaceVariableByValue.Replace(text);
|
||||||
|
|
||||||
|
labelResult.Text = String.Concat("Text in dem bekannte Umgebungsvariablen gegen Werte getauscht wurden:\n\n", textNeu); //Hier wird der Text beispielhaft ausgegeben
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonStartWithMessage_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
//Diese Zeilen in das Programm kopieren
|
||||||
|
//
|
||||||
|
//Tauscht bekannte Umgebungsvariblen gegen ihren Wert aus. Unbekannte Umgebungsvariablen lösen eine Exception aus.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
labelResult.Text = "Text in dem bekannte Umgebungsvariablen gegen Werte getauscht wurden:"; //Text zurück setzen, falls schon etwas drinnen steht
|
||||||
|
string textNeu = ReplaceVariableByValue.Replace(text, true);
|
||||||
|
labelResult.Text = String.Concat("Text in dem bekannte Umgebungsvariablen gegen Werte getauscht wurden:\n\n", textNeu); //Hier wird der Text beispielhaft ausgegeben
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
MessageBox.Show(ex.Message);
|
||||||
|
}
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonStartWithMessage_Click_1(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
//Diese Zeilen in das Programm kopieren
|
||||||
|
//
|
||||||
|
//Tauscht bekannte Umgebungsvariblen gegen ihren Wert aus. Unbekannte Umgebungsvariablen lösen eine Exception aus.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
labelResult.Text = "Text in dem bekannte Umgebungsvariablen gegen Werte getauscht wurden:"; //Text zurück setzen, falls schon etwas drinnen steht
|
||||||
|
string textNeu = ReplaceVariableByValue.Replace(text, true);
|
||||||
|
labelResult.Text = String.Concat("Text in dem bekannte Umgebungsvariablen gegen Werte getauscht wurden:\n\n", textNeu); //Hier wird der Text beispielhaft ausgegeben
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
MessageBox.Show(ex.Message);
|
||||||
|
}
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -124,4 +124,16 @@
|
|||||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>648, 292</value>
|
<value>648, 292</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="buttonStart.Text" xml:space="preserve">
|
||||||
|
<value>Tausche Variable geben Wert (Ohne Meldung bei Fehler)</value>
|
||||||
|
</data>
|
||||||
|
<data name="buttonStartWithMessage.Text" xml:space="preserve">
|
||||||
|
<value>Tausche Variable geben Wert (Meldung bei Fehler)</value>
|
||||||
|
</data>
|
||||||
|
<data name="groupBoxDLLInfo.Text" xml:space="preserve">
|
||||||
|
<value>DLL Information</value>
|
||||||
|
</data>
|
||||||
|
<data name="groupBoxProgramInfo.Text" xml:space="preserve">
|
||||||
|
<value>Programm Information</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@ -117,18 +117,18 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
<data name="buttonStart.Size" type="System.Drawing.Size, System.Drawing">
|
|
||||||
<value>304, 23</value>
|
|
||||||
</data>
|
|
||||||
<data name="buttonStart.Text" xml:space="preserve">
|
<data name="buttonStart.Text" xml:space="preserve">
|
||||||
<value>Replace variable through value (without message when error)</value>
|
<value>Replace variable through value (without message when error)</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="groupBoxProgramInfo.Text" xml:space="preserve">
|
||||||
|
<value>Program Information</value>
|
||||||
|
</data>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="buttonStartWithMessage.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="buttonStartWithMessage.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>339, 257</value>
|
<value>413, 343</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="buttonStartWithMessage.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="buttonStartWithMessage.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>297, 23</value>
|
<value>375, 23</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="buttonStartWithMessage.Text" xml:space="preserve">
|
<data name="buttonStartWithMessage.Text" xml:space="preserve">
|
||||||
<value>Replace variable through value (with message when error)</value>
|
<value>Replace variable through value (with message when error)</value>
|
||||||
120
Test_ReplaceVariableByValue/Form1.resx
Normal file
120
Test_ReplaceVariableByValue/Form1.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
|||||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||||
// die einer Assembly zugeordnet sind.
|
// die einer Assembly zugeordnet sind.
|
||||||
[assembly: AssemblyTitle("Test_VaribleThroughString")]
|
[assembly: AssemblyTitle("Test_ReplaceVariableByValue")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("Test_VaribleThroughString")]
|
[assembly: AssemblyProduct("Test_ReplaceVariableByValue")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2019 by Eugen Höglinger")]
|
[assembly: AssemblyCopyright("Copyright © 2019 by Eugen Höglinger")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
@ -8,7 +8,7 @@
|
|||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Test_VaribleThroughString.Properties
|
namespace Test_ReplaceVariableByValue.Properties
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
@ -8,7 +8,7 @@
|
|||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace Test_VaribleThroughString.Properties
|
namespace Test_ReplaceVariableByValue.Properties
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
@ -6,8 +6,8 @@
|
|||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{196A7F39-5BDA-4E02-84E8-B30973309C8B}</ProjectGuid>
|
<ProjectGuid>{196A7F39-5BDA-4E02-84E8-B30973309C8B}</ProjectGuid>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<RootNamespace>Test_VaribleThroughString</RootNamespace>
|
<RootNamespace>Test_ReplaceVariableByValue</RootNamespace>
|
||||||
<AssemblyName>Test_VaribleThroughString</AssemblyName>
|
<AssemblyName>Test_ReplaceVariableByValue</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
@ -86,7 +86,7 @@
|
|||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\VaribleThroughString\VaribleThroughString.csproj">
|
<ProjectReference Include="..\ReplaceVariableByValue\ReplaceVariableByValue.csproj">
|
||||||
<Project>{8d5c22c1-dd1a-4a28-b636-445f02adb815}</Project>
|
<Project>{8d5c22c1-dd1a-4a28-b636-445f02adb815}</Project>
|
||||||
<Name>VaribleThroughString</Name>
|
<Name>VaribleThroughString</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
92
Test_VaribleThroughString/Form1.Designer.cs
generated
92
Test_VaribleThroughString/Form1.Designer.cs
generated
@ -1,92 +0,0 @@
|
|||||||
namespace Eugen.ESystem
|
|
||||||
{
|
|
||||||
partial class Form1
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Erforderliche Designervariable.
|
|
||||||
/// </summary>
|
|
||||||
private System.ComponentModel.IContainer components = null;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Verwendete Ressourcen bereinigen.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
|
||||||
protected override void Dispose(bool disposing)
|
|
||||||
{
|
|
||||||
if (disposing && (components != null))
|
|
||||||
{
|
|
||||||
components.Dispose();
|
|
||||||
}
|
|
||||||
base.Dispose(disposing);
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Vom Windows Form-Designer generierter Code
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Erforderliche Methode für die Designerunterstützung.
|
|
||||||
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
|
||||||
this.labelResult = new System.Windows.Forms.Label();
|
|
||||||
this.buttonStart = new System.Windows.Forms.Button();
|
|
||||||
this.labelSourceString = new System.Windows.Forms.Label();
|
|
||||||
this.labelDllInfo = new System.Windows.Forms.Label();
|
|
||||||
this.buttonStartWithMessage = new System.Windows.Forms.Button();
|
|
||||||
this.SuspendLayout();
|
|
||||||
//
|
|
||||||
// labelResult
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.labelResult, "labelResult");
|
|
||||||
this.labelResult.Name = "labelResult";
|
|
||||||
//
|
|
||||||
// buttonStart
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.buttonStart, "buttonStart");
|
|
||||||
this.buttonStart.Name = "buttonStart";
|
|
||||||
this.buttonStart.UseVisualStyleBackColor = true;
|
|
||||||
this.buttonStart.Click += new System.EventHandler(this.buttonStart_Click);
|
|
||||||
//
|
|
||||||
// labelSourceString
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.labelSourceString, "labelSourceString");
|
|
||||||
this.labelSourceString.Name = "labelSourceString";
|
|
||||||
//
|
|
||||||
// labelDllInfo
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.labelDllInfo, "labelDllInfo");
|
|
||||||
this.labelDllInfo.Name = "labelDllInfo";
|
|
||||||
//
|
|
||||||
// buttonStartWithMessage
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.buttonStartWithMessage, "buttonStartWithMessage");
|
|
||||||
this.buttonStartWithMessage.Name = "buttonStartWithMessage";
|
|
||||||
this.buttonStartWithMessage.UseVisualStyleBackColor = true;
|
|
||||||
this.buttonStartWithMessage.Click += new System.EventHandler(this.buttonStartWithMessage_Click);
|
|
||||||
//
|
|
||||||
// Form1
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this, "$this");
|
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
||||||
this.Controls.Add(this.buttonStartWithMessage);
|
|
||||||
this.Controls.Add(this.labelDllInfo);
|
|
||||||
this.Controls.Add(this.labelSourceString);
|
|
||||||
this.Controls.Add(this.buttonStart);
|
|
||||||
this.Controls.Add(this.labelResult);
|
|
||||||
this.Name = "Form1";
|
|
||||||
this.ResumeLayout(false);
|
|
||||||
this.PerformLayout();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
private System.Windows.Forms.Label labelResult;
|
|
||||||
private System.Windows.Forms.Button buttonStart;
|
|
||||||
private System.Windows.Forms.Label labelSourceString;
|
|
||||||
private System.Windows.Forms.Label labelDllInfo;
|
|
||||||
private System.Windows.Forms.Button buttonStartWithMessage;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,115 +0,0 @@
|
|||||||
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;
|
|
||||||
|
|
||||||
namespace Eugen.ESystem
|
|
||||||
{
|
|
||||||
public partial class Form1 : Form
|
|
||||||
{
|
|
||||||
#region Version und Copyright
|
|
||||||
// Version und Copyright
|
|
||||||
string programName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
|
|
||||||
string programVersion = 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
|
|
||||||
|
|
||||||
#region Programm-Info
|
|
||||||
/// <summary>
|
|
||||||
/// Contains the name of the program file
|
|
||||||
/// </summary>
|
|
||||||
public static string ProgramName { set; get; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Contains the version of the program file
|
|
||||||
/// </summary>
|
|
||||||
public static string ProgramVersion { set; get; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Contains the copyright notice
|
|
||||||
/// </summary>
|
|
||||||
public static string Copyright { set; get; }
|
|
||||||
|
|
||||||
private void SetProgramInfo()
|
|
||||||
{
|
|
||||||
//Name, Version und Copyright setzen
|
|
||||||
ProgramName = programName;
|
|
||||||
ProgramVersion = programVersion;
|
|
||||||
Copyright = copyright;
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
public Form1()
|
|
||||||
{
|
|
||||||
SetProgramInfo(); //Name, Version und Copyright setzen
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void buttonStart_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
string text = "NX ist im Verzeichns ${UGII_BASE_DIR} installiert. Im Verzeichnis ${UGII_ROOT_DIR} sind die Befehle.\nAls Systemsprache ist %UGII_LANG% eingestellt. Als temporäres NX Verzeichnis ist %UGII_TMP_DIR% definiert.";
|
|
||||||
|
|
||||||
labelSourceString.Text = text;
|
|
||||||
|
|
||||||
//
|
|
||||||
//Diese Zeile in das Programm kopieren
|
|
||||||
//
|
|
||||||
//Tauscht bekannte Umgebungsvariblen gegen ihren Wert aus. Unbekannte Umgebungsvariablen werden nicht getauscht.
|
|
||||||
string textNeu = VaribleThroughString.Replace(text);
|
|
||||||
//
|
|
||||||
labelResult.Text = textNeu; //Hier wird der Text beispielhaft ausgegeben
|
|
||||||
|
|
||||||
//DLL Information abrufen
|
|
||||||
var vts = new VaribleThroughString();
|
|
||||||
string dllInfo = String.Concat(VaribleThroughString.DllName, "\n", VaribleThroughString.DllVersion, "\n", VaribleThroughString.Copyright);
|
|
||||||
labelDllInfo.Text = dllInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void buttonStartWithMessage_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
string text = "NX ist im Verzeichns ${UGII_BASE_DIR} installiert. Im Verzeichnis ${UGII_ROOT_DIR} sind die Befehle.\nAls Systemsprache ist %UGII_LANG% eingestellt. Als temporäres NX Verzeichnis ist %UGII_TMP_DIR% definiert.";
|
|
||||||
|
|
||||||
labelSourceString.Text = text;
|
|
||||||
|
|
||||||
//
|
|
||||||
//Diese Zeilen in das Programm kopieren
|
|
||||||
//
|
|
||||||
//Tauscht bekannte Umgebungsvariblen gegen ihren Wert aus. Unbekannte Umgebungsvariablen lösen eine Exception aus.
|
|
||||||
try
|
|
||||||
{
|
|
||||||
string textNeu = VaribleThroughString.Replace(text, true);
|
|
||||||
labelResult.Text = textNeu; //Hier wird der Text beispielhaft ausgegeben
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
MessageBox.Show(ex.Message);
|
|
||||||
}
|
|
||||||
//
|
|
||||||
|
|
||||||
//DLL Information abrufen
|
|
||||||
var vts = new VaribleThroughString();
|
|
||||||
string dllInfo = String.Concat(VaribleThroughString.DllName, "\n", VaribleThroughString.DllVersion, "\n", VaribleThroughString.Copyright);
|
|
||||||
labelDllInfo.Text = dllInfo;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,276 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<root>
|
|
||||||
<!--
|
|
||||||
Microsoft ResX Schema
|
|
||||||
|
|
||||||
Version 2.0
|
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
|
||||||
that is mostly human readable. The generation and parsing of the
|
|
||||||
various data types are done through the TypeConverter classes
|
|
||||||
associated with the data types.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
||||||
<resheader name="version">2.0</resheader>
|
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
||||||
</data>
|
|
||||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
||||||
<comment>This is a comment</comment>
|
|
||||||
</data>
|
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
|
||||||
name/value pairs.
|
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
|
||||||
text/value conversion through the TypeConverter architecture.
|
|
||||||
Classes that don't support this are serialized and stored with the
|
|
||||||
mimetype set.
|
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
|
||||||
read any of the formats listed below.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
||||||
value : The object must be serialized into a byte array
|
|
||||||
: using a System.ComponentModel.TypeConverter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
-->
|
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:choice maxOccurs="unbounded">
|
|
||||||
<xsd:element name="metadata">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="assembly">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:attribute name="alias" type="xsd:string" />
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="data">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="resheader">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:choice>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:schema>
|
|
||||||
<resheader name="resmimetype">
|
|
||||||
<value>text/microsoft-resx</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="version">
|
|
||||||
<value>2.0</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="reader">
|
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="writer">
|
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
<data name="labelSourceString.Location" type="System.Drawing.Point, System.Drawing">
|
|
||||||
<value>12, 9</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelDllInfo.Parent" xml:space="preserve">
|
|
||||||
<value>$this</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelDllInfo.Type" xml:space="preserve">
|
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</data>
|
|
||||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
|
||||||
<value>6, 13</value>
|
|
||||||
</data>
|
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
|
||||||
<data name="buttonStartWithMessage.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
|
||||||
<value>Bottom, Right</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelResult.ZOrder" xml:space="preserve">
|
|
||||||
<value>4</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelResult.Location" type="System.Drawing.Point, System.Drawing">
|
|
||||||
<value>12, 83</value>
|
|
||||||
</data>
|
|
||||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
|
||||||
<data name="labelSourceString.TabIndex" type="System.Int32, mscorlib">
|
|
||||||
<value>2</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>buttonStartWithMessage.Type" xml:space="preserve">
|
|
||||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>buttonStart.Name" xml:space="preserve">
|
|
||||||
<value>buttonStart</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelDllInfo.Size" type="System.Drawing.Size, System.Drawing">
|
|
||||||
<value>16, 13</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>buttonStartWithMessage.ZOrder" xml:space="preserve">
|
|
||||||
<value>0</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>$this.Type" xml:space="preserve">
|
|
||||||
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelResult.AutoSize" type="System.Boolean, mscorlib">
|
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelResult.TabIndex" type="System.Int32, mscorlib">
|
|
||||||
<value>0</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>$this.Name" xml:space="preserve">
|
|
||||||
<value>Form1</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelResult.Text" xml:space="preserve">
|
|
||||||
<value>...</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>buttonStartWithMessage.Parent" xml:space="preserve">
|
|
||||||
<value>$this</value>
|
|
||||||
</data>
|
|
||||||
<data name="buttonStart.Size" type="System.Drawing.Size, System.Drawing">
|
|
||||||
<value>290, 23</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>buttonStart.Parent" xml:space="preserve">
|
|
||||||
<value>$this</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelResult.Name" xml:space="preserve">
|
|
||||||
<value>labelResult</value>
|
|
||||||
</data>
|
|
||||||
<data name="buttonStart.Location" type="System.Drawing.Point, System.Drawing">
|
|
||||||
<value>12, 257</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelDllInfo.AutoSize" type="System.Boolean, mscorlib">
|
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelSourceString.AutoSize" type="System.Boolean, mscorlib">
|
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
|
||||||
<value>648, 292</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>buttonStart.Type" xml:space="preserve">
|
|
||||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelSourceString.Type" xml:space="preserve">
|
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelResult.Parent" xml:space="preserve">
|
|
||||||
<value>$this</value>
|
|
||||||
</data>
|
|
||||||
<data name="buttonStart.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
|
||||||
<value>Bottom, Left</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelResult.Type" xml:space="preserve">
|
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelSourceString.ZOrder" xml:space="preserve">
|
|
||||||
<value>2</value>
|
|
||||||
</data>
|
|
||||||
<data name="buttonStartWithMessage.TabIndex" type="System.Int32, mscorlib">
|
|
||||||
<value>4</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelDllInfo.TabIndex" type="System.Int32, mscorlib">
|
|
||||||
<value>3</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>buttonStart.ZOrder" xml:space="preserve">
|
|
||||||
<value>3</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelDllInfo.ZOrder" xml:space="preserve">
|
|
||||||
<value>1</value>
|
|
||||||
</data>
|
|
||||||
<data name="buttonStart.TabIndex" type="System.Int32, mscorlib">
|
|
||||||
<value>1</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelSourceString.Parent" xml:space="preserve">
|
|
||||||
<value>$this</value>
|
|
||||||
</data>
|
|
||||||
<data name="buttonStartWithMessage.Location" type="System.Drawing.Point, System.Drawing">
|
|
||||||
<value>379, 257</value>
|
|
||||||
</data>
|
|
||||||
<data name="buttonStartWithMessage.Size" type="System.Drawing.Size, System.Drawing">
|
|
||||||
<value>257, 23</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelSourceString.Name" xml:space="preserve">
|
|
||||||
<value>labelSourceString</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>buttonStartWithMessage.Name" xml:space="preserve">
|
|
||||||
<value>buttonStartWithMessage</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelResult.Size" type="System.Drawing.Size, System.Drawing">
|
|
||||||
<value>16, 13</value>
|
|
||||||
</data>
|
|
||||||
<data name=">>labelDllInfo.Name" xml:space="preserve">
|
|
||||||
<value>labelDllInfo</value>
|
|
||||||
</data>
|
|
||||||
<data name="buttonStartWithMessage.Text" xml:space="preserve">
|
|
||||||
<value>Tausche Varable geben Wert (Meldung bei Fehler)</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelDllInfo.Location" type="System.Drawing.Point, System.Drawing">
|
|
||||||
<value>15, 171</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelDllInfo.Text" xml:space="preserve">
|
|
||||||
<value>...</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelSourceString.Size" type="System.Drawing.Size, System.Drawing">
|
|
||||||
<value>16, 13</value>
|
|
||||||
</data>
|
|
||||||
<data name="$this.Text" xml:space="preserve">
|
|
||||||
<value>Form1</value>
|
|
||||||
</data>
|
|
||||||
<data name="labelSourceString.Text" xml:space="preserve">
|
|
||||||
<value>...</value>
|
|
||||||
</data>
|
|
||||||
<data name="buttonStart.Text" xml:space="preserve">
|
|
||||||
<value>Tausche Varable geben Wert (Ohne Meldung bei Fehler)</value>
|
|
||||||
</data>
|
|
||||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
</root>
|
|
||||||
Loading…
Reference in New Issue
Block a user