Initialize

This commit is contained in:
Eugen Höglinger 2020-11-25 16:52:55 +01:00
parent 915f03e447
commit 6bcc11895c
14 changed files with 599 additions and 122 deletions

View File

@ -1,7 +1,7 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15 # Visual Studio Version 16
VisualStudioVersion = 15.0.28307.572 VisualStudioVersion = 16.0.30711.63
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AboutBox", "AboutBox\AboutBox.csproj", "{32F8CF98-005D-4F81-8381-CC2B8FC7A4D8}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AboutBox", "AboutBox\AboutBox.csproj", "{32F8CF98-005D-4F81-8381-CC2B8FC7A4D8}"
EndProject EndProject
@ -26,6 +26,7 @@ Global
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
RESX_NeutralResourcesLanguage = de-DE
SolutionGuid = {15165E4A-C2AA-46F2-94D4-379F9DC52145} SolutionGuid = {15165E4A-C2AA-46F2-94D4-379F9DC52145}
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal

View File

@ -33,11 +33,12 @@
this.labelProgramName = new System.Windows.Forms.Label(); this.labelProgramName = new System.Windows.Forms.Label();
this.labelVersion = new System.Windows.Forms.Label(); this.labelVersion = new System.Windows.Forms.Label();
this.labelCopyright = new System.Windows.Forms.Label(); this.labelCopyright = new System.Windows.Forms.Label();
this.labelDisklaimer = new System.Windows.Forms.Label(); this.labelDisclaimer = new System.Windows.Forms.Label();
this.textBox = new System.Windows.Forms.TextBox(); this.textBox = new System.Windows.Forms.TextBox();
this.buttonExport = new System.Windows.Forms.Button(); this.buttonExport = new System.Windows.Forms.Button();
this.buttonClose = new System.Windows.Forms.Button(); this.buttonClose = new System.Windows.Forms.Button();
this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
this.buttonDllInfo = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
@ -62,10 +63,10 @@
resources.ApplyResources(this.labelCopyright, "labelCopyright"); resources.ApplyResources(this.labelCopyright, "labelCopyright");
this.labelCopyright.Name = "labelCopyright"; this.labelCopyright.Name = "labelCopyright";
// //
// labelDisklaimer // labelDisclaimer
// //
resources.ApplyResources(this.labelDisklaimer, "labelDisklaimer"); resources.ApplyResources(this.labelDisclaimer, "labelDisclaimer");
this.labelDisklaimer.Name = "labelDisklaimer"; this.labelDisclaimer.Name = "labelDisclaimer";
// //
// textBox // textBox
// //
@ -91,19 +92,29 @@
// //
this.saveFileDialog.FileOk += new System.ComponentModel.CancelEventHandler(this.saveFileDialog_FileOk); this.saveFileDialog.FileOk += new System.ComponentModel.CancelEventHandler(this.saveFileDialog_FileOk);
// //
// buttonDllInfo
//
resources.ApplyResources(this.buttonDllInfo, "buttonDllInfo");
this.buttonDllInfo.Name = "buttonDllInfo";
this.buttonDllInfo.UseVisualStyleBackColor = true;
this.buttonDllInfo.Click += new System.EventHandler(this.buttonDllInfo_Click);
//
// AboutBox // AboutBox
// //
resources.ApplyResources(this, "$this"); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.buttonDllInfo);
this.Controls.Add(this.buttonClose); this.Controls.Add(this.buttonClose);
this.Controls.Add(this.buttonExport); this.Controls.Add(this.buttonExport);
this.Controls.Add(this.textBox); this.Controls.Add(this.textBox);
this.Controls.Add(this.labelDisklaimer); this.Controls.Add(this.labelDisclaimer);
this.Controls.Add(this.labelCopyright); this.Controls.Add(this.labelCopyright);
this.Controls.Add(this.labelVersion); this.Controls.Add(this.labelVersion);
this.Controls.Add(this.labelProgramName); this.Controls.Add(this.labelProgramName);
this.Controls.Add(this.pictureBox); this.Controls.Add(this.pictureBox);
this.Name = "AboutBox"; this.Name = "AboutBox";
this.ShowIcon = false;
this.Load += new System.EventHandler(this.AboutBox_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -116,10 +127,11 @@
private System.Windows.Forms.Label labelProgramName; private System.Windows.Forms.Label labelProgramName;
private System.Windows.Forms.Label labelVersion; private System.Windows.Forms.Label labelVersion;
private System.Windows.Forms.Label labelCopyright; private System.Windows.Forms.Label labelCopyright;
private System.Windows.Forms.Label labelDisklaimer; private System.Windows.Forms.Label labelDisclaimer;
private System.Windows.Forms.TextBox textBox; private System.Windows.Forms.TextBox textBox;
private System.Windows.Forms.Button buttonExport; private System.Windows.Forms.Button buttonExport;
private System.Windows.Forms.Button buttonClose; private System.Windows.Forms.Button buttonClose;
private System.Windows.Forms.SaveFileDialog saveFileDialog; private System.Windows.Forms.SaveFileDialog saveFileDialog;
private System.Windows.Forms.Button buttonDllInfo;
} }
} }

View File

