Änderung
- Umschalten der Ansicht zwischen internen und allen DLLs neu dazu
- Export Methode an die neue Ansicht angepasst
- 'FixLineLenght' komplett überarbeitet
- Trennzeichen für neue Zeile ' ' und '\'
- Leichtere lesbarkeit von langen Datei-Pfaden
- Keine führenden Leerzeichen mehr am Zeilenanfang
- Zeilenumbrüche im Text werden erkannt und bleiben erhalten
- Leerzeilen werden berücksichtigt
This commit is contained in:
parent
ddb1becd12
commit
6a8932b1d4
22
AboutBox/AboutBox.Designer.cs
generated
22
AboutBox/AboutBox.Designer.cs
generated
@ -39,6 +39,8 @@
|
|||||||
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();
|
this.buttonDllInfo = new System.Windows.Forms.Button();
|
||||||
|
this.radioButtonAll = new System.Windows.Forms.RadioButton();
|
||||||
|
this.radioButtonInternal = new System.Windows.Forms.RadioButton();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
@ -99,10 +101,28 @@
|
|||||||
this.buttonDllInfo.UseVisualStyleBackColor = true;
|
this.buttonDllInfo.UseVisualStyleBackColor = true;
|
||||||
this.buttonDllInfo.Click += new System.EventHandler(this.buttonDllInfo_Click);
|
this.buttonDllInfo.Click += new System.EventHandler(this.buttonDllInfo_Click);
|
||||||
//
|
//
|
||||||
|
// radioButtonAll
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.radioButtonAll, "radioButtonAll");
|
||||||
|
this.radioButtonAll.Checked = true;
|
||||||
|
this.radioButtonAll.Name = "radioButtonAll";
|
||||||
|
this.radioButtonAll.TabStop = true;
|
||||||
|
this.radioButtonAll.UseVisualStyleBackColor = true;
|
||||||
|
this.radioButtonAll.CheckedChanged += new System.EventHandler(this.radioButtonAll_CheckedChanged);
|
||||||
|
//
|
||||||
|
// radioButtonInternal
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.radioButtonInternal, "radioButtonInternal");
|
||||||
|
this.radioButtonInternal.Name = "radioButtonInternal";
|
||||||
|
this.radioButtonInternal.UseVisualStyleBackColor = true;
|
||||||
|
this.radioButtonInternal.CheckedChanged += new System.EventHandler(this.radioButtonInternal_CheckedChanged);
|
||||||
|
//
|
||||||
// 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.radioButtonInternal);
|
||||||
|
this.Controls.Add(this.radioButtonAll);
|
||||||
this.Controls.Add(this.buttonDllInfo);
|
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);
|
||||||
@ -136,5 +156,7 @@
|
|||||||
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;
|
private System.Windows.Forms.Button buttonDllInfo;
|
||||||
|
private System.Windows.Forms.RadioButton radioButtonAll;
|
||||||
|
private System.Windows.Forms.RadioButton radioButtonInternal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,11 +2,13 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Resources;
|
using System.Resources;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
@ -281,6 +283,14 @@ namespace Eugen.ESystem.Windows.Forms
|
|||||||
if (DllInfoSelected)
|
if (DllInfoSelected)
|
||||||
{
|
{
|
||||||
buttonDllInfo.Enabled = true;
|
buttonDllInfo.Enabled = true;
|
||||||
|
buttonDllInfo.Visible = true;
|
||||||
|
radioButtonAll.Enabled = false;
|
||||||
|
radioButtonAll.Visible = false;
|
||||||
|
radioButtonInternal.Enabled = false;
|
||||||
|
radioButtonInternal.Visible = false;
|
||||||
|
|
||||||
|
textBox.WordWrap = true;
|
||||||
|
textBox.ScrollBars = ScrollBars.Vertical;
|
||||||
|
|
||||||
labelDisclaimer.Text = Language.disclaimerHeader001;
|
labelDisclaimer.Text = Language.disclaimerHeader001;
|
||||||
textBox.Text = Language.disclaimer;
|
textBox.Text = Language.disclaimer;
|
||||||
@ -297,14 +307,29 @@ namespace Eugen.ESystem.Windows.Forms
|
|||||||
//DLL-Informationen anzeigen
|
//DLL-Informationen anzeigen
|
||||||
DllInfoSelected = true;
|
DllInfoSelected = true;
|
||||||
buttonDllInfo.Enabled = false;
|
buttonDllInfo.Enabled = false;
|
||||||
|
buttonDllInfo.Visible = false;
|
||||||
|
radioButtonAll.Enabled = true;
|
||||||
|
radioButtonAll.Visible = true;
|
||||||
|
radioButtonInternal.Enabled = true;
|
||||||
|
radioButtonInternal.Visible = true;
|
||||||
|
|
||||||
|
textBox.WordWrap = false;
|
||||||
|
textBox.ScrollBars = ScrollBars.Both;
|
||||||
|
|
||||||
labelDisclaimer.Text = Language.dllInfo001;
|
labelDisclaimer.Text = Language.dllInfo001;
|
||||||
textBox.Text = "";
|
textBox.Text = "";
|
||||||
|
|
||||||
if (GetAllDllNames() != null)
|
textBox.Text = CreateDllInfo();
|
||||||
{
|
|
||||||
textBox.Text = CreateDllInfo(GetAllDllNames());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void radioButtonAll_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
textBox.Text = CreateDllInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void radioButtonInternal_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
textBox.Text = CreateDllInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buttonExport_Click(object sender, EventArgs e)
|
private void buttonExport_Click(object sender, EventArgs e)
|
||||||
@ -379,8 +404,16 @@ namespace Eugen.ESystem.Windows.Forms
|
|||||||
{
|
{
|
||||||
DateTime today = DateTime.Now;
|
DateTime today = DateTime.Now;
|
||||||
|
|
||||||
|
if (radioButtonAll.Checked)
|
||||||
|
{
|
||||||
|
return String.Concat(Language.dllInfo002, "\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
|
||||||
|
{
|
||||||
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
|
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
|
||||||
{
|
{
|
||||||
if (textBox.SelectionLength > 0)
|
if (textBox.SelectionLength > 0)
|
||||||
@ -396,11 +429,51 @@ namespace Eugen.ESystem.Windows.Forms
|
|||||||
|
|
||||||
private List<string> GetAllDllNames()
|
private List<string> GetAllDllNames()
|
||||||
{
|
{
|
||||||
List<string> dllNames = new List<string>();
|
List<string> dlls = new List<string>();
|
||||||
|
|
||||||
if (dllNames != null)
|
if (dlls != null)
|
||||||
{
|
{
|
||||||
dllNames.Clear();
|
dlls.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
dlls = GetGlobalDllNames();
|
||||||
|
if (GetInternalDllNames() != null)
|
||||||
|
{
|
||||||
|
dlls.AddRange(GetInternalDllNames());
|
||||||
|
}
|
||||||
|
|
||||||
|
dlls.Sort();
|
||||||
|
|
||||||
|
return dlls;
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<string> GetGlobalDllNames()
|
||||||
|
{
|
||||||
|
List<string> dlls = new List<string>();
|
||||||
|
|
||||||
|
if (dlls != null)
|
||||||
|
{
|
||||||
|
dlls.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (ProcessModule module in Process.GetCurrentProcess().Modules)
|
||||||
|
{
|
||||||
|
dlls.Add(module.ModuleName + Environment.NewLine + module.FileVersionInfo.ProductVersion + Environment.NewLine + module.FileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
dlls.Sort();
|
||||||
|
|
||||||
|
return dlls;
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<string> GetInternalDllNames()
|
||||||
|
{
|
||||||
|
List<string> dlls = new List<string>();
|
||||||
|
string dllVersion = "";
|
||||||
|
|
||||||
|
if (dlls != null)
|
||||||
|
{
|
||||||
|
dlls.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
DirectoryInfo ParentDirectory = new DirectoryInfo(Application.StartupPath);
|
DirectoryInfo ParentDirectory = new DirectoryInfo(Application.StartupPath);
|
||||||
@ -408,34 +481,45 @@ namespace Eugen.ESystem.Windows.Forms
|
|||||||
{
|
{
|
||||||
if (fi.Extension.ToLower() == ".dll")
|
if (fi.Extension.ToLower() == ".dll")
|
||||||
{
|
{
|
||||||
dllNames.Add(fi.FullName);
|
Assembly assembly = Assembly.LoadFrom(fi.FullName.Remove(0, fi.FullName.LastIndexOf("\\") + 1));
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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 = assembly.ToString().Remove(0, assembly.ToString().IndexOf("Version=") + 8);
|
||||||
dllVersion = dllVersion.Remove(dllVersion.IndexOf(","));
|
dllVersion = dllVersion.Remove(dllVersion.IndexOf(","));
|
||||||
|
|
||||||
dllInfos = String.Concat(dllInfos, dllName, "\r\n", dllVersion, "\r\n\r\n");
|
dlls.Add(String.Concat(fi.FullName.Remove(0, fi.FullName.LastIndexOf("\\") + 1), Environment.NewLine, dllVersion, Environment.NewLine, fi.FullName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return dllInfos.Remove(dllInfos.LastIndexOf("\r\n\r\n"));
|
dlls.Sort();
|
||||||
|
|
||||||
|
return dlls;
|
||||||
|
}
|
||||||
|
|
||||||
|
private string CreateDllInfo()
|
||||||
|
{
|
||||||
|
string dllInfo = "";
|
||||||
|
|
||||||
|
if (radioButtonAll.Checked)
|
||||||
|
{
|
||||||
|
foreach (var item in GetAllDllNames())
|
||||||
|
{
|
||||||
|
dllInfo = String.Concat(dllInfo, item, Environment.NewLine, Environment.NewLine);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
foreach (var item in GetInternalDllNames())
|
||||||
|
{
|
||||||
|
dllInfo = String.Concat(dllInfo, item, Environment.NewLine, Environment.NewLine);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
while (dllInfo.EndsWith("\n") || dllInfo.EndsWith("\r"))
|
||||||
|
{
|
||||||
|
dllInfo = dllInfo.Remove(dllInfo.Length - 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
return dllInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetWindow(int width, int hight)
|
private void SetWindow(int width, int hight)
|
||||||
|
|||||||
@ -190,4 +190,10 @@
|
|||||||
<data name="textBox.Text" xml:space="preserve">
|
<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>
|
<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>
|
||||||
|
<data name="radioButtonAll.Text" xml:space="preserve">
|
||||||
|
<value>Alle anzeigen</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonInternal.Text" xml:space="preserve">
|
||||||
|
<value>Nur interne anzeigen</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@ -196,4 +196,10 @@
|
|||||||
<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="radioButtonAll.Text" xml:space="preserve">
|
||||||
|
<value>Show all</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonInternal.Text" xml:space="preserve">
|
||||||
|
<value>Show only internal</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@ -189,7 +189,7 @@
|
|||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>pictureBox.ZOrder" xml:space="preserve">
|
<data name=">>pictureBox.ZOrder" xml:space="preserve">
|
||||||
<value>8</value>
|
<value>10</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>
|
||||||
@ -219,7 +219,7 @@
|
|||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>labelProgramName.ZOrder" xml:space="preserve">
|
<data name=">>labelProgramName.ZOrder" xml:space="preserve">
|
||||||
<value>7</value>
|
<value>9</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>
|
||||||
@ -250,7 +250,7 @@
|
|||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>labelVersion.ZOrder" xml:space="preserve">
|
<data name=">>labelVersion.ZOrder" xml:space="preserve">
|
||||||
<value>6</value>
|
<value>8</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>
|
||||||
@ -281,7 +281,7 @@
|
|||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>labelCopyright.ZOrder" xml:space="preserve">
|
<data name=">>labelCopyright.ZOrder" xml:space="preserve">
|
||||||
<value>5</value>
|
<value>7</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="labelDisclaimer.AutoSize" type="System.Boolean, mscorlib">
|
<data name="labelDisclaimer.AutoSize" type="System.Boolean, mscorlib">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
@ -308,7 +308,7 @@
|
|||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>labelDisclaimer.ZOrder" xml:space="preserve">
|
<data name=">>labelDisclaimer.ZOrder" xml:space="preserve">
|
||||||
<value>4</value>
|
<value>6</value>
|
||||||
</data>
|
</data>
|
||||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
<data name="textBox.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
<data name="textBox.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||||
@ -342,7 +342,7 @@
|
|||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>textBox.ZOrder" xml:space="preserve">
|
<data name=">>textBox.ZOrder" xml:space="preserve">
|
||||||
<value>3</value>
|
<value>5</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="buttonExport.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
<data name="buttonExport.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||||
<value>Bottom, Left</value>
|
<value>Bottom, Left</value>
|
||||||
@ -369,7 +369,7 @@
|
|||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>buttonExport.ZOrder" xml:space="preserve">
|
<data name=">>buttonExport.ZOrder" xml:space="preserve">
|
||||||
<value>2</value>
|
<value>4</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="buttonClose.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
<data name="buttonClose.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||||
<value>Bottom, Right</value>
|
<value>Bottom, Right</value>
|
||||||
@ -396,7 +396,7 @@
|
|||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>buttonClose.ZOrder" xml:space="preserve">
|
<data name=">>buttonClose.ZOrder" xml:space="preserve">
|
||||||
<value>1</value>
|
<value>3</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>
|
||||||
@ -432,6 +432,78 @@
|
|||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>buttonDllInfo.ZOrder" xml:space="preserve">
|
<data name=">>buttonDllInfo.ZOrder" xml:space="preserve">
|
||||||
|
<value>2</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonAll.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||||
|
<value>Bottom</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonAll.AutoSize" type="System.Boolean, mscorlib">
|
||||||
|
<value>True</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonAll.Enabled" type="System.Boolean, mscorlib">
|
||||||
|
<value>False</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonAll.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
|
<value>123, 344</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonAll.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
|
<value>88, 17</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonAll.TabIndex" type="System.Int32, mscorlib">
|
||||||
|
<value>9</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonAll.Text" xml:space="preserve">
|
||||||
|
<value>Alle anzeigen</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonAll.Visible" type="System.Boolean, mscorlib">
|
||||||
|
<value>False</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>radioButtonAll.Name" xml:space="preserve">
|
||||||
|
<value>radioButtonAll</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>radioButtonAll.Type" xml:space="preserve">
|
||||||
|
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>radioButtonAll.Parent" xml:space="preserve">
|
||||||
|
<value>$this</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>radioButtonAll.ZOrder" xml:space="preserve">
|
||||||
|
<value>1</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonInternal.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||||
|
<value>Bottom</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonInternal.AutoSize" type="System.Boolean, mscorlib">
|
||||||
|
<value>True</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonInternal.Enabled" type="System.Boolean, mscorlib">
|
||||||
|
<value>False</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonInternal.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
|
<value>247, 344</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonInternal.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
|
<value>123, 17</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonInternal.TabIndex" type="System.Int32, mscorlib">
|
||||||
|
<value>10</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonInternal.Text" xml:space="preserve">
|
||||||
|
<value>Nur interne anzeigen</value>
|
||||||
|
</data>
|
||||||
|
<data name="radioButtonInternal.Visible" type="System.Boolean, mscorlib">
|
||||||
|
<value>False</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>radioButtonInternal.Name" xml:space="preserve">
|
||||||
|
<value>radioButtonInternal</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>radioButtonInternal.Type" xml:space="preserve">
|
||||||
|
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>radioButtonInternal.Parent" xml:space="preserve">
|
||||||
|
<value>$this</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>radioButtonInternal.ZOrder" xml:space="preserve">
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</data>
|
</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">
|
||||||
|
|||||||
@ -23,42 +23,96 @@ namespace Eugen.ESystem.Windows.Forms
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static string Format(string text, int lineLenght)
|
public static string Format(string text, int lineLenght)
|
||||||
{
|
{
|
||||||
int pos = 0;
|
int ratedLenght = 0;
|
||||||
int spacePos = 0;
|
int spacePos = 0;
|
||||||
|
int currentPos = 0;
|
||||||
string character = "";
|
string character = "";
|
||||||
string temp = "";
|
string resultText = "";
|
||||||
string result = "";
|
|
||||||
|
|
||||||
while (text.Length > 0)
|
|
||||||
{
|
|
||||||
if (text.Length <= lineLenght)
|
if (text.Length <= lineLenght)
|
||||||
{
|
{
|
||||||
result = String.Concat(result, text);
|
resultText = text;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
while (text.Length > 0)
|
||||||
|
{
|
||||||
|
while (ratedLenght < lineLenght)
|
||||||
|
{
|
||||||
|
if (currentPos < text.Length)
|
||||||
|
{
|
||||||
|
character = text.Substring(currentPos, 1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (character == "\n" || character == "\r")
|
||||||
|
{
|
||||||
|
currentPos++;
|
||||||
|
ratedLenght = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (character == " " || character == "\\")
|
||||||
|
{
|
||||||
|
spacePos = currentPos;
|
||||||
|
}
|
||||||
|
|
||||||
|
currentPos++;
|
||||||
|
ratedLenght++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (spacePos == 0)
|
||||||
|
{
|
||||||
|
spacePos = currentPos;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (text.Length <= lineLenght || text.Length == spacePos)
|
||||||
|
{
|
||||||
|
resultText = resultText + text;
|
||||||
text = "";
|
text = "";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
while (pos <= lineLenght)
|
resultText = resultText + text.Remove(spacePos) + Environment.NewLine;
|
||||||
{
|
|
||||||
character = text.Remove(0, pos).Remove(1);
|
|
||||||
|
|
||||||
if (character == " ")
|
|
||||||
{
|
|
||||||
spacePos = pos + 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
pos++;
|
|
||||||
}
|
|
||||||
|
|
||||||
temp = text.Remove(spacePos - 1);
|
|
||||||
text = text.Remove(0, spacePos);
|
text = text.Remove(0, spacePos);
|
||||||
result = String.Concat(result, temp, "\r\n");
|
|
||||||
pos = 0;
|
if (text.StartsWith(" "))
|
||||||
|
{
|
||||||
|
text = text.Remove(0, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ratedLenght = 0;
|
||||||
|
currentPos = 0;
|
||||||
spacePos = 0;
|
spacePos = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
resultText = CorrectLastLine(resultText, lineLenght);
|
||||||
|
|
||||||
|
return resultText;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static string CorrectLastLine(string text, int lineLenght)
|
||||||
|
{
|
||||||
|
string tempMid = "";
|
||||||
|
string tempEnd = "";
|
||||||
|
|
||||||
|
tempEnd = text.Remove(0, text.LastIndexOf(Environment.NewLine) + 2);
|
||||||
|
tempMid = text.Remove(text.LastIndexOf(Environment.NewLine));
|
||||||
|
tempMid = tempMid.Remove(0, tempMid.LastIndexOf(Environment.NewLine) + 2);
|
||||||
|
|
||||||
|
if ((tempMid.Length + tempEnd.Length) <= lineLenght)
|
||||||
|
{
|
||||||
|
return text.Remove(text.LastIndexOf(Environment.NewLine), 2);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return text;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
9
AboutBox/Language.Designer.cs
generated
9
AboutBox/Language.Designer.cs
generated
@ -96,6 +96,15 @@ namespace Eugen.ESystem.Windows.Forms {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Sucht eine lokalisierte Zeichenfolge, die Auflistung aller im Programm verwendeten DLLs: ähnelt.
|
||||||
|
/// </summary>
|
||||||
|
internal static string dllInfo002 {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("dllInfo002", 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>
|
||||||
|
|||||||
@ -129,6 +129,9 @@
|
|||||||
<data name="dllInfo001" xml:space="preserve">
|
<data name="dllInfo001" xml:space="preserve">
|
||||||
<value>Auflistung aller im Programm verwendeten eigenen DLLs:</value>
|
<value>Auflistung aller im Programm verwendeten eigenen DLLs:</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="dllInfo002" 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>
|
||||||
|
|||||||
@ -129,6 +129,9 @@
|
|||||||
<data name="dllInfo001" xml:space="preserve">
|
<data name="dllInfo001" xml:space="preserve">
|
||||||
<value>Listing of all custom DLLs used in the program:</value>
|
<value>Listing of all custom DLLs used in the program:</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="dllInfo002" 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>
|
||||||
|
|||||||
@ -129,6 +129,9 @@
|
|||||||
<data name="dllInfo001" xml:space="preserve">
|
<data name="dllInfo001" xml:space="preserve">
|
||||||
<value>Auflistung aller im Programm verwendeten DLLs:</value>
|
<value>Auflistung aller im Programm verwendeten DLLs:</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="dllInfo002" 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>
|
||||||
|
|||||||
@ -34,6 +34,10 @@
|
|||||||
<StartupObject />
|
<StartupObject />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="heabox, Version=1.0.7821.29620, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\AboutBox\bin\Debug\heabox.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
@ -60,11 +64,5 @@
|
|||||||
<DependentUpon>Form1.cs</DependentUpon>
|
<DependentUpon>Form1.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\AboutBox\AboutBox.csproj">
|
|
||||||
<Project>{32f8cf98-005d-4f81-8381-cc2b8fc7a4d8}</Project>
|
|
||||||
<Name>AboutBox</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
Loading…
Reference in New Issue
Block a user