@ -13,14 +13,18 @@ using System.Windows.Forms;
namespace Eugen.ESystem.Windows.Forms namespace Eugen.ESystem.Windows.Forms
{ {
/// <summary>
/// Displays a Program Information Box
/// </summary>
public partial class AboutBox : Form public partial class AboutBox : Form
{ {
#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();
@ -32,6 +36,47 @@ namespace Eugen.ESystem.Windows.Forms
//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
@ -55,37 +100,123 @@ namespace Eugen.ESystem.Windows.Forms
/// </summary> /// </summary>
public static string[] DllInfo { private set; get; } public static string[] DllInfo { private set; get; }
private void SetDllInfo() private static 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
public AboutBox(string programName, string programVersion, string programCopyright) /// <summary>
/// Displays a Program Information Box
/// </summary>
static AboutBox()
{ {
SetDllInfo(); //Name, Version und Copyright der DLL setzen SetDllInfo(); //Name, Version und Copyright der DLL setzen
}
/// <summary>
/// Displays a Program Information Box
/// </summary>
/// <param name="programName">A valid Program name.</param>
/// <param name="programVersion">A valid version number.</param>
/// <param name="programCopyright">The copyrigth Information</param>
/// <param name="showDllInfoButton">true = Button is displayed; false = Button is not displayed.</param>
public AboutBox(string programName, string programVersion, string programCopyright)
{
InitializeComponent(); InitializeComponent();
SetContent(programName, programVersion, programCopyright); //Fensterinhalt setzen SetContent(programName, programVersion, programCopyright); //Fensterinhalt setzen
} }
public AboutBox(string programName, string programVersion, string programCopyright, bool showDllInfoButton)
{
InitializeComponent();
if (showDllInfoButton)
{
buttonDllInfo.Enabled = true;
buttonDllInfo.Visible = true;
}
else
{
buttonDllInfo.Enabled = false;
buttonDllInfo.Visible = false;
}
SetContent(programName, programVersion, programCopyright); //Fensterinhalt setzen
}
/// <summary>
/// Displays a Program Information Box
/// </summary>
/// <param name="programName">A valid Program name.</param>
/// <param name="programVersion">A valid version number.</param>
/// <param name="programCopyright">The copyrigth Information</param>
/// <param name="icon"> valid icon in the size 32x32 dots with path. Larger icons are cropped. E.g.: C\:MyFolder\MyIcon.ico</param>
/// <param name="showDllInfoButton">true = Button is displayed; false = Button is not displayed.</param>
public AboutBox(string programName, string programVersion, string programCopyright, Icon icon, bool showDllInfoButton)
{
InitializeComponent();
pictureBox.Image = Bitmap.FromHicon(new Icon(icon, new Size(32, 32)).Handle);
if (showDllInfoButton)
{
buttonDllInfo.Enabled = true;
buttonDllInfo.Visible = true;
}
else
{
buttonDllInfo.Enabled = false;
buttonDllInfo.Visible = false;
}
SetContent(programName, programVersion, programCopyright); //Fensterinhalt setzen
}
private void AboutBox_Load(object sender, EventArgs e)
{
DllInfoSelected = false;
}
protected string ProgramName { private set; get; } protected string ProgramName { private set; get; }
protected string ProgramVersion { private set; get; } protected string ProgramVersion { private set; get; }
protected string ProgramCopyright { private set; get; } protected string ProgramCopyright { private set; get; }
protected bool DllInfoSelected { set; get; }
protected bool ShowDllInfoButton { set; get; }
private void buttonClose_Click(object sender, EventArgs e) private void buttonClose_Click(object sender, EventArgs e)
{ {
this.Close(); //Das Fenster schliessen if (DllInfoSelected)
{
buttonDllInfo.Enabled = true;
labelDisclaimer.Text = Language.disclaimerHeader001;
textBox.Text = Language.disclaimer;
DllInfoSelected = false;
}
else
{
this.Close(); //Das Fenster schliessen
}
}
private void buttonDllInfo_Click(object sender, EventArgs e)
{
//DLL-Informationen anzeigen
DllInfoSelected = true;
buttonDllInfo.Enabled = false;
labelDisclaimer.Text = Language.dllInfo001;
textBox.Text = "";
if (GetAllDllNames() != null)
{
textBox.Text = CreateDllInfo(GetAllDllNames());
}
} }
private void buttonExport_Click(object sender, EventArgs e) private void buttonExport_Click(object sender, EventArgs e)
@ -114,6 +245,26 @@ namespace Eugen.ESystem.Windows.Forms
} }
} }
private void SaveFileDialogFileOk(object sender, System.ComponentModel.CancelEventArgs e)
{
string fileName = saveFileDialog.FileName;
string text = ExportText();
try
{
File.WriteAllText(fileName, text); //Schreibt den Text in eine Datei
}
catch (Exception)
{
MessageBox.Show(Language.message001,
Language.messageHead001,
MessageBoxButtons.OK,
MessageBoxIcon.Error,
MessageBoxDefaultButton.Button1);
}
}
private void SetContent(string programName, string programVersion, string programCopyright) private void SetContent(string programName, string programVersion, string programCopyright)
{ {
labelProgramName.Text = programName; labelProgramName.Text = programName;
@ -130,38 +281,73 @@ namespace Eugen.ESystem.Windows.Forms
} }
labelCopyright.Text = programCopyright; labelCopyright.Text = programCopyright;
ProgramCopyright = programCopyright; ProgramCopyright = programCopyright;
}
private void SaveFileDialogFileOk(object sender, System.ComponentModel.CancelEventArgs e) textBox.Text = Language.disclaimer;
{
string fileName = saveFileDialog.FileName;
string text = ExportText();
try
{
File.WriteAllText(fileName, text); //Schreibt den Text in eine Datei
}
catch (Exception)
{
MessageBox.Show(Language.message001,
Language.messageHead001,
MessageBoxButtons.OK,
MessageBoxIcon.Error,
MessageBoxDefaultButton.Button1);
}
} }
private string ExportText() private string ExportText()
{ {
if (textBox.SelectionLength > 0) if (DllInfoSelected)
{ {
return textBox.SelectedText; //Gibt den selektierten Text zurück DateTime today = DateTime.Now;
return String.Concat(Language.dllInfo001, "\r\n", today.ToString("yyyy-MM-dd - HH:mm:ss"), "\r\n--------------------------------------------------------------------------------\r\n", FixLineLenght.Format(textBox.Text, 80)); //Gibt den ganzen Text zurück
} }
else else
{ {
return String.Concat(ProgramName, "\r\n", ProgramVersion, "\r\n", ProgramCopyright, "\r\n--------------------------------------------------------------------------------\r\n", FixLineLenght.Format(textBox.Text, 80)); //Gibt den ganzen Text zurück if (textBox.SelectionLength > 0)
{
return textBox.SelectedText; //Gibt den selektierten Text zurück
}
else
{
return String.Concat(ProgramName, "\r\n", ProgramVersion, "\r\n", ProgramCopyright, "\r\n--------------------------------------------------------------------------------\r\n", FixLineLenght.Format(textBox.Text, 80)); //Gibt den ganzen Text zurück
}
} }
} }
private List<string> GetAllDllNames()
{
List<string> dllNames = new List<string>();
if (dllNames != null)
{
dllNames.Clear();
}
DirectoryInfo ParentDirectory = new DirectoryInfo(Application.StartupPath);
foreach (FileInfo fi in ParentDirectory.GetFiles())
{
if (fi.Extension.ToLower() == ".dll")
{
dllNames.Add(fi.FullName);
}
}
return dllNames;
}
private string CreateDllInfo(List<string> dllNames)
{
string dllInfos = "";
string dllName = "";
string dllVersion = "";
if (dllNames != null)
{
foreach (var name in dllNames)
{
Assembly assembly = Assembly.LoadFrom(name);
dllName = String.Concat(assembly.ToString().Remove(assembly.ToString().IndexOf(",")), ".dll");
dllVersion = assembly.ToString().Remove(0, assembly.ToString().IndexOf("Version=") + 8);
dllVersion = dllVersion.Remove(dllVersion.IndexOf(","));
dllInfos = String.Concat(dllInfos, dllName, "\r\n", dllVersion, "\r\n\r\n");
}
}
return dllInfos.Remove(dllInfos.LastIndexOf("\r\n\r\n"));
}
} }
} }

View File

@ -118,6 +118,24 @@
<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" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Text" xml:space="preserve">
<value>Über</value>
</data>
<data name="buttonClose.Text" xml:space="preserve">
<value>Schließen</value>
</data>
<data name="buttonDllInfo.Text" xml:space="preserve">
<value>DLL-Info</value>
</data>
<data name="buttonExport.Text" xml:space="preserve">
<value>Exportieren</value>
</data>
<data name="labelDisclaimer.Text" xml:space="preserve">
<value>Verzichtserklärung</value>
</data>
<data name="labelProgramName.Text" xml:space="preserve">
<value>ProgrammName</value>
</data>
<data name="pictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="pictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
@ -169,4 +187,7 @@
n+cU1BA7UtmpRvd62f+G5dWscM+EhcV/ABQ+MjIwFZTbAAAAAElFTkSuQmCC n+cU1BA7UtmpRvd62f+G5dWscM+EhcV/ABQ+MjIwFZTbAAAAAElFTkSuQmCC
</value> </value>
</data> </data>
<data name="textBox.Text" xml:space="preserve">
<value>DIE SOFTWARE WIRD ZUR VERFÜGUNG GESTELLT, WIE SIE IST, OHNE JEGLICHE HAFTUNG IRGENDEINER ART. BIS ZUM MAXIMAL, IN DIESEM FALL GESETZLICH ERLAUBTEN, LEHNT DER AUTOR WEITERHIN JEDE HAFTUNG AB, EINGESCHLOSSEN JEDE GARANTIE UNTER KAUFLEUTEN, DIE GARANTIE FÜR DEN EINSATZ ZU BESTIMMTEN ZWECKEN UND NICHTEINSETZBARKEIT. DIE GESAMTE GEFAHR, DIE AUS DEM GEBRAUCH ODER DER LEISTUNG VON DEM PRODUKT UND DEN UNTERLAGEN HERAUS ENTSTEHT, BLEIBT BEI DEM BENUTZER DIESER SOFTWARE. SOWEIT GESETZLICH ZULÄSSIG, IST DER AUTOR IN KEINEM FALL HAFTBAR FÜR IRGENDWELCHE FOLGE-, ZUFÄLLIGEN, INDIREKTEN ODER ANDEREN SCHÄDEN WELCHER ART AUCH IMMER (EINSCHLIESSLICH, ABER NICHT BESCHRÄNKT AUF SCHÄDEN AUS ENTGANGENEN GEWINN, GESCHÄFTSUNTERBRECHUNG, VERLUST VON GESCHÄFTLICHEN INFORMATIONEN ODER VERMÖGENSSCHÄDEN), DIE AUS DER VERWENDUNG ODER DER UNMÖGLICHKEIT DER VERWENDUNG DES SOFTWAREPRODUKTS RESULTIEREN, SELBST WENN DER AUTOR AUF DIE MÖGLICHKEIT SOLCHER SCHÄDEN HINGEWIESEN WORDEN IST.</value>
</data>
</root> </root>

View File

@ -118,6 +118,30 @@
<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" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Text" xml:space="preserve">
<value>About</value>
</data>
<data name="buttonClose.Text" xml:space="preserve">
<value>Close</value>
</data>
<data name="buttonDllInfo.Text" xml:space="preserve">
<value>DLL-Info</value>
</data>
<data name="buttonExport.Text" xml:space="preserve">
<value>Export</value>
</data>
<data name="labelDisclaimer.Text" xml:space="preserve">
<value>Disclaimer</value>
</data>
<data name="labelDisklaimer.Size" type="System.Drawing.Size, System.Drawing">
<value>55, 13</value>
</data>
<data name="labelProgramName.Size" type="System.Drawing.Size, System.Drawing">
<value>280, 44</value>
</data>
<data name="labelProgramName.Text" xml:space="preserve">
<value>ProgramName</value>
</data>
<data name="pictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="pictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
@ -169,25 +193,7 @@
n+cU1BA7UtmpRvd62f+G5dWscM+EhcV/ABQ+MjIwFZTbAAAAAElFTkSuQmCC n+cU1BA7UtmpRvd62f+G5dWscM+EhcV/ABQ+MjIwFZTbAAAAAElFTkSuQmCC
</value> </value>
</data> </data>
<data name="labelProgramName.Size" type="System.Drawing.Size, System.Drawing">
<value>280, 44</value>
</data>
<data name="labelProgramName.Text" xml:space="preserve">
<value>ProgramName</value>
</data>
<data name="labelDisklaimer.Size" type="System.Drawing.Size, System.Drawing">
<value>55, 13</value>
</data>
<data name="labelDisklaimer.Text" xml:space="preserve">
<value>Disklaimer</value>
</data>
<data name="textBox.Text" xml:space="preserve"> <data name="textBox.Text" xml:space="preserve">
<value>THE SOFTWARE IS PROVIDED AS IS, WITHOUT ANY LIABILITY OF ANY KIND. UP TO THE MAXIMUM, IN THIS CASE PERMITTED BY LAW, THE AUTHOR CONTINUES TO DISCLAIM ALL LIABILITY, INCLUDING ANY WARRANTY AMONG MERCHANTS, THE WARRANTY FOR USE FOR SPECIFIC PURPOSES AND NON-USABILITY. THE ENTIRE RISK ARISING FROM THE USE OR PERFORMANCE OF THE PRODUCT AND THE DOCUMENTATION REMAINS WITH THE USER OF THIS SOFTWARE. TO THE FULLEST EXTENT PERMITTED BY LAW, THE AUTHOR SHALL IN NO EVENT BE LIABLE FOR ANY CONSEQUENTIAL, INCIDENTAL, INDIRECT OR OTHER DAMAGES WHATSOEVER (INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION OR LOSS OF PROFITS) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE PRODUCT, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</value> <value>THE SOFTWARE IS PROVIDED AS IS, WITHOUT ANY LIABILITY OF ANY KIND. UP TO THE MAXIMUM, IN THIS CASE PERMITTED BY LAW, THE AUTHOR CONTINUES TO DISCLAIM ALL LIABILITY, INCLUDING ANY WARRANTY AMONG MERCHANTS, THE WARRANTY FOR USE FOR SPECIFIC PURPOSES AND NON-USABILITY. THE ENTIRE RISK ARISING FROM THE USE OR PERFORMANCE OF THE PRODUCT AND THE DOCUMENTATION REMAINS WITH THE USER OF THIS SOFTWARE. TO THE FULLEST EXTENT PERMITTED BY LAW, THE AUTHOR SHALL IN NO EVENT BE LIABLE FOR ANY CONSEQUENTIAL, INCIDENTAL, INDIRECT OR OTHER DAMAGES WHATSOEVER (INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION OR LOSS OF PROFITS) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE PRODUCT, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</value>
</data> </data>
<data name="buttonExport.Text" xml:space="preserve">
<value>Export</value>
</data>
<data name="buttonClose.Text" xml:space="preserve">
<value>Close</value>
</data>
</root> </root>

View File

@ -189,7 +189,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;pictureBox.ZOrder" xml:space="preserve"> <data name="&gt;&gt;pictureBox.ZOrder" xml:space="preserve">
<value>7</value> <value>8</value>
</data> </data>
<data name="labelProgramName.AutoSize" type="System.Boolean, mscorlib"> <data name="labelProgramName.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@ -201,13 +201,13 @@
<value>70, 13</value> <value>70, 13</value>
</data> </data>
<data name="labelProgramName.Size" type="System.Drawing.Size, System.Drawing"> <data name="labelProgramName.Size" type="System.Drawing.Size, System.Drawing">
<value>308, 44</value> <value>314, 44</value>
</data> </data>
<data name="labelProgramName.TabIndex" type="System.Int32, mscorlib"> <data name="labelProgramName.TabIndex" type="System.Int32, mscorlib">
<value>4</value> <value>4</value>
</data> </data>
<data name="labelProgramName.Text" xml:space="preserve"> <data name="labelProgramName.Text" xml:space="preserve">
<value>Programmname</value> <value>ProgrammName</value>
</data> </data>
<data name="&gt;&gt;labelProgramName.Name" xml:space="preserve"> <data name="&gt;&gt;labelProgramName.Name" xml:space="preserve">
<value>labelProgramName</value> <value>labelProgramName</value>
@ -219,7 +219,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;labelProgramName.ZOrder" xml:space="preserve"> <data name="&gt;&gt;labelProgramName.ZOrder" xml:space="preserve">
<value>6</value> <value>7</value>
</data> </data>
<data name="labelVersion.AutoSize" type="System.Boolean, mscorlib"> <data name="labelVersion.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@ -238,6 +238,7 @@
</data> </data>
<data name="labelVersion.Text" xml:space="preserve"> <data name="labelVersion.Text" xml:space="preserve">
<value>Version</value> <value>Version</value>
<comment>@Invariant</comment>
</data> </data>
<data name="&gt;&gt;labelVersion.Name" xml:space="preserve"> <data name="&gt;&gt;labelVersion.Name" xml:space="preserve">
<value>labelVersion</value> <value>labelVersion</value>
@ -249,7 +250,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;labelVersion.ZOrder" xml:space="preserve"> <data name="&gt;&gt;labelVersion.ZOrder" xml:space="preserve">
<value>5</value> <value>6</value>
</data> </data>
<data name="labelCopyright.AutoSize" type="System.Boolean, mscorlib"> <data name="labelCopyright.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@ -268,6 +269,7 @@
</data> </data>
<data name="labelCopyright.Text" xml:space="preserve"> <data name="labelCopyright.Text" xml:space="preserve">
<value>Copyright</value> <value>Copyright</value>
<comment>@Invariant</comment>
</data> </data>
<data name="&gt;&gt;labelCopyright.Name" xml:space="preserve"> <data name="&gt;&gt;labelCopyright.Name" xml:space="preserve">
<value>labelCopyright</value> <value>labelCopyright</value>
@ -279,34 +281,34 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;labelCopyright.ZOrder" xml:space="preserve"> <data name="&gt;&gt;labelCopyright.ZOrder" xml:space="preserve">
<value>4</value> <value>5</value>
</data> </data>
<data name="labelDisklaimer.AutoSize" type="System.Boolean, mscorlib"> <data name="labelDisclaimer.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
</data> </data>
<data name="labelDisklaimer.Location" type="System.Drawing.Point, System.Drawing"> <data name="labelDisclaimer.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 144</value> <value>12, 144</value>
</data> </data>
<data name="labelDisklaimer.Size" type="System.Drawing.Size, System.Drawing"> <data name="labelDisclaimer.Size" type="System.Drawing.Size, System.Drawing">
<value>94, 13</value> <value>94, 13</value>
</data> </data>
<data name="labelDisklaimer.TabIndex" type="System.Int32, mscorlib"> <data name="labelDisclaimer.TabIndex" type="System.Int32, mscorlib">
<value>7</value> <value>7</value>
</data> </data>
<data name="labelDisklaimer.Text" xml:space="preserve"> <data name="labelDisclaimer.Text" xml:space="preserve">
<value>Verzichtserklärung</value> <value>Verzichtserklärung</value>
</data> </data>
<data name="&gt;&gt;labelDisklaimer.Name" xml:space="preserve"> <data name="&gt;&gt;labelDisclaimer.Name" xml:space="preserve">
<value>labelDisklaimer</value> <value>labelDisclaimer</value>
</data> </data>
<data name="&gt;&gt;labelDisklaimer.Type" xml:space="preserve"> <data name="&gt;&gt;labelDisclaimer.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data> </data>
<data name="&gt;&gt;labelDisklaimer.Parent" xml:space="preserve"> <data name="&gt;&gt;labelDisclaimer.Parent" xml:space="preserve">
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;labelDisklaimer.ZOrder" xml:space="preserve"> <data name="&gt;&gt;labelDisclaimer.ZOrder" xml:space="preserve">
<value>3</value> <value>4</value>
</data> </data>
<data name="textBox.Location" type="System.Drawing.Point, System.Drawing"> <data name="textBox.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 162</value> <value>12, 162</value>
@ -337,7 +339,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;textBox.ZOrder" xml:space="preserve"> <data name="&gt;&gt;textBox.ZOrder" xml:space="preserve">
<value>2</value> <value>3</value>
</data> </data>
<data name="buttonExport.Location" type="System.Drawing.Point, System.Drawing"> <data name="buttonExport.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 341</value> <value>12, 341</value>
@ -361,7 +363,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;buttonExport.ZOrder" xml:space="preserve"> <data name="&gt;&gt;buttonExport.ZOrder" xml:space="preserve">
<value>1</value> <value>2</value>
</data> </data>
<data name="buttonClose.Location" type="System.Drawing.Point, System.Drawing"> <data name="buttonClose.Location" type="System.Drawing.Point, System.Drawing">
<value>407, 341</value> <value>407, 341</value>
@ -373,7 +375,7 @@
<value>1</value> <value>1</value>
</data> </data>
<data name="buttonClose.Text" xml:space="preserve"> <data name="buttonClose.Text" xml:space="preserve">
<value>Schliesen</value> <value>Schließen</value>
</data> </data>
<data name="&gt;&gt;buttonClose.Name" xml:space="preserve"> <data name="&gt;&gt;buttonClose.Name" xml:space="preserve">
<value>buttonClose</value> <value>buttonClose</value>
@ -385,11 +387,41 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;buttonClose.ZOrder" xml:space="preserve"> <data name="&gt;&gt;buttonClose.ZOrder" xml:space="preserve">
<value>0</value> <value>1</value>
</data> </data>
<metadata name="saveFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="saveFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<data name="buttonDllInfo.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="buttonDllInfo.Location" type="System.Drawing.Point, System.Drawing">
<value>209, 341</value>
</data>
<data name="buttonDllInfo.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="buttonDllInfo.TabIndex" type="System.Int32, mscorlib">
<value>8</value>
</data>
<data name="buttonDllInfo.Text" xml:space="preserve">
<value>DLL-Info</value>
</data>
<data name="buttonDllInfo.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;buttonDllInfo.Name" xml:space="preserve">
<value>buttonDllInfo</value>
</data>
<data name="&gt;&gt;buttonDllInfo.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="&gt;&gt;buttonDllInfo.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;buttonDllInfo.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
@ -415,7 +447,7 @@
<value>System.Windows.Forms.SaveFileDialog, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Windows.Forms.SaveFileDialog, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data> </data>
<data name="&gt;&gt;$this.Name" xml:space="preserve"> <data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>About</value> <value>AboutBox</value>
</data> </data>
<data name="&gt;&gt;$this.Type" xml:space="preserve"> <data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>

View File

@ -19,7 +19,7 @@ namespace Eugen.ESystem.Windows.Forms {
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. // -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 // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Language { internal class Language {
@ -39,7 +39,7 @@ namespace Eugen.ESystem.Windows.Forms {
internal static global::System.Resources.ResourceManager ResourceManager { internal static global::System.Resources.ResourceManager ResourceManager {
get { get {
if (object.ReferenceEquals(resourceMan, null)) { if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("About.Language", typeof(Language).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AboutBox.Language", typeof(Language).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
@ -69,6 +69,33 @@ namespace Eugen.ESystem.Windows.Forms {
} }
} }
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die DIE SOFTWARE WIRD ZUR VERFÜGUNG GESTELLT, WIE SIE IST, OHNE JEGLICHE HAFTUNG IRGENDEINER ART. BIS ZUM MAXIMAL, IN DIESEM FALL GESETZLICH ERLAUBTEN, LEHNT DER AUTOR WEITERHIN JEDE HAFTUNG AB, EINGESCHLOSSEN JEDE GARANTIE UNTER KAUFLEUTEN, DIE GARANTIE FÜR DEN EINSATZ ZU BESTIMMTEN ZWECKEN UND NICHTEINSETZBARKEIT. DIE GESAMTE GEFAHR, DIE AUS DEM GEBRAUCH ODER DER LEISTUNG VON DEM PRODUKT UND DEN UNTERLAGEN HERAUS ENTSTEHT, BLEIBT BEI DEM BENUTZER DIESER SOFTWARE. SOWEIT GESETZLICH ZULÄSSIG, IST DER AUTOR IN K [Rest der Zeichenfolge wurde abgeschnitten]&quot;; ähnelt.
/// </summary>
internal static string disclaimer {
get {
return ResourceManager.GetString("disclaimer", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Verzichtserklärung: ähnelt.
/// </summary>
internal static string disclaimerHeader001 {
get {
return ResourceManager.GetString("disclaimerHeader001", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Auflistung aller im Programm verwendeten DLLs: ähnelt.
/// </summary>
internal static string dllInfo001 {
get {
return ResourceManager.GetString("dllInfo001", resourceCulture);
}
}
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Datei konnte nicht gespeichert werden. ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die Datei konnte nicht gespeichert werden. ähnelt.
/// </summary> /// </summary>

View File

@ -120,6 +120,15 @@
<data name="dialog001" xml:space="preserve"> <data name="dialog001" xml:space="preserve">
<value>Text-Datei (*.txt)|*.txt|Alle Dateien (*.*)|*.*</value> <value>Text-Datei (*.txt)|*.txt|Alle Dateien (*.*)|*.*</value>
</data> </data>
<data name="disclaimer" xml:space="preserve">
<value>DIE SOFTWARE WIRD ZUR VERFÜGUNG GESTELLT, WIE SIE IST, OHNE JEGLICHE HAFTUNG IRGENDEINER ART. BIS ZUM MAXIMAL, IN DIESEM FALL GESETZLICH ERLAUBTEN, LEHNT DER AUTOR WEITERHIN JEDE HAFTUNG AB, EINGESCHLOSSEN JEDE GARANTIE UNTER KAUFLEUTEN, DIE GARANTIE FÜR DEN EINSATZ ZU BESTIMMTEN ZWECKEN UND NICHTEINSETZBARKEIT. DIE GESAMTE GEFAHR, DIE AUS DEM GEBRAUCH ODER DER LEISTUNG VON DEM PRODUKT UND DEN UNTERLAGEN HERAUS ENTSTEHT, BLEIBT BEI DEM BENUTZER DIESER SOFTWARE. SOWEIT GESETZLICH ZULÄSSIG, IST DER AUTOR IN KEINEM FALL HAFTBAR FÜR IRGENDWELCHE FOLGE-, ZUFÄLLIGEN, INDIREKTEN ODER ANDEREN SCHÄDEN WELCHER ART AUCH IMMER (EINSCHLIESSLICH, ABER NICHT BESCHRÄNKT AUF SCHÄDEN AUS ENTGANGENEN GEWINN, GESCHÄFTSUNTERBRECHUNG, VERLUST VON GESCHÄFTLICHEN INFORMATIONEN ODER VERMÖGENSSCHÄDEN), DIE AUS DER VERWENDUNG ODER DER UNMÖGLICHKEIT DER VERWENDUNG DES SOFTWAREPRODUKTS RESULTIEREN, SELBST WENN DER AUTOR AUF DIE MÖGLICHKEIT SOLCHER SCHÄDEN HINGEWIESEN WORDEN IST.</value>
</data>
<data name="disclaimerHeader001" xml:space="preserve">
<value>Verzichtserklärung</value>
</data>
<data name="dllInfo001" xml:space="preserve">
<value>Auflistung aller im Programm verwendeten DLLs:</value>
</data>
<data name="message001" xml:space="preserve"> <data name="message001" xml:space="preserve">
<value>Datei konnte nicht gespeichert werden.</value> <value>Datei konnte nicht gespeichert werden.</value>
</data> </data>

View File

@ -120,6 +120,15 @@
<data name="dialog001" xml:space="preserve"> <data name="dialog001" xml:space="preserve">
<value>Text-File (*.txt)|*.txt|All Files (*.*)|*.*</value> <value>Text-File (*.txt)|*.txt|All Files (*.*)|*.*</value>
</data> </data>
<data name="disclaimer" xml:space="preserve">
<value>THE SOFTWARE IS PROVIDED AS IS, WITHOUT ANY LIABILITY OF ANY KIND. UP TO THE MAXIMUM, IN THIS CASE PERMITTED BY LAW, THE AUTHOR CONTINUES TO DISCLAIM ALL LIABILITY, INCLUDING ANY WARRANTY AMONG MERCHANTS, THE WARRANTY FOR USE FOR SPECIFIC PURPOSES AND NON-USABILITY. THE ENTIRE RISK ARISING FROM THE USE OR PERFORMANCE OF THE PRODUCT AND THE DOCUMENTATION REMAINS WITH THE USER OF THIS SOFTWARE. TO THE FULLEST EXTENT PERMITTED BY LAW, THE AUTHOR SHALL IN NO EVENT BE LIABLE FOR ANY CONSEQUENTIAL, INCIDENTAL, INDIRECT OR OTHER DAMAGES WHATSOEVER (INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION OR LOSS OF PROFITS) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE PRODUCT, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</value>
</data>
<data name="disclaimerHeader001" xml:space="preserve">
<value>Disclaimer</value>
</data>
<data name="dllInfo001" xml:space="preserve">
<value>Listing of all DLLs used in the program:</value>
</data>
<data name="message001" xml:space="preserve"> <data name="message001" xml:space="preserve">
<value>File could not be saved.</value> <value>File could not be saved.</value>
</data> </data>

View File

@ -120,6 +120,15 @@
<data name="dialog001" xml:space="preserve"> <data name="dialog001" xml:space="preserve">
<value>Text-Datei (*.txt)|*.txt|Alle Dateien (*.*)|*.*</value> <value>Text-Datei (*.txt)|*.txt|Alle Dateien (*.*)|*.*</value>
</data> </data>
<data name="disclaimer" xml:space="preserve">
<value>DIE SOFTWARE WIRD ZUR VERFÜGUNG GESTELLT, WIE SIE IST, OHNE JEGLICHE HAFTUNG IRGENDEINER ART. BIS ZUM MAXIMAL, IN DIESEM FALL GESETZLICH ERLAUBTEN, LEHNT DER AUTOR WEITERHIN JEDE HAFTUNG AB, EINGESCHLOSSEN JEDE GARANTIE UNTER KAUFLEUTEN, DIE GARANTIE FÜR DEN EINSATZ ZU BESTIMMTEN ZWECKEN UND NICHTEINSETZBARKEIT. DIE GESAMTE GEFAHR, DIE AUS DEM GEBRAUCH ODER DER LEISTUNG VON DEM PRODUKT UND DEN UNTERLAGEN HERAUS ENTSTEHT, BLEIBT BEI DEM BENUTZER DIESER SOFTWARE. SOWEIT GESETZLICH ZULÄSSIG, IST DER AUTOR IN KEINEM FALL HAFTBAR FÜR IRGENDWELCHE FOLGE-, ZUFÄLLIGEN, INDIREKTEN ODER ANDEREN SCHÄDEN WELCHER ART AUCH IMMER (EINSCHLIESSLICH, ABER NICHT BESCHRÄNKT AUF SCHÄDEN AUS ENTGANGENEN GEWINN, GESCHÄFTSUNTERBRECHUNG, VERLUST VON GESCHÄFTLICHEN INFORMATIONEN ODER VERMÖGENSSCHÄDEN), DIE AUS DER VERWENDUNG ODER DER UNMÖGLICHKEIT DER VERWENDUNG DES SOFTWAREPRODUKTS RESULTIEREN, SELBST WENN DER AUTOR AUF DIE MÖGLICHKEIT SOLCHER SCHÄDEN HINGEWIESEN WORDEN IST.</value>
</data>
<data name="disclaimerHeader001" xml:space="preserve">
<value>Verzichtserklärung</value>
</data>
<data name="dllInfo001" xml:space="preserve">
<value>Auflistung aller im Programm verwendeten DLLs:</value>
</data>
<data name="message001" xml:space="preserve"> <data name="message001" xml:space="preserve">
<value>Datei konnte nicht gespeichert werden.</value> <value>Datei konnte nicht gespeichert werden.</value>
</data> </data>

View File

@ -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("About")] [assembly: AssemblyTitle("AboutBox")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("About")] [assembly: AssemblyProduct("AboutBox")]
[assembly: AssemblyCopyright("Copyright © 2019 by Eugen Höglinger")] [assembly: AssemblyCopyright("Copyright © 2019 by Eugen Höglinger")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]

BIN
Daten/Customer.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -28,46 +28,116 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.button = new System.Windows.Forms.Button(); this.buttonAbout = new System.Windows.Forms.Button();
this.labelInfo = 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.buttonAboutWithDllInfo = new System.Windows.Forms.Button();
this.button1buttonAboutWithCustomerIconAndDllInfo = new System.Windows.Forms.Button();
this.groupBoxProgramInfo.SuspendLayout();
this.groupBoxDLLInfo.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// button // buttonAbout
// //
this.button.Location = new System.Drawing.Point(13, 234); this.buttonAbout.Location = new System.Drawing.Point(12, 160);
this.button.Name = "button"; this.buttonAbout.Name = "buttonAbout";
this.button.Size = new System.Drawing.Size(267, 23); this.buttonAbout.Size = new System.Drawing.Size(776, 23);
this.button.TabIndex = 0; this.buttonAbout.TabIndex = 0;
this.button.Text = "Über anzeigen"; this.buttonAbout.Text = "Über anzeigen";
this.button.UseVisualStyleBackColor = true; this.buttonAbout.UseVisualStyleBackColor = true;
this.button.Click += new System.EventHandler(this.button_Click); this.buttonAbout.Click += new System.EventHandler(this.button_Click);
// //
// labelInfo // groupBoxProgramInfo
// //
this.labelInfo.AutoSize = true; this.groupBoxProgramInfo.Controls.Add(this.labelProgramInfo);
this.labelInfo.Location = new System.Drawing.Point(13, 13); this.groupBoxProgramInfo.Location = new System.Drawing.Point(12, 372);
this.labelInfo.Name = "labelInfo"; this.groupBoxProgramInfo.Name = "groupBoxProgramInfo";
this.labelInfo.Size = new System.Drawing.Size(16, 13); this.groupBoxProgramInfo.Size = new System.Drawing.Size(385, 66);
this.labelInfo.TabIndex = 1; this.groupBoxProgramInfo.TabIndex = 9;
this.labelInfo.Text = "..."; 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 = "...";
//
// buttonAboutWithDllInfo
//
this.buttonAboutWithDllInfo.Location = new System.Drawing.Point(12, 190);
this.buttonAboutWithDllInfo.Name = "buttonAboutWithDllInfo";
this.buttonAboutWithDllInfo.Size = new System.Drawing.Size(776, 23);
this.buttonAboutWithDllInfo.TabIndex = 11;
this.buttonAboutWithDllInfo.Text = "Über mit DLL-Informationen anzeigen";
this.buttonAboutWithDllInfo.UseVisualStyleBackColor = true;
this.buttonAboutWithDllInfo.Click += new System.EventHandler(this.buttonAboutWithDllInfo_Click);
//
// button1buttonAboutWithCustomerIconAndDllInfo
//
this.button1buttonAboutWithCustomerIconAndDllInfo.Location = new System.Drawing.Point(12, 220);
this.button1buttonAboutWithCustomerIconAndDllInfo.Name = "button1buttonAboutWithCustomerIconAndDllInfo";
this.button1buttonAboutWithCustomerIconAndDllInfo.Size = new System.Drawing.Size(776, 23);
this.button1buttonAboutWithCustomerIconAndDllInfo.TabIndex = 12;
this.button1buttonAboutWithCustomerIconAndDllInfo.Text = "Über mit Customer Icon und DLL-Informationen anzeigen";
this.button1buttonAboutWithCustomerIconAndDllInfo.UseVisualStyleBackColor = true;
this.button1buttonAboutWithCustomerIconAndDllInfo.Click += new System.EventHandler(this.button1buttonAboutWithCustomerIconAndDllInfo_Click);
// //
// Form1 // Form1
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(292, 269); this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.labelInfo); this.Controls.Add(this.button1buttonAboutWithCustomerIconAndDllInfo);
this.Controls.Add(this.button); this.Controls.Add(this.buttonAboutWithDllInfo);
this.Controls.Add(this.groupBoxProgramInfo);
this.Controls.Add(this.groupBoxDLLInfo);
this.Controls.Add(this.buttonAbout);
this.Name = "Form1"; this.Name = "Form1";
this.Text = "Test_About"; this.Text = "Test_About";
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.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
private System.Windows.Forms.Button button; private System.Windows.Forms.Button buttonAbout;
private System.Windows.Forms.Label labelInfo; 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 buttonAboutWithDllInfo;
private System.Windows.Forms.Button button1buttonAboutWithCustomerIconAndDllInfo;
} }
} }

View File

@ -9,6 +9,7 @@ using System.Reflection;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using Eugen.ESystem.Windows.Forms;
namespace Eugen.ESystem.Windows.Forms namespace Eugen.ESystem.Windows.Forms
{ {
@ -16,10 +17,10 @@ namespace Eugen.ESystem.Windows.Forms
{ {
#region Version und Copyright #region Version und Copyright
// Version und Copyright // Version und Copyright
string name = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen string programName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
string version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); string programVersion = 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; string copyright = GenerateCopyright();
string icon = Application.StartupPath + "\\Info.bmp"; string icon = Application.StartupPath + "\\Info.bmp";
//Assembly Datum und Zeit //Assembly Datum und Zeit
static DateTime value = AssemblyDateTime(); static DateTime value = AssemblyDateTime();
@ -32,28 +33,122 @@ namespace Eugen.ESystem.Windows.Forms
//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 = ((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 #endregion
public Form1() #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(); InitializeComponent();
} }
private void Form1_Load(object sender, EventArgs e)
{
ShowInformation(); //Programm- und DLL-Information anzeigen
}
private void ShowInformation()
{
labelProgramInfo.Text = String.Concat(ProgramName, "\n", ProgramVersion, "\n", Copyright); //Programm-Information anzeigen
// DLL-Information anzeigen
labelDLLInfo.Text = String.Concat(AboutBox.DllName, "\n", AboutBox.DllVersion, "\n", AboutBox.Copyright);
}
private void button_Click(object sender, EventArgs e) private void button_Click(object sender, EventArgs e)
{ {
// //--------------------------------------------------------------
//Diese Zeile und die dazugehörige Methode in das Programm kopieren //--- Diesen Bereich ins eigene Programm einfügen --- Anfang ---
// //--------------------------------------------------------------
// Zeigt das 'AboutBox' Fenster an // Zeigt das 'AboutBox' Fenster an
ShowAboutBox(name, version, copyright); var about = new AboutBox(ProgramName, ProgramVersion, Copyright);
about.ShowDialog();
//--------------------------------------------------------------
//--- Diesen Bereich ins eigene Programm einfügen --- Ende ---
//--------------------------------------------------------------
} }
private void ShowAboutBox(string programName, string programVersion, string programCopyright) private void buttonAboutWithDllInfo_Click(object sender, EventArgs e)
{ {
var about = new Eugen.ESystem.Windows.Forms.AboutBox(programName, programVersion, programCopyright); // Zeigt das 'AboutBox' Fenster mit DLL-Informationen an
about.ShowDialog(); var aboutDll = new AboutBox(ProgramName, ProgramVersion, Copyright, true);
aboutDll.ShowDialog();
}
labelInfo.Text = String.Concat(AboutBox.DllName, "\n", AboutBox.DllVersion, "\n", AboutBox.Copyright); private void button1buttonAboutWithCustomerIconAndDllInfo_Click(object sender, EventArgs e)
{
// Zeigt das 'AboutBox' Fenster mit Customer Icon und DLL-Informationen an
Icon icon = new Icon(@"H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\AboutBox.git\Daten\Customer.ico");
var aboutDll = new AboutBox(ProgramName, ProgramVersion, Copyright, icon, true);
aboutDll.ShowDialog();
} }
} }
} }