lantool

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.clttr.info/lantool.git
Log | Files | Refs | README | LICENSE

commit 49a1f97562e8a4c7253029e729aacf89d6e2f2f0
parent fa9033672a2cb83c117b37181c996bd58f33f591
Author: rwa <apollo@rw-net.de>
Date:   Thu,  6 Sep 2018 19:36:16 +0200

commit code

Diffstat:
ALanTool.sln | 36++++++++++++++++++++++++++++++++++++
ALanTool/AboutBox.Designer.cs | 185+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/AboutBox.cs | 101+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/AboutBox.resx | 777+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Classes/Config.cs | 568+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Classes/Enums.cs | 57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Classes/GlobalCache.cs | 297+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Classes/NativeMethods.cs | 12++++++++++++
ALanTool/Classes/StuffItem.cs | 648+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Classes/StuffItemPair.cs | 13+++++++++++++
ALanTool/Classes/StuffItemTree.cs | 304+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Classes/TaskBarList.cs | 101+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Classes/TreeViewExtensions.cs | 28++++++++++++++++++++++++++++
ALanTool/ConfigEdit.Designer.cs | 386+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/ConfigEdit.cs | 163+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/ConfigEdit.resx | 168+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/ConfigListBox.Designer.cs | 161+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/ConfigListBox.cs | 188+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/ConfigListBox.resx | 139+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Configurations/rw-net.ruleset | 20++++++++++++++++++++
ALanTool/Configurations/rw-net.snk | 0
ALanTool/Dokumentation/Abgelehnt.txt | 9+++++++++
ALanTool/Dokumentation/LanTool_ChangeLog.txt | 144+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Dokumentation/LanTool_Tipps.txt | 31+++++++++++++++++++++++++++++++
ALanTool/Dokumentation/ToDo.txt | 36++++++++++++++++++++++++++++++++++++
ALanTool/FilterDialog.Designer.cs | 114+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/FilterDialog.cs | 28++++++++++++++++++++++++++++
ALanTool/FilterDialog.resx | 250+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/GlobalSuppressions.cs | 41+++++++++++++++++++++++++++++++++++++++++
ALanTool/Images/Aktualisieren.png | 0
ALanTool/Images/DateiError.png | 0
ALanTool/Images/DateiExcluded.png | 0
ALanTool/Images/DateiExcludedAndDeleted.png | 0
ALanTool/Images/DateiFrischGesaugt.png | 0
ALanTool/Images/DateiGruen.png | 0
ALanTool/Images/DateiLoeschen.png | 0
ALanTool/Images/DateiRot.png | 0
ALanTool/Images/DateiSaugen.png | 0
ALanTool/Images/DateiWeiss.png | 0
ALanTool/Images/Demarkieren.png | 0
ALanTool/Images/DownArrow.png | 0
ALanTool/Images/Entfernen.png | 0
ALanTool/Images/Hinzufuegen.png | 0
ALanTool/Images/Markieren.png | 0
ALanTool/Images/Oeffnen.png | 0
ALanTool/Images/Ordner.png | 0
ALanTool/Images/OrdnerLoeschen.png | 0
ALanTool/Images/UpArrow.png | 0
ALanTool/Images/Zuklappen.png | 0
ALanTool/Images/newcap.ico | 0
ALanTool/LanTool.csproj | 274+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/MainForm.Designer.cs | 611+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/MainForm.cs | 2363+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/MainForm.resx | 344+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/NewFolderDialog.cs | 29+++++++++++++++++++++++++++++
ALanTool/NewFolderDialog.designer.cs | 112+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/NewFolderDialog.resx | 250+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Program.cs | 98+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Properties/AssemblyInfo.cs | 36++++++++++++++++++++++++++++++++++++
ALanTool/Properties/Resources.Designer.cs | 133+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Properties/Resources.resx | 144+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Properties/app.manifest | 48++++++++++++++++++++++++++++++++++++++++++++++++
ALanTool/Resources/DeleteHS.png | 0
ALanTool/Resources/EditTableHS.png | 0
ALanTool/Resources/FindHS.png | 0
ALanTool/Resources/HTMLPage.png | 0
ALanTool/Resources/OpenFile.png | 0
ALanTool/Resources/openfolderHS.png | 0
ALanTool/Resources/saveHS.png | 0
ALanTool/app.config | 3+++
70 files changed, 9450 insertions(+), 0 deletions(-)

diff --git a/LanTool.sln b/LanTool.sln @@ -0,0 +1,36 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LanTool", "LanTool\LanTool.csproj", "{30E17D21-D90E-4069-9C40-E960119BA296}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {30E17D21-D90E-4069-9C40-E960119BA296}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {30E17D21-D90E-4069-9C40-E960119BA296}.Debug|Any CPU.Build.0 = Debug|Any CPU + {30E17D21-D90E-4069-9C40-E960119BA296}.Release|Any CPU.ActiveCfg = Release|Any CPU + {30E17D21-D90E-4069-9C40-E960119BA296}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(SourceCodeControl) = preSolution + SccNumberOfProjects = 2 + SccLocalPath0 = . + SccProjectUniqueName1 = LanTool\\LanTool.csproj + SccLocalPath1 = . + SccProjectFilePathRelativizedFromConnection1 = LanTool\\ + EndGlobalSection + GlobalSection(TestCaseManagementSettings) = postSolution + CategoryFile = LanTool.vsmdi + EndGlobalSection + GlobalSection(SubversionScc) = preSolution + Svn-Managed = True + Manager = AnkhSVN - Subversion Support for Visual Studio + EndGlobalSection +EndGlobal diff --git a/LanTool/AboutBox.Designer.cs b/LanTool/AboutBox.Designer.cs @@ -0,0 +1,185 @@ +namespace LanTool +{ + partial class AboutBox + { + /// <summary> + /// Erforderliche Designervariable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Verwendete Ressourcen bereinigen. + /// </summary> + 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(AboutBox)); + this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); + this.logoPictureBox = new System.Windows.Forms.PictureBox(); + this.labelProductName = new System.Windows.Forms.Label(); + this.labelVersion = new System.Windows.Forms.Label(); + this.labelCopyright = new System.Windows.Forms.Label(); + this.labelCompanyName = new System.Windows.Forms.Label(); + this.textBoxDescription = new System.Windows.Forms.TextBox(); + this.okButton = new System.Windows.Forms.Button(); + this.tableLayoutPanel.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit(); + this.SuspendLayout(); + // + // tableLayoutPanel + // + this.tableLayoutPanel.ColumnCount = 2; + this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 160F)); + this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.tableLayoutPanel.Controls.Add(this.logoPictureBox, 0, 0); + this.tableLayoutPanel.Controls.Add(this.labelProductName, 1, 0); + this.tableLayoutPanel.Controls.Add(this.labelVersion, 1, 1); + this.tableLayoutPanel.Controls.Add(this.labelCopyright, 1, 2); + this.tableLayoutPanel.Controls.Add(this.labelCompanyName, 1, 3); + this.tableLayoutPanel.Controls.Add(this.textBoxDescription, 1, 4); + this.tableLayoutPanel.Controls.Add(this.okButton, 1, 5); + this.tableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel.Location = new System.Drawing.Point(9, 9); + this.tableLayoutPanel.Name = "tableLayoutPanel"; + this.tableLayoutPanel.RowCount = 6; + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.Size = new System.Drawing.Size(480, 244); + this.tableLayoutPanel.TabIndex = 0; + // + // logoPictureBox + // + this.logoPictureBox.Dock = System.Windows.Forms.DockStyle.Fill; + this.logoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("logoPictureBox.Image"))); + this.logoPictureBox.Location = new System.Drawing.Point(3, 3); + this.logoPictureBox.Name = "logoPictureBox"; + this.tableLayoutPanel.SetRowSpan(this.logoPictureBox, 6); + this.logoPictureBox.Size = new System.Drawing.Size(154, 272); + this.logoPictureBox.TabIndex = 12; + this.logoPictureBox.TabStop = false; + // + // labelProductName + // + this.labelProductName.Dock = System.Windows.Forms.DockStyle.Fill; + this.labelProductName.Location = new System.Drawing.Point(166, 0); + this.labelProductName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); + this.labelProductName.MaximumSize = new System.Drawing.Size(0, 21); + this.labelProductName.Name = "labelProductName"; + this.labelProductName.Size = new System.Drawing.Size(311, 21); + this.labelProductName.TabIndex = 19; + this.labelProductName.Text = "Produktname"; + this.labelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // labelVersion + // + this.labelVersion.Dock = System.Windows.Forms.DockStyle.Fill; + this.labelVersion.Location = new System.Drawing.Point(166, 21); + this.labelVersion.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); + this.labelVersion.MaximumSize = new System.Drawing.Size(0, 21); + this.labelVersion.Name = "labelVersion"; + this.labelVersion.Size = new System.Drawing.Size(311, 21); + this.labelVersion.TabIndex = 0; + this.labelVersion.Text = "Version"; + this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // labelCopyright + // + this.labelCopyright.Dock = System.Windows.Forms.DockStyle.Fill; + this.labelCopyright.Location = new System.Drawing.Point(166, 42); + this.labelCopyright.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); + this.labelCopyright.MaximumSize = new System.Drawing.Size(0, 21); + this.labelCopyright.Name = "labelCopyright"; + this.labelCopyright.Size = new System.Drawing.Size(311, 21); + this.labelCopyright.TabIndex = 21; + this.labelCopyright.Text = "Copyright"; + this.labelCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // labelCompanyName + // + this.labelCompanyName.Dock = System.Windows.Forms.DockStyle.Fill; + this.labelCompanyName.Location = new System.Drawing.Point(166, 63); + this.labelCompanyName.Margin = new System.Windows.Forms.Padding(6, 0, 3, 0); + this.labelCompanyName.MaximumSize = new System.Drawing.Size(0, 21); + this.labelCompanyName.Name = "labelCompanyName"; + this.labelCompanyName.Size = new System.Drawing.Size(311, 21); + this.labelCompanyName.TabIndex = 22; + this.labelCompanyName.Text = "Firmenname"; + this.labelCompanyName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // textBoxDescription + // + this.textBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill; + this.textBoxDescription.Location = new System.Drawing.Point(166, 87); + this.textBoxDescription.Margin = new System.Windows.Forms.Padding(6, 3, 3, 3); + this.textBoxDescription.Multiline = true; + this.textBoxDescription.Name = "textBoxDescription"; + this.textBoxDescription.ReadOnly = true; + this.textBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBoxDescription.Size = new System.Drawing.Size(311, 120); + this.textBoxDescription.TabIndex = 23; + this.textBoxDescription.TabStop = false; + this.textBoxDescription.Text = "Beschreibung"; + // + // okButton + // + this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.okButton.Location = new System.Drawing.Point(402, 213); + this.okButton.Name = "okButton"; + this.okButton.Size = new System.Drawing.Size(75, 23); + this.okButton.TabIndex = 24; + this.okButton.Text = "&OK"; + // + // AboutBox + // + this.AcceptButton = this.okButton; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(498, 262); + this.Controls.Add(this.tableLayoutPanel); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "AboutBox"; + this.Padding = new System.Windows.Forms.Padding(9); + this.ShowIcon = false; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "AboutBox"; + this.tableLayoutPanel.ResumeLayout(false); + this.tableLayoutPanel.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel; + private System.Windows.Forms.Label labelProductName; + private System.Windows.Forms.Label labelVersion; + private System.Windows.Forms.Label labelCopyright; + private System.Windows.Forms.Label labelCompanyName; + private System.Windows.Forms.TextBox textBoxDescription; + private System.Windows.Forms.PictureBox logoPictureBox; + private System.Windows.Forms.Button okButton; + } +} diff --git a/LanTool/AboutBox.cs b/LanTool/AboutBox.cs @@ -0,0 +1,101 @@ +using System; +using System.Reflection; +using System.Windows.Forms; + +namespace LanTool +{ + partial class AboutBox : Form + { + public AboutBox() + { + InitializeComponent(); + this.Text = String.Format("Info über {0}", AssemblyTitle); + this.labelProductName.Text = AssemblyProduct; + this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion); + this.labelCopyright.Text = AssemblyCopyright; + this.labelCompanyName.Text = AssemblyCompany; + this.textBoxDescription.Text = AssemblyDescription; + } + + #region Assemblyattributaccessoren + + public static string AssemblyTitle + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false); + if (attributes.Length > 0) + { + AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0]; + if (!String.IsNullOrEmpty(titleAttribute.Title)) + { + return titleAttribute.Title; + } + } + return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase); + } + } + + public static string AssemblyVersion + { + get + { + return Assembly.GetExecutingAssembly().GetName().Version.ToString(); + } + } + + public static string AssemblyDescription + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false); + if (attributes.Length == 0) + { + return ""; + } + return ((AssemblyDescriptionAttribute)attributes[0]).Description; + } + } + + public static string AssemblyProduct + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false); + if (attributes.Length == 0) + { + return ""; + } + return ((AssemblyProductAttribute)attributes[0]).Product; + } + } + + public static string AssemblyCopyright + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); + if (attributes.Length == 0) + { + return ""; + } + return ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + } + } + + public static string AssemblyCompany + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false); + if (attributes.Length == 0) + { + return ""; + } + return ((AssemblyCompanyAttribute)attributes[0]).Company; + } + } + #endregion + + } +} diff --git a/LanTool/AboutBox.resx b/LanTool/AboutBox.resx @@ -0,0 +1,776 @@ +<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> + <data name="logoPictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value> + iVBORw0KGgoAAAANSUhEUgAAAJoAAADuCAIAAABOLomXAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAALiIAAC4iAari3ZIAAAAZdEVYdFNvZnR3YXJlAFBh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iItLfU5 + 9fx4bxgomWRnZi0vgl+9CcsmrJoP7t//+uH9BxATLS/cu3P94YPb15ZmIaydm5uZnByXkNj7Gc6PF07A + Ji0lFeCE1RJM8z583bv3+Evecffxl3e+un/7zo2l5WXIZeYmJsYOHjzwGc6PGM4vBCIjw5aW5m/dunXv + 3j0enI8e3AMD/fbRg+8ef/n1VxAYXQPTnJ2dBjjPnz/3Gc6PF06okEREhi4uzQGc2ML54MsHDx49QP72 + 8cO7cHwJMdHta/PzszzrvHz58mc4P144AZuExFhggm7dwhZOBCeEQvcgGgIswTQBzru3ri4tLSwvQ+o5 + ZWpqgpXJPn99lFdAAJxtRPgycAg3+Wsncrl37j24d+erL28//uru/bs379y6sTA/Pb8wA/oEbW0tzDp5 + x+evj+wKACbBQUFQGrtz+zasm2CdaAG9e//B/bvLS7NXrnQszM/cu3MLaL+FhempmQlTM5PPcH5kGH5w + OmCdPDjv3r7Di2zh8d6d2/fu3o4ID5WSkXSwt7578+rV5TlgEiamxhydHISEeJqEz9b58cEKcPr5+gKH + AGwQzzqx4BZ+um1tZSW1TyouLurG8tzVpdnFhZmR0SEXF+cViclnOD8+OOGMPD09IMwB/DBPew/o+Kam + JiByVVRUJKUlq6srQGtydXEG8pTBwQEXF5fPke1HCSN2UqCktbGxBjjBn2ZkZIBi7/Dhw/v27Tt37pyM + jIyElNS5c2c9PVz7ejrHR0f6+vodHBw/w/nxwgnY2NvbDo8M0pmMEydPnjl79tix4xKSkoePHL548eLh + I8d27d6ze/cuKUlJa0vr9rbO1NSUzwrNjxfOLVu2Zmal6xnpKqmpnb14iUChquFw50ACLyO9V1Jir4TU + nr0SR44eP3ry1OGjx9TVcQ2NNadOn/gcCn2MiIJpnj176oDsPo6OtpauTm5e7vzi/J27d7x8vI8ePyYp + LQVwnjp9is6iBof6Gxrrwy/t7G327ZP+GD/M53MCOI8ek710+QKVwUpMTrpypXtkZLi390prexsYqOyh + Q/sPyBJIhLSMxLLy3Ct97aaWpnIK8hs3bfx86T7S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28A2z+dYFmpZlOhYlevZlNt61zj512vDj5YlOhYFhtb5wbHN + PQO3/cPrvMLrfaKqfMPL4lMry6ob3H2izO389EwdaJqGlxWUDx89DKrEHTvFN8NUpO3bN23ZvHbtWp6J + f2RfCE64C78Itzs/lk/65goQAtS5PNUng6Sf+qk/D1Cfj9BfgiFix+sJ5stJ1stJxotJ2stp+stpxotp + xpMR2o1a9Y5c4omTJ06cPHXq9Nmz584fPCS7B8onkpLHTp05e+HSqbNnj548eez4/sUW2ttpBmD5Zo4F + r/BqlvVqhv16lvN6WuvLq10LN75xCWwwcqo1tK/QtavQtalKzh0cn//KOaTV1K3Byr3O3LPBN7LxzpfP + 8svHDazKOObFmmaFbLNCR//69OIJPdtKbZtKPdsKsGxD+yq3iC4tq1JtiwqWSSHNMJdqmKtvV6ZtVUrQ + ydHQziTocCm6hUzDPOfgVo55Jce8jG1WpmlaqmVZGJrcrW2Wq2lSoGVeaGBd6hlYMzz7dURym09Yk094 + vXdYRUxK+fU7X0ZFRX10vVNorRAQPH5wy0AudbEc9/Mw6+cRyly+2sN2yotJxutJ5osxzC5Hac8nGK+m + NV/PAgwMOF7NMPnHFON6pdqTeR1fq4tHD8mAEhOY+COHjlw+c/LMyWMHj8hIQckTytgye0Ldzr+YY/4y + i9wsWjVnWG/mtV7PISyfL5h//+3D+NwBjmUZx6JIy7yAY1GobVnsFNBi79do7lZrAVi6N5i415m5VqYV + DVu6lupaV8ASq2dXZmhXUdkwMzb5wNyj2sCx2tCx0sSxJjCu6/r9J8FxHUa21WCLejYVOjbF/nFt7qGN + ujblulYl2pYlHLMyHctiz9AOlmkZQz+fosWl6OQStXMtXevUNNNUWZkamplErWyKXo69XwugyzTOYxqX + 0I2L2aalhZUTX371cLe4+MdmnQJCAsLhdpenitTvNZOejtDBl96s0lgsU385zXw1zXw9o4kschxh+WoG + wclD8c0c+p533KrDvVtkPJlmNmaqcAhQONm9V3K3zD5pKWnpXeK7Dkhup6gfqEwmvJyiAZBvUEBLezPD + f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P7e + 3cLSu0V5x45tots2i0rsFpHcLQaPWzcJQUYPocHmDV9QVNalhB8JdTzoaQ0Yi2HPF5PcJbZtMxr+Iyom + KL5NWGqX6NYtQtu3iO7cCv1iPBZAGPL4TRuEIMST3AN/IiIFH3Y7vLKgxC4R9CK74AOKbtkkumub2PoN + sLeMsLXBzsSwAwacTYel1knuEt0rLrxnh4j4dvhccM7Cu3aK8K4VvB2kCcIiAts2i8BpwIWSgvPZLbJ9 + s9i2rcK830iIi25ZLwRsA5yklDi8hRBcWLi8G9YK7t0pLLFTRGa3mKfz9gDbo7EBEkSFDRuBtfk9X7wI + GJEJPK4JY075vOnfoz15T+YpRAS2bRKkEtb52Eoas3bslwBqg0cB8l8KW755hCrk4ijpRup5PjHLZ8Ig + rcVeif+OGOfzIYXL606AzwvfwDN5f429LlABO8So+A0BLpLqihvWongBCQf57CN6QT7vt/KOvI+2QsBh + 1BKffUOVVN4Z8N+dF3nw9P6iokJ7dgsd2rsGQAJy6oOX4H3YDzlm3jtgZDX/MvKuFo9uwU4J4wKxD8I7 + YV5jAXw0PjsIDB9Ocb2L1R6C8rod22DZ/D/NGePTQCtMxCrH+PfvEIw1BWsW27xJGCirD/7qr5+/mgn/ + TZD2r+TIq2fFC/D4X3A9Nm4QFN++BphbLNf+q5f6V16ZTxPx7ukPjg/PfwX096/34VX6F9/lw6etvtHf + XlX0QeCSbtsGZBNGVv6Gav09dvp/eO4/OL//w6v+S3/6X3zrf+n8/ldPwj4U/y76FwmE/9X7/L0/WvFv + f0PJ/9ve4R+9EI+M/U9/5v/PH413j/4pP9r/5yv3Eb/8n9LxfMTX+/Opfb4Cn6/A5yvw+Qp8vgKfr8Dn + K/D5Cny+Ap+vwOcr8PkKfL4Cn6/A5yvw+Qp8vgKfr8DnK/B/uAL/D/nYIuuNXD4yAAAAAElFTkSuQmCC +</value> + </data> +</root> +\ No newline at end of file diff --git a/LanTool/Classes/Config.cs b/LanTool/Classes/Config.cs @@ -0,0 +1,568 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Windows.Forms; + +namespace LanTool.Classes +{ + /// <summary> + /// Enthlt alle ber die Konfiguration steuerbaren Parameter des LanTools + /// </summary> + public class Config + { + #region Konstanten fr die Konfiguration + + /// Name der Configdatei + private const string _configFile = "LanTool.cfg"; + + #endregion + + #region Fields fr Configsettings + + private List<string> _excludeExtension = new List<string>(); + private List<string> _restrictExtension = new List<string>(); + private int _md5FileSize = 10000; + private bool _autoScanMyDisks = false; + private bool _autoScanOtherDisks = false; + private bool _showIgnoredClones = false; + private bool _hideExcludedFiles = false; + private bool _hideExistingFiles = false; + private bool _removeMarks = false; + private bool _treatEqualNames = false; + private bool _lowerPriority = false; + private string _defaultOfflineFile = String.Empty; + private string _basePath; + private string _headerExtension = String.Empty; + + #endregion + + /// <summary> + /// Erstellt eine neue Instanz der Konfiguration + /// </summary> + /// <param name="basePath">Pfad zur LanTool-Executable, ist auch der Pfad zur Konfig-Datei</param> + public Config( string basePath ) + { + this._basePath = basePath; + + ReadConfig(); + } + + #region Properties fr die Zugriffe auf die Konfiguration + + /// <summary> + /// Aktuelles Md5FileSize, Anzahl Bytes, die fr die Hashwertberechnung genommen werden + /// </summary> + public string HeaderExtension + { + get + { + return _headerExtension; + } + } + + /// <summary> + /// Aktuelles Md5FileSize, Anzahl Bytes, die fr die Hashwertberechnung genommen werden + /// </summary> + public int MD5FileSize + { + get + { + return _md5FileSize; + } + } + + /// <summary> + /// Standard-Offlinedatei, die beim Programmstart gelesen wird + /// </summary> + public string DefaultOfflineFile + { + get + { + return _defaultOfflineFile; + } + } + + /// <summary> + /// Prfen, ob ein Pfadname durch die Extension weggelassen wird. + /// Die Restriction-Liste bleibt dabei unbercksichtig, da sie nur fr Files gilt + /// </summary> + /// <param name="path">Pfad</param> + /// <returns>true wenn weggelassen</returns> + public bool IsDirExludedByExtension( string path ) + { + // Wenn kein Pfad angegeben ist, kann dieser auch nicht ausgeschlossen sein + if ( String.IsNullOrEmpty( path ) ) + { + return false; + } + + foreach ( string ext in _excludeExtension ) + { + if ( path.ToLower().EndsWith( ext.ToLower() ) ) + { + return true; + } + } + return false; + } + + /// <summary> + /// Prfen, ob ein Pfadname durch Extension weggelassen wird. Dabei wird + /// zustzlich die Restriktionsliste fr Filenamen bercksichtigt, die nur bestimmte + /// Files zulsst. + /// </summary> + /// <param name="path"></param> + /// <returns></returns> + public bool IsFileExludedByExtension( string path ) + { + // Wenn kein Pfad angegeben ist, kann dieser auch nicht ausgeschlossen sein + if ( String.IsNullOrEmpty( path ) ) + { + return false; + } + + if ( IsDirExludedByExtension( path ) ) + { + return true; + } + // Wenn es Restriktionen gibt, nachsehen, ob diese Dateitypen angeschaut werden + if ( _restrictExtension.Count > 0 ) + { + foreach ( string ext in _restrictExtension ) + { + if ( path.ToLower().EndsWith( ext.ToLower() ) ) + { + return false; + } + } + return true; + } + return false; + } + + /// <summary> + /// Sollen die eigenen Platten automatisch neu eingescannt werden? + /// </summary> + public bool IsAutoScanMyDisks + { + get { return _autoScanMyDisks; } + } + + /// <summary> + /// Sollen die fremden Platten automatisch neu eingescannt werden? + /// </summary> + public bool IsAutoScanOtherDisks + { + get { return _autoScanOtherDisks; } + } + + /// <summary> + /// Gibt an ob erlaubte Dubletten eingeblendet werden sollen oder nicht + /// </summary> + public bool IsShowIgnoredClones + { + get { return _showIgnoredClones; } + } + + /// <summary> + /// Gibt an ob gesperrte Dateien im TreeView "Fremde Platten" + /// angezeigt werden sollen + /// </summary> + public bool IsHideExcludedFiles + { + get { return _hideExcludedFiles; } + } + + /// <summary> + /// Gibt an ob vorhandene Dateien im Tree "Fremde Platten" + /// angezeigt werden sollen + /// </summary> + public bool IsHideExistingFiles + { + get { return _hideExistingFiles; } + } + + /// <summary> + /// Liefert "true", wenn die Option "Markierungen nach Aktion entfernen" aktiviert ist + /// </summary> + public bool IsRemoveMarks + { + get { return _removeMarks; } + } + + /// <summary> + /// Liefert "true", wenn die Option "identische Dateinamen ausschlieen" aktiviert ist + /// </summary> + public bool IsTreatEqualNames + { + get { return _treatEqualNames; } + } + + /// <summary> + /// Gibt an, ob das Programm mit verringerter Prioritt ausgefhrt werden soll + /// </summary> + public bool IsLowerPriority + { + get { return _lowerPriority; } + } + + #endregion + + /// <summary> + /// Config-File einlesen und MyDisks vorbelegen bzw. OtherDisks aktualisieren + /// </summary> + public void ReadConfig() + { + Boolean requireConfig = false; + + String file = Path.Combine( _basePath, _configFile ); + + // Standard-Konfig schreiben wenn keine vorhanden ist + if ( !File.Exists( file ) ) + { + requireConfig = CreateDefaultConfig( file ); + } + + Program.MainWindow.Log( "" ); + Program.MainWindow.Log( "Konfiguration:" ); + + // Konfigdatei einlesen + using ( StreamReader tr = File.OpenText( file ) ) + { + string line; + while ( ( line = tr.ReadLine() ) != null ) + { + string startChar = line.Substring( 0, 1 ); + + switch ( startChar ) + { + // Kommentarzeilen ignorieren + case "#": + continue; + + // Datei-Negativ-Filter + case "-": + _excludeExtension.Add( line.Substring( 1 ) ); + Program.MainWindow.Log( "Dateien/Ordner ausnehmen: *" + line.Substring( 1 ) ); + continue; + + // Datei-Positiv-Filter + case "+": + _restrictExtension.Add( line.Substring( 1 ) ); + Program.MainWindow.Log( "Erlaubte Dateien: *" + line.Substring( 1 ) ); + continue; + + // Konfigurationszeile + case "%": + GetSpecialSetting( line ); + continue; + + // meine Platten + default: + // bei nur Laufwerksbuchstaben ein \ dranhngen + if ( line.EndsWith( @":" ) ) + { + line = line + @"\"; + } + Program.MainWindow.Log( "Meine Platte: " + line ); + Program.MainWindow.m_MyDisks.AddOrGetChildItemByPath( line ); + + continue; + } + + } + } + Program.MainWindow.Log( "" ); + + // Konfig-Dialog aufrufen + if ( requireConfig ) + { + EditConfig(); + } + } + + private void GetSpecialSetting( string line ) + { + string[] cfg = line.Split( '=' ); + try + { + switch ( cfg[ 0 ].ToLower() ) + { + case "%autoscanmydisks": + _autoScanMyDisks = Convert.ToBoolean( cfg[ 1 ] ); + Program.MainWindow.Log( "AutoScanMyDisks: " + _autoScanMyDisks ); + break; + + case "%autoscanotherdisks": + _autoScanOtherDisks = Convert.ToBoolean( cfg[ 1 ] ); + Program.MainWindow.Log( "AutoScanOtherDisks: " + _autoScanOtherDisks ); + break; + + case "%showignoredclones": + _showIgnoredClones = Convert.ToBoolean( cfg[ 1 ] ); + Program.MainWindow.Log( "ShowIgnoredClones: " + _showIgnoredClones ); + break; + + case "%hideexcludedfiles": + _hideExcludedFiles = Convert.ToBoolean( cfg[ 1 ] ); + Program.MainWindow.Log( "HideExcludedFiles: " + _hideExcludedFiles ); + break; + + case "%hideexistingfiles": + _hideExistingFiles = Convert.ToBoolean( cfg[ 1 ] ); + Program.MainWindow.Log( "HideExistingFiles: " + _hideExistingFiles ); + break; + + case "%head": + _md5FileSize = Convert.ToInt32( cfg[ 1 ] ); + Program.MainWindow.Log( "Headerlnge fr MD5-Hash: " + MD5FileSize ); + break; + + case "%foreign": + Program.MainWindow.Log( "Fremde Platte: " + cfg[ 1 ] ); + Program.MainWindow.m_OtherDisks.AddOrGetChildItemByPath( cfg[ 1 ] ); + break; + + case "%removemarks": + _removeMarks = Convert.ToBoolean( cfg[ 1 ] ); + Program.MainWindow.Log( "RemoveMarks: " + _removeMarks ); + break; + + case "%treatequalnames": + _treatEqualNames = Convert.ToBoolean( cfg[ 1 ] ); + Program.MainWindow.Log( "TreatEqualNames: " + _treatEqualNames ); + break; + + case "%defaultofflinefile": + _defaultOfflineFile = cfg[ 1 ]; + Program.MainWindow.Log( "DefaultOfflineFile: " + _defaultOfflineFile ); + break; + + case "%lowerpriority": + _lowerPriority = Convert.ToBoolean( cfg[ 1 ] ); + Program.MainWindow.Log( "LowerPriority: " + _lowerPriority ); + break; + + case "%headerextension": + _headerExtension = cfg[ 1 ]; + Program.MainWindow.Log( "HeaderExtension: " + _headerExtension ); + break; + } + } + catch ( Exception e ) + { + Program.MainWindow.LogError( "Fehlerhaftes Setting: " + line + " / " + e.Message ); + } + } + + private static Boolean CreateDefaultConfig( String file ) + { + using ( StreamWriter cfgOut = new StreamWriter( file ) ) + { + cfgOut.Write( + @"# Laenge des MD5-Headers zum Dateivergleich +%head=10000 +# Endungen/Dateinamen die explizit ausgeschlossen werden (auch Ordner) +-.bmp +-.gif +-.m3u +-.tif +-.ini +-.db +-.nfo +-.htm +-.html +-.js +-lost+found +-System Volume Information +-RECYCLE.BIN +-RECYCLER +-RECYCLED" ); + } + + Program.MainWindow.Log( "Konfigurationsdatei LanTool.cfg wurde nicht gefunden. Erstelle neue Default-Datei." ); + return true; + } + + /// <summary> + /// Abspeichern der aktuellen Settings + /// </summary> + public void WriteConfig() + { + String file = Path.Combine( _basePath, _configFile ); + + using ( StreamWriter sw = File.CreateText( file ) ) + { + sw.WriteLine( "# Laenge des MD5-Headers zum Dateivergleich" ); + sw.WriteLine( "%head=" + _md5FileSize.ToString() ); + sw.WriteLine( "# Endungen/Dateinamen die explizit ausgeschlossen werden (auch Ordner)" ); + foreach ( string s in _excludeExtension ) + { + sw.WriteLine( "-" + s ); + } + sw.WriteLine( "# Endungen/Dateinamen die berhaupt gelesen werden (nur Dateien, keine Ordner)" ); + foreach ( string s in _restrictExtension ) + { + sw.WriteLine( "+" + s ); + } + sw.WriteLine( "# Eigene Platten" ); + foreach ( StuffItem si in Program.MainWindow.m_MyDisks.ChildItems ) + { + sw.WriteLine( si.Path ); + } + sw.WriteLine( "%AutoScanMyDisks=" + _autoScanMyDisks.ToString() ); + sw.WriteLine( "%ShowIgnoredClones=" + _showIgnoredClones.ToString() ); + sw.WriteLine( "# Fremde Platten" ); + foreach ( StuffItem si in Program.MainWindow.m_OtherDisks.ChildItems ) + { + sw.WriteLine( "%foreign=" + si.Path ); + } + sw.WriteLine( "%AutoScanOtherDisks=" + _autoScanOtherDisks.ToString() ); + sw.WriteLine( "%HideExcludedFiles=" + _hideExcludedFiles.ToString() ); + sw.WriteLine( "%HideExistingFiles=" + _hideExistingFiles.ToString() ); + sw.WriteLine( "%RemoveMarks=" + _removeMarks.ToString() ); + sw.WriteLine( "%TreatEqualNames=" + _treatEqualNames.ToString() ); + sw.WriteLine( "%DefaultOfflineFile=" + _defaultOfflineFile ); + sw.WriteLine( "%LowerPriority=" + _lowerPriority.ToString() ); + sw.WriteLine( "%HeaderExtension=" + _headerExtension ); + } + } + + /// <summary> + /// Konfiguration mittels Dialog aktualisieren + /// </summary> + /// <returns></returns> + public bool EditConfig() + { + // Dialog erstellen + using ( ConfigEdit ce = new ConfigEdit( _basePath ) ) + { + // alle aktuellen Einstellungen an den Dialog bergeben + ce.Md5FileSize = _md5FileSize; + ce.AutoScanMyDisks = _autoScanMyDisks; + ce.AutoScanOtherDisks = _autoScanOtherDisks; + ce.ShowIgnoredClones = _showIgnoredClones; + ce.HideExcludedFiles = _hideExcludedFiles; + ce.HideExistingFiles = _hideExistingFiles; + ce.RemoveMarks = _removeMarks; + ce.TreatEqualNames = _treatEqualNames; + ce.LowerPriority = _lowerPriority; + ce.DefaultOfflineFile = _defaultOfflineFile; + ce.HeaderExtension = _headerExtension; + + foreach ( StuffItem si in Program.MainWindow.m_OtherDisks.ChildItems ) + { + ce.otherDisks.Add( si.Path ); + } + foreach ( StuffItem si in Program.MainWindow.m_MyDisks.ChildItems ) + { + ce.myDisks.Add( si.Path ); + } + foreach ( string ex in _excludeExtension ) + { + ce.excludeExtension.Add( ex ); + } + foreach ( string ex in _restrictExtension ) + { + ce.restrictExtension.Add( ex ); + } + + // Wenn der Dialog mit "OK" abgeschlossen wurde, Einstellungen wieder zurckbernehmen + if ( ce.ShowDialog( Program.MainWindow ) == DialogResult.OK ) + { + _md5FileSize = ce.Md5FileSize; + _autoScanMyDisks = ce.AutoScanMyDisks; + _autoScanOtherDisks = ce.AutoScanOtherDisks; + _showIgnoredClones = ce.ShowIgnoredClones; + _hideExcludedFiles = ce.HideExcludedFiles; + _hideExistingFiles = ce.HideExistingFiles; + _removeMarks = ce.RemoveMarks; + _treatEqualNames = ce.TreatEqualNames; + _excludeExtension = ce.excludeExtension; + _restrictExtension = ce.restrictExtension; + _defaultOfflineFile = ce.DefaultOfflineFile; + _lowerPriority = ce.LowerPriority; + _headerExtension = ce.HeaderExtension; + + + + // nimmt nachher alle Elemente auf, die aus den RootItems entfernt werden + // mssen + List<StuffItem> delList = new List<StuffItem>(); + + // alle fremden Platten hinzufgen, alte entfernen + foreach ( string s in ce.otherDisks ) + { + Program.MainWindow.m_OtherDisks.AddOrGetChildItemByPath( s ); + } + + // alte Eintrge in fremden Platten merken + foreach ( StuffItem csi in Program.MainWindow.m_OtherDisks.ChildItems ) + { + if ( !ce.otherDisks.Contains( csi.Path ) ) + { + delList.Add( csi ); + } + } + + // alte Eintrge entfernen + foreach ( StuffItem csi in delList ) + { + Program.MainWindow.m_OtherDisks.ChildItems.Remove( csi ); + } + + delList.Clear(); + + // alle eigenen Platten hinzufgen + foreach ( string s in ce.myDisks ) + { + Program.MainWindow.m_MyDisks.AddOrGetChildItemByPath( s ); + } + + // alte Eintrge in meinen Platten merken + foreach ( StuffItem csi in Program.MainWindow.m_MyDisks.ChildItems ) + { + if ( !ce.myDisks.Contains( csi.Path ) ) + { + delList.Add( csi ); + } + } + + // alte Eintrge entfernen + foreach ( StuffItem csi in delList ) + { + Program.MainWindow.m_MyDisks.ChildItems.Remove( csi ); + } + + // Programm mit niedriger Prioritt ausfhren + if ( _lowerPriority ) + { + Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.BelowNormal; + } + else + { + Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.Normal; + } + + // Fenstertitel setzen + if ( !String.IsNullOrEmpty( _headerExtension ) ) + { + Program.MainWindow.Text = String.Format( "[{0}] {1}", HeaderExtension, MainForm.DefaultHeader ); + } + else + { + Program.MainWindow.Text = MainForm.DefaultHeader; + } + + // Konfigdatei abspeichern + WriteConfig(); + + return true; + } + } + + return false; + } + } +} diff --git a/LanTool/Classes/Enums.cs b/LanTool/Classes/Enums.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace LanTool.Classes +{ + /// <summary> + /// Auflistung der in der TreeView verfügbaren Icons + /// </summary> + public enum TreeNodeImage : int + { + /// <summary> + /// Ordner-Symbol + /// </summary> + Folder = 0, + /// <summary> + /// Ordner mit Lesefehler + /// </summary> + BrokenFolder = 1, + /// <summary> + /// Datei im "normalen" Zustand + /// </summary> + FileWhite = 2, + /// <summary> + /// Datei mit Dubletten + /// </summary> + FileRed = 3, + /// <summary> + /// Datei auf fremder Platte, noch nicht vorhanden + /// </summary> + FileSaugMich = 4, + /// <summary> + /// Datei auf fremden Platte, bereits vorhanden + /// </summary> + FileHabSchon = 5, + /// <summary> + /// Datei, frisch gesaugt + /// </summary> + FileFrischGesaugt = 6, + /// <summary> + /// Datei grün + /// </summary> + FileGruen = 7, + /// <summary> + /// Datei gesperrt + /// </summary> + FileExcluded = 8, + /// <summary> + /// Datei, Dubletten ignoriert + /// </summary> + FileIngored = 19, + /// <summary> + /// Datei mit Lesefehler + /// </summary> + FileError = 20 + } +} diff --git a/LanTool/Classes/GlobalCache.cs b/LanTool/Classes/GlobalCache.cs @@ -0,0 +1,297 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Security.Cryptography; + +namespace LanTool.Classes +{ + /// <summary> + /// Beinhaltet die globalen CacheListe des LanTools + /// </summary> + public class GlobalCache : IDisposable + { + #region Konstanten für die Caches + + private const string cHashKeyCacheFile = "LanTool.cache"; + private const string cHashKeyExcludeFile = "LanTool.exclude"; + private const string cHashKeyIgnoreFile = "LanTool.ignore"; + + #endregion + + #region Properties + + /// <summary> + /// Cache mit allen Hash-Werten von bekannten Dateien + /// </summary> + public SortedDictionary<string, string> HashCache { get; private set; } + /// <summary> + /// Cache mit allen Hash-Werten, die gesperrt sind + /// </summary> + public List<String> ExcludeCache { get; private set; } + /// <summary> + /// Cache mit allen Hash-Werten, bei denen Dubletten ignoriert werden + /// </summary> + public List<String> IgnoreCache { get; private set; } + + #endregion + + #region Fields mit den Caches + + private long hashOldInCache = 0; + private long hashNewInCache = 0; + private string _basePath; + + private MD5 md5; + + #endregion + + /// <summary> + /// Konstruktor für den globalen Cache + /// Legt die Cachelisten an und füllt diese von den Platten + /// </summary> + /// <param name="basePath">Standard-Pfad</param> + public GlobalCache(string basePath) + { + this._basePath = basePath; + + this.HashCache = new SortedDictionary<string, string>(); + this.ExcludeCache = new List<string>(); + this.IgnoreCache = new List<string>(); + + md5 = MD5.Create(); + + // Caches einlesen + LoadCacheFromDisk(); + LoadExcludeListFromDisk(); + LoadIgnoreListFromDisk(); + } + + /// <summary> + /// Speichert alle Liste auf Festplatte + /// </summary> + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + /// <summary> + /// Speichert alle Liste auf Festplatte + /// </summary> + /// <param name="yes"></param> + protected virtual void Dispose(Boolean yes) + { + if (yes) + { + } + + SaveCacheToDisk(); + SaveExcludeListToDisk(); + SaveIgnoreListToDisk(); + } + + #region Behandlung der globalen Cache-Liste + + /// <summary> + /// MD5-Cache von der Platte laden + /// </summary> + private void LoadCacheFromDisk() + { + HashCache.Clear(); + if (File.Exists(_basePath + cHashKeyCacheFile)) + { + using (StreamReader cacheReader = File.OpenText(_basePath + cHashKeyCacheFile)) + { + string s; + while ((s = cacheReader.ReadLine()) != null) + { + if ( s.Length > 44 ) + { + HashCache[ s.Substring( 44 ) ] = s.Substring( 0, 43 ); + } + } + } + Program.MainWindow.Log(cHashKeyCacheFile + " wurde mit " + HashCache.Keys.Count.ToString() + " Einträgen geladen."); + } + else + { + Program.MainWindow.LogWarning(cHashKeyCacheFile + " nicht vorhanden."); + } + } + + /// <summary> + /// MD5-Cache auf Platte speichern + /// </summary> + public void SaveCacheToDisk() + { + try + { + using (StreamWriter sw = File.CreateText(_basePath + cHashKeyCacheFile)) + { + foreach (KeyValuePair<string, string> di in HashCache) + { + sw.WriteLine(di.Value + "/" + di.Key); + } + } + Program.MainWindow.Log(cHashKeyCacheFile + " wurde mit " + HashCache.Keys.Count.ToString() + " Einträgen gespeichert (" + hashNewInCache.ToString() + " neue Einträge, " + hashOldInCache.ToString() + " Treffer)"); + } + catch (Exception e) + { + Program.MainWindow.LogError(cHashKeyCacheFile + " konnte nicht gespeichert werden: " + e.Message); + } + } + + /// <summary> + /// Löschen des Hash-Caches + /// </summary> + public void Clear() + { + HashCache.Clear(); + + hashNewInCache = 0; + hashOldInCache = 0; + + SaveCacheToDisk(); + } + + /// <summary> + /// Aus Datei einen Hashkey erzeugen oder aus dem Cache entnehmen + /// </summary> + /// <param name="file">Datei</param> + /// <returns>Hash-Key</returns> + public string GetHashCodeFromFileHeader(string file) + { + if (String.IsNullOrEmpty(file)) + { + return String.Empty; + } + + Int32 md5HashSize = Program.MainWindow.m_Config.MD5FileSize; + + // Nachsehen, ob der Länge / Dateipfad gecached sind + if (HashCache.ContainsKey(md5HashSize + " " + file)) + { + hashOldInCache++; + return HashCache[md5HashSize + " " + file]; + } + + // wenn die Datei nicht existiert, keinen Fehler melden + // sondern leeren String, Datei wird später als Lesefehler markiert + if (!File.Exists(file)) + { + return String.Empty; + } + + try + { + // Teil 1 des Hashcodes ist die Dateigröße + FileInfo fi = new FileInfo(file); + string hash = fi.Length.ToString("X10"); + // Teil 2 des Hascode ist das md5 über x Bytes. Bei Netzwerkzugriff + // ist das etwas zu viel die ganzen Dateien zu lesen + byte[] buffer = new byte[md5HashSize]; + using (FileStream fs = fi.OpenRead()) + { + int gelesen = fs.Read(buffer, 0, md5HashSize); + + // Wenn die Datei leer ist, den Dateinamen nehmen + if (gelesen == 0) + { + for (int i = 0; i < file.Length; i++) + buffer[i] = (byte)file[i]; + } + } + + byte[] mdhash = md5.ComputeHash(buffer); + hash = "/" + hash; + foreach (byte b in mdhash) + { + hash = b.ToString("X2") + hash; + } + + // Im Cache ablegen für weitere Verwendung + HashCache[md5HashSize + " " + file] = hash; + hashNewInCache++; + return hash; + } + catch + { + return String.Empty; + } + } + + #endregion + + /// <summary> + /// Exclude-Liste von Platte laden + /// </summary> + private void LoadExcludeListFromDisk() + { + ExcludeCache.Clear(); + if (File.Exists(_basePath + cHashKeyExcludeFile)) + { + // Alle Zeilen der Datei in den Cache einlesen + ExcludeCache.AddRange(File.ReadAllLines(_basePath + cHashKeyExcludeFile)); + + Program.MainWindow.Log(cHashKeyExcludeFile + " wurde mit " + ExcludeCache.Count.ToString() + " Einträgen geladen"); + } + else + { + Program.MainWindow.LogWarning(cHashKeyExcludeFile + " nicht vorhanden."); + } + } + + /// <summary> + /// Exclude-Liste auf Platte speichern + /// </summary> + public void SaveExcludeListToDisk() + { + try + { + // Alle Zeilen des Exclude-Caches in die Datei schreiben + File.WriteAllLines(_basePath + cHashKeyExcludeFile, ExcludeCache.ToArray()); + + Program.MainWindow.Log(cHashKeyExcludeFile + " wurde mit " + ExcludeCache.Count.ToString() + " Einträgen gespeichert"); + } + catch (Exception e) + { + Program.MainWindow.LogError(cHashKeyExcludeFile + "konnte nicht gespeichert werden: " + e.Message); + } + } + + /// <summary> + /// Exclude-Liste von Platte laden + /// </summary> + private void LoadIgnoreListFromDisk() + { + IgnoreCache.Clear(); + if (File.Exists(_basePath + cHashKeyIgnoreFile)) + { + // Alle Zeilen in den IgnoreCache laden + IgnoreCache.AddRange(File.ReadAllLines(_basePath + cHashKeyIgnoreFile)); + + Program.MainWindow.Log(cHashKeyIgnoreFile + " wurde mit " + IgnoreCache.Count.ToString() + " Einträgen geladen"); + } + else + { + Program.MainWindow.LogWarning(cHashKeyIgnoreFile + " nicht vorhanden."); + } + } + + /// <summary> + /// Exclude-Liste auf Platte speichern + /// </summary> + public void SaveIgnoreListToDisk() + { + try + { + File.WriteAllLines(_basePath + cHashKeyIgnoreFile, IgnoreCache.ToArray()); + Program.MainWindow.Log(cHashKeyIgnoreFile + " wurde mit " + IgnoreCache.Count.ToString() + " Einträgen gespeichert"); + } + catch (Exception e) + { + Program.MainWindow.LogError(cHashKeyIgnoreFile + "konnte nicht gespeichert werden: " + e.Message); + } + } + } +} diff --git a/LanTool/Classes/NativeMethods.cs b/LanTool/Classes/NativeMethods.cs @@ -0,0 +1,12 @@ +using System; +using System.Runtime.InteropServices; + +namespace LanTool.Classes +{ + static class NativeMethods + { + // Import the SetForeground API to activate it + [DllImport("User32.dll")] + public static extern IntPtr SetForegroundWindow(int hWnd); + } +} diff --git a/LanTool/Classes/StuffItem.cs b/LanTool/Classes/StuffItem.cs @@ -0,0 +1,648 @@ +using System; +using System.Collections.Generic; +using System.IO; + +namespace LanTool.Classes +{ + internal class StuffItemSorter : System.Collections.IComparer + { + public int Compare( object xx, object yy ) + { + StuffItem x = ( StuffItem )( ( System.Windows.Forms.TreeNode )xx ).Tag; + StuffItem y = ( StuffItem )( ( System.Windows.Forms.TreeNode )yy ).Tag; + string xa = ( x == null ) ? "0" : ( x.IsFile ? "2" + x.Path : "1" + x.Path ); + string ya = ( y == null ) ? "0" : ( y.IsFile ? "2" + y.Path : "1" + y.Path ); + return String.Compare( xa, ya ); + } + } + + /// <summary> + /// Ein Ding des Begehrs, sei es auf der eigenen oder der fremden Platte + /// </summary> + internal class StuffItem + { + #region Parameter eines StuffItems + + /// <summary> + /// bergeordnetes StuffItem + /// </summary> + public StuffItem Parent = null; + + private string _name = String.Empty; + /// <summary> + /// Name des StuffItems + /// z.B. Dateiname ohne Pfad oder Name des Verzeichnisses + /// </summary> + public string Name + { + get + { + // Field ist noch nicht gefllt, dann Name aus dem Dateiname oder dem Verzeichnisname ermitteln + if ( String.IsNullOrEmpty( _name ) ) + { + if ( IsFile ) + { + _name = System.IO.Path.GetFileName( Path ); + } + else + { + _name = Path.Substring( Path.LastIndexOf( "\\" ) + 1 ); + } + } + + return _name; + } + private set + { + _name = value; + } + + } + + /// <summary> + /// Kompletter Pfad zum StuffItems + /// </summary> + public string Path = String.Empty; + + /// <summary> + /// Liste aller direkt untergeordneten StuffItems + /// </summary> + public List<StuffItem> ChildItems = new List<StuffItem>(); + + /// <summary> + /// MD5-Hashwert des StuffItems + /// </summary> + public string Hash = ""; + + /// <summary> + /// Dateigre + /// </summary> + public long Size; + + /// <summary> + /// Dateigre in lesbarer Ausgabe + /// </summary> + public string ReadableSize + { + get + { + if ( this.Size > 1024 * 1024 ) + return ( ( ( double )( this.Size / 104857 ) ) / 10 ).ToString() + " MB"; + else + return ( ( ( double )( this.Size / 102 ) ) / 10 ).ToString() + " KB"; + } + } + + /// <summary> + /// Dateigre in Byte-Ausgabe + /// </summary> + public string LongSize + { + get + { + // Zahlenformat: mit 1000er-Punkten ohne Nachkommastellen + return String.Format( "{0:N0} Bytes", this.Size ); + } + } + + private bool _checked = false; + /// <summary> + /// Dateien, die markiert sind aber nicht sichtbar, werden als nicht markiert gehandhabt + /// </summary> + public bool Checked + { + get + { + return _checked && IsVisible; + } + set + { + _checked = value; + } + } + + private bool updateCheck = true; + + private bool _isOnline = true; + /// <summary> + /// Online und Offline wird grundstzlich fr den ganzen Zweig darunter gesetzt + /// </summary> + public bool IsOnline + { + get + { + return _isOnline; + } + set + { + _isOnline = value; + foreach ( StuffItem si in ChildItems ) + si.IsOnline = value; + } + } + + /// <summary> + /// True wenn es sich um eine Datei handelt + /// </summary> + public bool IsFile = false; + + /// <summary> + /// Legt das Icon fr die Dateien/Ordner fest + /// </summary> + public TreeNodeImage Icon + { + get + { + if ( this.HasReadError ) + { + if ( this.IsFile ) + { + return TreeNodeImage.FileError; + } + else + { + return TreeNodeImage.BrokenFolder; + } + } + else if ( !this.IsFile ) + { + return TreeNodeImage.Folder; + } + else if ( this.IsIgnored ) + { + return TreeNodeImage.FileIngored; + } + else if ( this.IsExcluded ) + { + return TreeNodeImage.FileExcluded; + } + else if ( this.HasClones ) + { + return TreeNodeImage.FileRed; + } + else if ( this.IsNeeded ) + { + return TreeNodeImage.FileSaugMich; + } + else if ( this.IsOnForeignDisk ) + { + return TreeNodeImage.FileHabSchon; + } + else + { + return TreeNodeImage.FileWhite; + } + } + } + + /// <summary> + /// Liefert den Anzeigetext fr TreeNode fest + /// </summary> + public string Text + { + get + { + String dispName = Name.Substring( Name.LastIndexOf( "\\" ) + 1 ); + if ( Parent == Program.MainWindow.m_MyDisks || Parent == Program.MainWindow.m_OtherDisks ) + { + dispName = Name; + } + + if ( IsFile && !HasReadError ) + { + return String.Format( "{0} ({1})", dispName, ReadableSize ); + } + else + { + return dispName; + } + } + } + + /// <summary> + /// Gibt den ToolTip-Text fr die Datei zurck + /// </summary> + public string ToolTip + { + get + { + if ( !this.IsFile ) + { + return String.Empty; + } + + string temp; + + // Standardausgaben + temp = "Pfad: " + this.Path + Environment.NewLine; + + // die nachfolgenden Sachen nur anzeigen, wenn keine Lesefehler vorliegen + if ( this.HasReadError ) + { + temp += "Datei hat Lesefehler!"; + + return temp; + } + + temp += "Gre: " + this.LongSize + Environment.NewLine + + "Hash: " + this.Hash + Environment.NewLine; + + // bei schon auf vorhandenen Dateien auf den fremden Platten, die lokalen + // Dateien mit anzeigen + if ( IsOnForeignDisk && !IsNeeded && !IsExcluded ) + { + temp += Environment.NewLine + "Meine Platten: " + Environment.NewLine + + String.Join( Environment.NewLine, this.GetLocalFiles.ToArray() ); + } + + // bei Dubletten auf den eigenen Platten, diese anzeigen + if ( !IsOnForeignDisk && IsFile ) + { + List<StuffItem> clones = Program.MainWindow.m_MyDisks.GetItemClones( this ); + if ( clones.Count > 0 ) + { + temp += Environment.NewLine + "Dubletten: "; + foreach ( StuffItem csi in clones ) + { + temp += Environment.NewLine + csi.Path; + } + } + } + + return temp; + } + } + + /// <summary> + /// Gibt an, ob die Datei im Tree sichtbar ist + /// betrifft nur tatschliche Dateien auf fremden Platten + /// abhngig vom Status der Datei und den eingestellten Optionen + /// </summary> + public bool IsVisible + { + get + { + // wenn keine Datei oder nicht auf fremden Platten - immer sichtbar + if ( !IsFile || !IsOnForeignDisk ) + { + return true; + } + else + { + // Dateien die gesperrt sind ausblenden falls Option aktiv + if ( IsExcluded && Program.MainWindow.m_Config.IsHideExcludedFiles ) + { + return false; + } + // Dateien die nicht gebraucht werden ausblenden falls Option aktiv + if ( !IsExcluded && !IsNeeded && Program.MainWindow.m_Config.IsHideExistingFiles ) + { + return false; + } + } + + return true; + } + } + + /// <summary> + /// True wenn die Datei ausgeschlossen ist + /// </summary> + public bool IsExcluded + { + get + { + return IsFile && Program.MainWindow.m_Cache.ExcludeCache.Contains( Program.MainWindow.m_Config.MD5FileSize + " " + this.Hash ); + } + } + + /// <summary> + /// True wenn die Datei-Dubletten ignoriert werden + /// </summary> + public bool IsIgnored + { + get + { + return IsFile && !IsOnForeignDisk && HasClones && Program.MainWindow.m_Cache.IgnoreCache.Contains( Program.MainWindow.m_Config.MD5FileSize + " " + this.Hash ); + } + } + + /// <summary> + /// Gibt an, ob beim Lesen des Verzeichnisses/der Datei ein Fehler aufgetreten ist + /// </summary> + public bool HasReadError = false; + + /// <summary> + /// Gibt ab, ob sich die Datei auf einer fremden Platte befindet + /// </summary> + public bool IsOnForeignDisk = false; + + /// <summary> + /// true, wenn die Datei noch nicht auf den eigenen Platten vorhanden ist und nicht + /// ausgeschlossen ist + /// </summary> + public bool IsNeeded + { + get + { + return IsFile && IsOnForeignDisk && !IsExcluded && + ( Program.MainWindow.m_MyDisks.GetRecursiveItemCount( this ) == 0 ); + } + } + + /// <summary> + /// Gibt alle lokalen Dateien eines StuffItems zurck + /// </summary> + public List<String> GetLocalFiles + { + get + { + List<String> localFiles = new List<String>(); + if ( Program.MainWindow.m_MyDisks.GetRecursiveItemCount( this ) > 0 ) + { + foreach ( StuffItem lsi in Program.MainWindow.m_MyDisks.GetItemsRecursive( this ) ) + { + localFiles.Add( lsi.Path ); + } + } + return localFiles; + } + } + + /// <summary> + /// Gibt alle Dateien auf fremden Platten eines StuffItems zurck + /// </summary> + public List<String> GetRemoteFiles + { + get + { + List<String> remoteFiles = new List<String>(); + if ( Program.MainWindow.m_OtherDisks.GetRecursiveItemCount( this ) > 0 ) + { + foreach ( StuffItem lsi in Program.MainWindow.m_OtherDisks.GetItemsRecursive( this ) ) + { + remoteFiles.Add( lsi.Path ); + } + } + return remoteFiles; + } + } + + public bool HasClones + { + get + { + return IsFile && !IsOnForeignDisk && Program.MainWindow.m_MyDisks.GetRecursiveItemCount( this ) > 1; + } + } + + /// <summary> + /// Speicher fr Offline-Kopie der Directory-Anfragen + /// </summary> + virtual public Dictionary<string, List<string>> OfflineDirs + { + get + { + return Parent.OfflineDirs; + } + } + + /// <summary> + /// Speicher fr Offline-Kopie der Files-Anfragen + /// </summary> + virtual public Dictionary<string, List<string>> OfflineFiles + { + get + { + return Parent.OfflineFiles; + } + } + + /// <summary> + /// Ein StuffItem fr einen (Datei-)Pfad hinzufgen, falls + /// fr diesen Pfad noch keines existiert + /// </summary> + /// <param name="path">Pfad</param> + /// <returns>Das alte oder neue Item</returns> + public StuffItem AddOrGetChildItemByPath( string path ) + { + // Altes Item suchen (nach Pfadnamen) + foreach ( StuffItem si in this.ChildItems ) + { + if ( si.Path.Equals( path ) ) + { + si.updateCheck = true; + return si; + } + } + + // Neues Item einhngen, wenn das alte nicht exisitert + StuffItem new_si = new StuffItem(); + new_si.IsOnForeignDisk = this.IsOnForeignDisk; + new_si.Name = path; + new_si.Path = path; + new_si.Parent = this; + new_si.IsOnline = IsOnline; + new_si.updateCheck = true; + this.ChildItems.Add( new_si ); + return new_si; + } + + #endregion + + #region Aktionen am Item + + /// <summary> + /// Datei sperren + /// </summary> + public void Exclude() + { + Program.MainWindow.m_Cache.ExcludeCache.Add( Program.MainWindow.m_Config.MD5FileSize + " " + this.Hash ); + } + + /// <summary> + /// Gesperrte Datei wieder reinnehmen + /// </summary> + public void Include() + { + Program.MainWindow.m_Cache.ExcludeCache.Remove( Program.MainWindow.m_Config.MD5FileSize + " " + this.Hash ); + } + + /// <summary> + /// Datei ignorieren + /// </summary> + public void Ignore() + { + Program.MainWindow.m_Cache.IgnoreCache.Add( Program.MainWindow.m_Config.MD5FileSize + " " + this.Hash ); + } + + /// <summary> + /// Ignorierte Datei wieder reinnehmen + /// </summary> + public void UnIgnore() + { + Program.MainWindow.m_Cache.IgnoreCache.Remove( Program.MainWindow.m_Config.MD5FileSize + " " + this.Hash ); + } + + #endregion + + #region Platten scannen + + /// <summary> + /// ChildItems aktualisieren (background task) + /// </summary> + public void UpdateChildsBackground() + { + Program.RunBackgroundTask( this, "UpdateChilds", null ); + } + + /// <summary> + /// ChildItem aktualisieren und MainWindow neu aufbauen (Background Task) + /// </summary> + public void UpdateChilds( object state ) + { + // Statt der RootItems alle deren Kinder scannen + if ( this == Program.MainWindow.m_MyDisks || this == Program.MainWindow.m_OtherDisks ) + { + foreach ( StuffItem si in this.ChildItems.ToArray() ) + { + si.ScanChilds(); + } + } + else + { + this.ScanChilds(); + } + + // Die Caches des jeweiligen Trees aktualisieren, in der das Item aktualisiert wurde + Program.MainWindow.m_MyDisks.CreateStuffItemTreeHash(); + Program.MainWindow.m_OtherDisks.CreateStuffItemTreeHash(); + + // Baum neu zeichnen + Program.MainWindow.UpdateTrees(); + } + + /// <summary> + /// ChildItems eines Items von der Platte einlesen (rekursiv) und Hash-Werte ermitteln + /// </summary> + private void ScanChilds() + { + try + { + // Alle Childs markieren, dass sie nicht aktualisiert wurden + foreach ( StuffItem si in this.ChildItems ) + { + si.updateCheck = false; + } + + // Verzeichnisse lesen, die nicht "excluded" durch Extension sind + string[] dirs = GetDirectories; + foreach ( string dirname in dirs ) + { + if ( !Program.MainWindow.m_Config.IsDirExludedByExtension( dirname ) ) + { + StuffItem si = this.AddOrGetChildItemByPath( dirname ); + si.Path = dirname; + si.IsOnForeignDisk = this.IsOnForeignDisk; + si.ScanChilds(); + } + } + + // Files lesen, die nicht excluded sind. + // Bei "restricted" extensions werden nur diese gelesen, "excluded" zhlt dann nicht + string[] files = GetFiles; + foreach ( string filename in files ) + { + if ( !Program.MainWindow.m_Config.IsFileExludedByExtension( filename ) ) + { + StuffItem si = AddOrGetChildItemByPath( filename ); + si.Path = filename; + si.IsFile = true; + si.IsOnForeignDisk = IsOnForeignDisk; + si.Hash = Program.MainWindow.m_Cache.GetHashCodeFromFileHeader( filename ); + // wenn kein Hash ermittelt wurde, kann die Datei nicht gelesen werden + if ( String.IsNullOrEmpty( si.Hash ) ) + { + si.HasReadError = true; + } + else + { + si.Size = Convert.ToInt64( si.Hash.Substring( 33 ), 16 ); + } + } + } + + // Nun alle Items wegwerfen, die kein Update hatten + for ( int i = ChildItems.Count - 1; i >= 0; i-- ) + { + if ( !ChildItems[ i ].updateCheck ) + { + ChildItems.RemoveAt( i ); + } + } + this.HasReadError = false; + } + catch ( Exception e ) + { + Program.MainWindow.LogError( "Fehler beim Einlesen: " + e.Message ); + this.HasReadError = true; + } + } + + /// <summary> + /// Verzeichnisse eines Pfades aus dem SimDirs oder physikalisch lesen. + /// </summary> + /// <returns></returns> + private string[] GetDirectories + { + get + { + if ( IsOnline ) + { + Program.MainWindow.Status( "Lese Verzeichnis (online): " + this.Path + " " ); + OfflineDirs[ Path ] = new List<string>( Directory.GetDirectories( Path ) ); + } + else + { + Program.MainWindow.Status( "Lese Verzeichnis (offline): " + this.Path + " " ); + } + if ( OfflineDirs.ContainsKey( Path ) ) + { + return OfflineDirs[ Path ].ToArray(); + } + else + { + return new string[] { }; + } + } + } + + /// <summary> + /// Files eines Pfades aus dem SimDirs oder physikalisch lesen. + /// </summary> + /// <returns></returns> + private string[] GetFiles + { + get + { + // bei Online-Dateien direkt von der Platte esen + if ( IsOnline ) + { + OfflineFiles[ Path ] = new List<string>( Directory.GetFiles( this.Path ) ); + } + + // Bei Offline-Dateien die Hashcaches prfen + if ( OfflineFiles.ContainsKey( Path ) ) + { + return OfflineFiles[ Path ].ToArray(); + } + else + { + return new string[] { }; + } + } + } + + #endregion + } +} diff --git a/LanTool/Classes/StuffItemPair.cs b/LanTool/Classes/StuffItemPair.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace LanTool.Classes +{ + internal class StuffItemPair + { + public StuffItem Source; + public StuffItem Target; + } +} +\ No newline at end of file diff --git a/LanTool/Classes/StuffItemTree.cs b/LanTool/Classes/StuffItemTree.cs @@ -0,0 +1,303 @@ +using System.Collections.Generic; +using System.IO; +using LanTool.Classes; +using System; + +namespace LanTool +{ + internal class StuffItemTree : StuffItem + { + #region private fields + + private SortedDictionary<string, List<StuffItem>> stuffItemTreeByHash = new SortedDictionary<string, List<StuffItem>>(); + private SortedDictionary<string, List<StuffItem>> stuffItemTreeByName = new SortedDictionary<string, List<StuffItem>>(); + private long myDisksSpaceByClones = 0; + private long myDisksCountOfClones = 0; + private long myDisksCountOfAllowedClones = 0; + private long myDisksSpaceByAllowedClones = 0; + + #endregion + + /// <summary> + /// Root-Item der eigenen Platten + /// </summary> + public StuffItemTree(String path, Boolean isForeign) + { + Path = path; + IsOnForeignDisk = isForeign; + IsOnline = true; + } + + #region public methods + + public void CreateStuffItemTreeHash() + { + stuffItemTreeByHash.Clear(); + // Rcksetzen der Werte + myDisksCountOfClones = 0; + myDisksSpaceByClones = 0; + myDisksCountOfAllowedClones = 0; + myDisksSpaceByAllowedClones = 0; + // Fllen eigenen Disks + AddStuffItemToHashes( this ); + + if ( !IsOnForeignDisk ) + { + Program.MainWindow.Log( "Dublettensuche auf eigenen Platten..." ); + // Ausgabe der Ergebnisse der Dublettenprfung + if ( myDisksCountOfClones == 0 && myDisksCountOfAllowedClones == 0 ) + { + Program.MainWindow.LogHighlight( "Keine doppelten Dateien in 'Meine Platten', gut aufgerumt!" ); + } + else + { + Program.MainWindow.LogError( "Doppelte Dateien in 'Meine Platten': " + myDisksCountOfClones.ToString() + ", das sind ca " + ( ( ( double )( myDisksSpaceByClones / 104857 ) ) / 10 ).ToString() + " MB wertvoller Plattenplatz!" ); + Program.MainWindow.LogWarning( "Erlaubte doppelte Dateien in 'Meine Platten': " + myDisksCountOfAllowedClones.ToString() + ", das sind ca " + ( ( ( double )( myDisksSpaceByAllowedClones / 104857 ) ) / 10 ).ToString() + " MB Plattenplatz!" ); + } + } + } + + /// <summary> + /// Gibt die Dublettenliste des Items zurck (ohne das Item selbst). + /// Eine leere Liste bedeutet also, dass das Item keine Clones hat. + /// </summary> + public List<StuffItem> GetItemClones( StuffItem item ) + { + List<StuffItem> clonecopy = new List<StuffItem>(); + + // Alle Items mit dem gleichen Hash merken + List<StuffItem> clones = GetItemsRecursive( item ); + + // alle Items durchgehen und das Ursprungsitem wieder raussortieren + foreach ( StuffItem si in clones ) + { + if ( si != item ) + { + clonecopy.Add( si ); + } + } + return clonecopy; + } + + /// <summary> + /// Zurckgeben, wie oft ein Item (Hash-Test) im MyDisks hngt + /// </summary> + /// <param name="item"></param> + /// <returns></returns> + public int GetRecursiveItemCount( StuffItem item ) + { + return GetItemsRecursive( item ).Count; + } + + /// <summary> + /// Liefert alle StuffItems, die den gleichen Hash haben wie das bergebene + /// StuffItem + /// </summary> + /// <param name="item"></param> + /// <returns></returns> + public List<StuffItem> GetItemsRecursive( StuffItem item ) + { + List<StuffItem> retList = new List<StuffItem>(); + + // keine Dubletten bei Dateien mit Lesefehler + if ( item.HasReadError ) + { + return retList; + } + + // wenn die Datei in keiner Liste enthalten ist (weder Hash noch Name), dann raus + if ( !stuffItemTreeByHash.ContainsKey( item.Hash ) && !stuffItemTreeByName.ContainsKey( item.Name ) ) + { + return retList; + } + + // Alle Items by Hash ermitteln + if (stuffItemTreeByHash.ContainsKey( item.Hash ) ) + { + retList.AddRange( stuffItemTreeByHash[ item.Hash ] ); + } + + // restliche Prfung nur, wenn die Namensprfung angeschalten ist und die Datei auch enthalten ist + if ( Program.MainWindow.m_Config.IsTreatEqualNames && stuffItemTreeByName.ContainsKey( item.Name ) ) + { + // wenn die Datei berhaupt vorhanden ist, dann checken ob + foreach ( StuffItem si in stuffItemTreeByName[ item.Name ] ) + { + if ( !retList.Contains( si ) ) + { + retList.Add( si ); + } + } + } + + return retList; + } + + #endregion + + #region Private methods + + private void AddStuffItemToHashes( StuffItem si ) + { + // nur Dateien verarbeiten + if ( si.IsFile ) + { + // Name-Cache bearbeiten + if ( !stuffItemTreeByName.ContainsKey( si.Name ) ) + { + stuffItemTreeByName[ si.Name ] = new List<StuffItem>(); + stuffItemTreeByName[ si.Name ].Add( si ); + } + else + { + stuffItemTreeByName[ si.Name ].Add( si ); + } + + // Hash-Cache bearbeiten + if ( !stuffItemTreeByHash.ContainsKey( si.Hash ) ) + { + stuffItemTreeByHash[ si.Hash ] = new List<StuffItem>(); + stuffItemTreeByHash[ si.Hash ].Add( si ); + } + else + { + stuffItemTreeByHash[ si.Hash ].Add( si ); + if ( si.IsIgnored ) + { + try + { + myDisksSpaceByAllowedClones += System.Convert.ToInt64( si.Hash.Substring( 33 ), 16 ); + } + catch + { + } + myDisksCountOfAllowedClones++; + } + else + { + try + { + myDisksSpaceByClones += System.Convert.ToInt64( si.Hash.Substring( 33 ), 16 ); + } + catch + { + } + myDisksCountOfClones++; + } + } + } + else + { + // Verzeichnis -> alle Childs durchgehen + foreach ( StuffItem csi in si.ChildItems ) + { + AddStuffItemToHashes( csi ); + } + } + } + + internal void RemoveStuffItemFromHashes( StuffItem si ) + { + // StuffItem aus der Liste mit Hashes entfernen + stuffItemTreeByHash[ si.Hash ].Remove( si ); + + // StuffItem aus der Namensliste entfernen + stuffItemTreeByName[ si.Name ].Remove( si ); + } + + #endregion + + #region FileSystemCache fr Offline-Betrieb + + private Dictionary<string, List<string>> offlineDirs = new Dictionary<string, List<string>>(); + private Dictionary<string, List<string>> offlineFiles = new Dictionary<string, List<string>>(); + + public override Dictionary<string, List<string>> OfflineDirs + { + get + { + return offlineDirs; + } + } + + public override Dictionary<string, List<string>> OfflineFiles + { + get + { + return offlineFiles; + } + } + + /// <summary> + /// Offline Cache in eine Datei schreiben + /// </summary> + /// <param name="filename"></param> + public void SaveOfflineCacheToFile( string filename ) + { + using ( StreamWriter sw = File.CreateText( filename ) ) + { + foreach ( string sa in offlineDirs.Keys ) + { + foreach ( string sb in offlineDirs[ sa ] ) + { + sw.WriteLine( "D|" + sa + "|" + sb ); + } + } + foreach ( string sa in offlineFiles.Keys ) + { + foreach ( string sb in offlineFiles[ sa ] ) + { + sw.WriteLine( "F|" + sa + "|" + sb ); + } + } + } + + Program.MainWindow.Log( "Offline-Verzeichnis wurde nach " + filename + " geschrieben" ); + } + + + /// <summary> + /// Offline-Cache aus einer Datei lesen + /// </summary> + /// <param name="filename"></param> + public void LoadOfflineCacheFromFile( string filename ) + { + using ( StreamReader sr = File.OpenText( filename ) ) + { + string line; + while ( ( line = sr.ReadLine() ) != null ) + { + string[] zeile = line.Split( '|' ); + if ( zeile[ 0 ] == "F" ) + { + if ( !OfflineFiles.ContainsKey( zeile[ 1 ] ) ) + { + OfflineFiles[ zeile[ 1 ] ] = new List<string>(); + } + OfflineFiles[ zeile[ 1 ] ].Add( zeile[ 2 ] ); + } + else + { + if ( !offlineDirs.ContainsKey( zeile[ 1 ] ) ) + { + offlineDirs[ zeile[ 1 ] ] = new List<string>(); + } + offlineDirs[ zeile[ 1 ] ].Add( zeile[ 2 ] ); + } + } + } + IsOnline = false; + } + + /// <summary> + /// Simulation des Filesystems abschalten und zurcksetzen + /// </summary> + public void ResetOfflineCaches() + { + offlineDirs.Clear(); + offlineFiles.Clear(); + } + + #endregion + } +} +\ No newline at end of file diff --git a/LanTool/Classes/TaskBarList.cs b/LanTool/Classes/TaskBarList.cs @@ -0,0 +1,101 @@ +using System; +using System.Runtime.InteropServices; + +namespace LanTool.Classes +{ + [ComImportAttribute()] + [GuidAttribute("ea1afb91-9e28-4b86-90e9-9e9f8a5eefaf")] + [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)] + interface ITaskbarList3 + { + [PreserveSig] + void HrInit(); + [PreserveSig] + void AddTab(IntPtr hwnd); + [PreserveSig] + void DeleteTab(IntPtr hwnd); + [PreserveSig] + void ActivateTab(IntPtr hwnd); + [PreserveSig] + void SetActiveAlt(IntPtr hwnd); + + [PreserveSig] + void MarkFullscreenWindow(IntPtr hwnd, [MarshalAs(UnmanagedType.Bool)] bool fFullscreen); + + void SetProgressValue(IntPtr hwnd, UInt64 ullCompleted, UInt64 ullTotal); + void SetProgressState(IntPtr hwnd, TBPFLAG tbpFlags); + void RegisterTab(IntPtr hwndTab, IntPtr hwndMDI); + void UnregisterTab(IntPtr hwndTab); + void SetTabOrder(IntPtr hwndTab, IntPtr hwndInsertBefore); + void SetTabActive(IntPtr hwndTab, IntPtr hwndMDI, TBATFLAG tbatFlags); + void ThumbBarAddButtons(IntPtr hwnd, uint cButtons, [MarshalAs(UnmanagedType.LPArray)] THUMBBUTTON[] pButtons); + void ThumbBarUpdateButtons(IntPtr hwnd, uint cButtons, [MarshalAs(UnmanagedType.LPArray)] THUMBBUTTON[] pButtons); + void ThumbBarSetImageList(IntPtr hwnd, IntPtr himl); + void SetOverlayIcon(IntPtr hwnd, IntPtr hIcon, [MarshalAs(UnmanagedType.LPWStr)] string pszDescription); + void SetThumbnailTooltip(IntPtr hwnd, [MarshalAs(UnmanagedType.LPWStr)] string pszTip); + void SetThumbnailClip(IntPtr hwnd, ref RECT prcClip); + } + [GuidAttribute("56FDF344-FD6D-11d0-958A-006097C9A090")] + [ClassInterfaceAttribute(ClassInterfaceType.None)] + [ComImportAttribute()] + class TaskbarList { } + [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] + struct THUMBBUTTON + { + [MarshalAs(UnmanagedType.U4)] + public THBMASK dwMask; + public uint iId; + public uint iBitmap; + public IntPtr hIcon; + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)] + public string szTip; + [MarshalAs(UnmanagedType.U4)] + public THBFLAGS dwFlags; + } + enum THBMASK + { + THB_BITMAP = 0x1, + THB_ICON = 0x2, + THB_TOOLTIP = 0x4, + THB_FLAGS = 0x8 + } + + enum THBFLAGS + { + THBF_ENABLED = 0, + THBF_DISABLED = 0x1, + THBF_DISMISSONCLICK = 0x2, + THBF_NOBACKGROUND = 0x4, + THBF_HIDDEN = 0x8 + } + enum TBPFLAG + { + TBPF_NOPROGRESS = 0, + TBPF_INDETERMINATE = 0x1, + TBPF_NORMAL = 0x2, + TBPF_ERROR = 0x4, + TBPF_PAUSED = 0x8 + } + enum TBATFLAG + { + TBATF_USEMDITHUMBNAIL = 0x1, + TBATF_USEMDILIVEPREVIEW = 0x2 + } + struct RECT + { + public int left; + public int top; + public int right; + public int bottom; + + [System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", + Justification = "False positive" )] + public RECT(int left, int top, int right, int bottom) + { + this.left = left; + this.top = top; + this.right = right; + this.bottom = bottom; + } + } +} diff --git a/LanTool/Classes/TreeViewExtensions.cs b/LanTool/Classes/TreeViewExtensions.cs @@ -0,0 +1,28 @@ +using System; +using System.Windows.Forms; + +namespace LanTool.Classes +{ + /// <summary> + /// ExtensionsMethods für das WinForms-TreeView-Control + /// </summary> + public static class TreeViewExtensions + { + /// <summary> + /// Einen einzelnen TreeNode in der kompletten Hierarchie suchen + /// </summary> + /// <param name="treeView">TreeView, dass durchsucht werden soll</param> + /// <param name="path">Name/Pfad des gesuchten TreeNode</param> + /// <returns>den TreeNode, wenn einer gefunden wird, ansonsten null</returns> + public static TreeNode FindSingleNode( this TreeView treeView, String path ) + { + if ( treeView == null ) + { + return null; + } + + TreeNode[] tn = treeView.Nodes.Find( path, true ); + return tn.Length > 0 ? tn[0] : null; + } + } +} diff --git a/LanTool/ConfigEdit.Designer.cs b/LanTool/ConfigEdit.Designer.cs @@ -0,0 +1,386 @@ +namespace LanTool +{ + partial class ConfigEdit + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConfigEdit)); + this.chkHideExcludedFiles = new System.Windows.Forms.CheckBox(); + this.chkShowIgnoredClones = new System.Windows.Forms.CheckBox(); + this.label1 = new System.Windows.Forms.Label(); + this.chkAutoUpdateOtherDisks = new System.Windows.Forms.CheckBox(); + this.chkAutoUpdateMyDisks = new System.Windows.Forms.CheckBox(); + this.txtMD5Length = new System.Windows.Forms.TextBox(); + this.Md5Label = new System.Windows.Forms.Label(); + this.btnAbbruch = new System.Windows.Forms.Button(); + this.ttiConfig = new System.Windows.Forms.ToolTip(this.components); + this.chkLowerPriority = new System.Windows.Forms.CheckBox(); + this.txtHeaderExtension = new System.Windows.Forms.TextBox(); + this.lblTitelzeile = new System.Windows.Forms.Label(); + this.chkTreatEqualNames = new System.Windows.Forms.CheckBox(); + this.chkRemoveMarks = new System.Windows.Forms.CheckBox(); + this.chkHideExistingFiles = new System.Windows.Forms.CheckBox(); + this.btnRemoveDefaultOfflineFile = new System.Windows.Forms.Button(); + this.label2 = new System.Windows.Forms.Label(); + this.btnSelectDefaultOfflineFile = new System.Windows.Forms.Button(); + this.txtDefaultOfflineFile = new System.Windows.Forms.TextBox(); + this.btnOK = new System.Windows.Forms.Button(); + this.OtherDisksBox = new LanTool.ConfigListBox(); + this.MyDisksBox = new LanTool.ConfigListBox(); + this.BlackListBox = new LanTool.ConfigListBox(); + this.WhiteListBox = new LanTool.ConfigListBox(); + this.SuspendLayout(); + // + // chkHideExcludedFiles + // + this.chkHideExcludedFiles.AutoSize = true; + this.chkHideExcludedFiles.Location = new System.Drawing.Point(717, 301); + this.chkHideExcludedFiles.Name = "chkHideExcludedFiles"; + this.chkHideExcludedFiles.Size = new System.Drawing.Size(166, 17); + this.chkHideExcludedFiles.TabIndex = 81; + this.chkHideExcludedFiles.Text = "gesperrte Dateien verstecken"; + this.ttiConfig.SetToolTip(this.chkHideExcludedFiles, "Ist diese Option aktiviert, so werden gesperrte Dateien\r\nnicht mehr in die Baumst" + + "ruktur eingetragen.\r\n\r\nEin Entsperren ist daher auch erst dann mglich, wenn\r\ndi" + + "ese Option deaktiviert wurde."); + this.chkHideExcludedFiles.UseVisualStyleBackColor = true; + // + // chkShowIgnoredClones + // + this.chkShowIgnoredClones.AutoSize = true; + this.chkShowIgnoredClones.Location = new System.Drawing.Point(485, 301); + this.chkShowIgnoredClones.Name = "chkShowIgnoredClones"; + this.chkShowIgnoredClones.Size = new System.Drawing.Size(168, 17); + this.chkShowIgnoredClones.TabIndex = 80; + this.chkShowIgnoredClones.Text = "erlaubte Dubletten einblenden"; + this.ttiConfig.SetToolTip(this.chkShowIgnoredClones, "Wenn aktiviert, werden erlaubte Dubletten beim Anzeigen der\r\nBaumstruktur behande" + + "lt wie normale Dubletten, d.h. die Pfade\r\nmit den Dubletten werden aufgeklappt."); + this.chkShowIgnoredClones.UseVisualStyleBackColor = true; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(21, 278); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(438, 91); + this.label1.TabIndex = 77; + this.label1.Text = resources.GetString("label1.Text"); + // + // chkAutoUpdateOtherDisks + // + this.chkAutoUpdateOtherDisks.AutoSize = true; + this.chkAutoUpdateOtherDisks.Location = new System.Drawing.Point(717, 278); + this.chkAutoUpdateOtherDisks.Name = "chkAutoUpdateOtherDisks"; + this.chkAutoUpdateOtherDisks.Size = new System.Drawing.Size(145, 17); + this.chkAutoUpdateOtherDisks.TabIndex = 79; + this.chkAutoUpdateOtherDisks.Text = "automatisch aktualisieren"; + this.chkAutoUpdateOtherDisks.UseVisualStyleBackColor = true; + // + // chkAutoUpdateMyDisks + // + this.chkAutoUpdateMyDisks.AutoSize = true; + this.chkAutoUpdateMyDisks.Location = new System.Drawing.Point(485, 278); + this.chkAutoUpdateMyDisks.Name = "chkAutoUpdateMyDisks"; + this.chkAutoUpdateMyDisks.Size = new System.Drawing.Size(145, 17); + this.chkAutoUpdateMyDisks.TabIndex = 78; + this.chkAutoUpdateMyDisks.Text = "automatisch aktualisieren"; + this.chkAutoUpdateMyDisks.UseVisualStyleBackColor = true; + // + // txtMD5Length + // + this.txtMD5Length.Location = new System.Drawing.Point(217, 11); + this.txtMD5Length.MaxLength = 20; + this.txtMD5Length.Name = "txtMD5Length"; + this.txtMD5Length.Size = new System.Drawing.Size(100, 20); + this.txtMD5Length.TabIndex = 68; + this.ttiConfig.SetToolTip(this.txtMD5Length, resources.GetString("txtMD5Length.ToolTip")); + // + // Md5Label + // + this.Md5Label.AutoSize = true; + this.Md5Label.Location = new System.Drawing.Point(21, 14); + this.Md5Label.Name = "Md5Label"; + this.Md5Label.Size = new System.Drawing.Size(193, 13); + this.Md5Label.TabIndex = 67; + this.Md5Label.Text = "Bufferlnge fr Dateivergleich (in Bytes)"; + this.ttiConfig.SetToolTip(this.Md5Label, resources.GetString("Md5Label.ToolTip")); + // + // btnAbbruch + // + this.btnAbbruch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.btnAbbruch.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.btnAbbruch.Location = new System.Drawing.Point(870, 378); + this.btnAbbruch.Name = "btnAbbruch"; + this.btnAbbruch.Size = new System.Drawing.Size(75, 23); + this.btnAbbruch.TabIndex = 86; + this.btnAbbruch.Text = "Abbruch"; + this.btnAbbruch.UseVisualStyleBackColor = true; + // + // ttiConfig + // + this.ttiConfig.AutoPopDelay = 10000; + this.ttiConfig.InitialDelay = 500; + this.ttiConfig.ReshowDelay = 100; + this.ttiConfig.ToolTipTitle = "Konfigurationserklrung"; + // + // chkLowerPriority + // + this.chkLowerPriority.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.chkLowerPriority.AutoSize = true; + this.chkLowerPriority.Location = new System.Drawing.Point(485, 382); + this.chkLowerPriority.Name = "chkLowerPriority"; + this.chkLowerPriority.Size = new System.Drawing.Size(212, 17); + this.chkLowerPriority.TabIndex = 88; + this.chkLowerPriority.Text = "Programm mit geringerer Prioritt starten"; + this.ttiConfig.SetToolTip(this.chkLowerPriority, "Aktivieren Sie diese Option, wenn LanTool mit der Prioritt \"niedriger als normal" + + "\" gestartet werden soll.\r\nDadurch strt LanTool laufende Spiele weniger."); + this.chkLowerPriority.UseVisualStyleBackColor = true; + // + // txtHeaderExtension + // + this.txtHeaderExtension.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.txtHeaderExtension.Location = new System.Drawing.Point(217, 379); + this.txtHeaderExtension.MaxLength = 15; + this.txtHeaderExtension.Name = "txtHeaderExtension"; + this.txtHeaderExtension.Size = new System.Drawing.Size(100, 20); + this.txtHeaderExtension.TabIndex = 87; + this.ttiConfig.SetToolTip(this.txtHeaderExtension, "Dieser Text wird in der Programmtitelzeile des LanTool noch vor dem Programmnamen" + + " angezeigt."); + this.txtHeaderExtension.Validating += new System.ComponentModel.CancelEventHandler(this.txtHeaderExtension_Validating); + // + // lblTitelzeile + // + this.lblTitelzeile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.lblTitelzeile.AutoSize = true; + this.lblTitelzeile.Location = new System.Drawing.Point(21, 382); + this.lblTitelzeile.Name = "lblTitelzeile"; + this.lblTitelzeile.Size = new System.Drawing.Size(154, 13); + this.lblTitelzeile.TabIndex = 66; + this.lblTitelzeile.Text = "Kennzeichnung in der Titelzeile"; + this.ttiConfig.SetToolTip(this.lblTitelzeile, "Dieser Text wird in der Programmtitelzeile des LanTool noch vor dem Programmnamen" + + " angezeigt."); + // + // chkTreatEqualNames + // + this.chkTreatEqualNames.AutoSize = true; + this.chkTreatEqualNames.Location = new System.Drawing.Point(717, 347); + this.chkTreatEqualNames.Name = "chkTreatEqualNames"; + this.chkTreatEqualNames.Size = new System.Drawing.Size(199, 17); + this.chkTreatEqualNames.TabIndex = 84; + this.chkTreatEqualNames.Text = "identische Dateinamen ausschlieen"; + this.ttiConfig.SetToolTip(this.chkTreatEqualNames, "Dateien auf den eigenen und den fremden Platten mit unterschiedlichen Hashes aber" + + " identischen Dateinamen werden als gleiche Dateien behandelt."); + this.chkTreatEqualNames.UseVisualStyleBackColor = true; + // + // chkRemoveMarks + // + this.chkRemoveMarks.AutoSize = true; + this.chkRemoveMarks.Location = new System.Drawing.Point(485, 324); + this.chkRemoveMarks.Name = "chkRemoveMarks"; + this.chkRemoveMarks.Size = new System.Drawing.Size(199, 17); + this.chkRemoveMarks.TabIndex = 82; + this.chkRemoveMarks.Text = "Markierungen nach Aktion entfernen"; + this.ttiConfig.SetToolTip(this.chkRemoveMarks, resources.GetString("chkRemoveMarks.ToolTip")); + this.chkRemoveMarks.UseVisualStyleBackColor = true; + // + // chkHideExistingFiles + // + this.chkHideExistingFiles.AutoSize = true; + this.chkHideExistingFiles.Location = new System.Drawing.Point(717, 324); + this.chkHideExistingFiles.Name = "chkHideExistingFiles"; + this.chkHideExistingFiles.Size = new System.Drawing.Size(179, 17); + this.chkHideExistingFiles.TabIndex = 83; + this.chkHideExistingFiles.Text = "vorhandene Dateien verstecken"; + this.ttiConfig.SetToolTip(this.chkHideExistingFiles, "Aktiviere diese Option, wenn Dateien, die bereits auf\r\nden eigenen Platten liegen" + + ", auf den fremden Platten nicht\r\nmehr angezeigt werden sollen."); + this.chkHideExistingFiles.UseVisualStyleBackColor = true; + // + // btnRemoveDefaultOfflineFile + // + this.btnRemoveDefaultOfflineFile.Image = global::LanTool.Properties.Resources.DeleteHS; + this.btnRemoveDefaultOfflineFile.Location = new System.Drawing.Point(920, 9); + this.btnRemoveDefaultOfflineFile.Name = "btnRemoveDefaultOfflineFile"; + this.btnRemoveDefaultOfflineFile.Size = new System.Drawing.Size(25, 23); + this.btnRemoveDefaultOfflineFile.TabIndex = 72; + this.btnRemoveDefaultOfflineFile.UseVisualStyleBackColor = true; + this.btnRemoveDefaultOfflineFile.Click += new System.EventHandler(this.btnRemoveDefaultOfflineFile_Click); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(367, 14); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(156, 13); + this.label2.TabIndex = 69; + this.label2.Text = "Offline-Datei beim Starten laden"; + // + // btnSelectDefaultOfflineFile + // + this.btnSelectDefaultOfflineFile.Image = global::LanTool.Properties.Resources.OpenFile; + this.btnSelectDefaultOfflineFile.Location = new System.Drawing.Point(889, 9); + this.btnSelectDefaultOfflineFile.Name = "btnSelectDefaultOfflineFile"; + this.btnSelectDefaultOfflineFile.Size = new System.Drawing.Size(25, 23); + this.btnSelectDefaultOfflineFile.TabIndex = 71; + this.btnSelectDefaultOfflineFile.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.btnSelectDefaultOfflineFile.UseVisualStyleBackColor = true; + this.btnSelectDefaultOfflineFile.Click += new System.EventHandler(this.btnSelectDefaultOfflineFile_Click); + // + // txtDefaultOfflineFile + // + this.txtDefaultOfflineFile.Location = new System.Drawing.Point(529, 11); + this.txtDefaultOfflineFile.Name = "txtDefaultOfflineFile"; + this.txtDefaultOfflineFile.Size = new System.Drawing.Size(354, 20); + this.txtDefaultOfflineFile.TabIndex = 70; + // + // btnOK + // + this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.btnOK.Location = new System.Drawing.Point(789, 378); + this.btnOK.Name = "btnOK"; + this.btnOK.Size = new System.Drawing.Size(75, 23); + this.btnOK.TabIndex = 85; + this.btnOK.Text = "OK"; + this.btnOK.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.btnOK.UseVisualStyleBackColor = true; + this.btnOK.Click += new System.EventHandler(this.OkButton_Click); + // + // OtherDisksBox + // + this.OtherDisksBox.HasFolderSelectButton = true; + this.OtherDisksBox.HasNewFolderButton = false; + this.OtherDisksBox.Header = "Fremde Platten"; + this.OtherDisksBox.Location = new System.Drawing.Point(708, 37); + this.OtherDisksBox.Name = "OtherDisksBox"; + this.OtherDisksBox.Size = new System.Drawing.Size(237, 234); + this.OtherDisksBox.Sorted = true; + this.OtherDisksBox.TabIndex = 76; + // + // MyDisksBox + // + this.MyDisksBox.HasFolderSelectButton = true; + this.MyDisksBox.HasNewFolderButton = true; + this.MyDisksBox.Header = "Meine Platten"; + this.MyDisksBox.Location = new System.Drawing.Point(476, 37); + this.MyDisksBox.Name = "MyDisksBox"; + this.MyDisksBox.Size = new System.Drawing.Size(226, 234); + this.MyDisksBox.Sorted = true; + this.MyDisksBox.TabIndex = 75; + // + // BlackListBox + // + this.BlackListBox.HasFolderSelectButton = false; + this.BlackListBox.HasNewFolderButton = false; + this.BlackListBox.Header = "Blacklist fr Dateiendungen"; + this.BlackListBox.Location = new System.Drawing.Point(244, 37); + this.BlackListBox.Name = "BlackListBox"; + this.BlackListBox.Size = new System.Drawing.Size(226, 234); + this.BlackListBox.Sorted = false; + this.BlackListBox.TabIndex = 74; + // + // WhiteListBox + // + this.WhiteListBox.HasFolderSelectButton = false; + this.WhiteListBox.HasNewFolderButton = false; + this.WhiteListBox.Header = "Whitelist fr Dateiendungen"; + this.WhiteListBox.Location = new System.Drawing.Point(12, 37); + this.WhiteListBox.Name = "WhiteListBox"; + this.WhiteListBox.Size = new System.Drawing.Size(226, 234); + this.WhiteListBox.Sorted = false; + this.WhiteListBox.TabIndex = 73; + // + // ConfigEdit + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(957, 413); + this.ControlBox = false; + this.Controls.Add(this.chkHideExcludedFiles); + this.Controls.Add(this.chkShowIgnoredClones); + this.Controls.Add(this.label1); + this.Controls.Add(this.chkAutoUpdateOtherDisks); + this.Controls.Add(this.chkAutoUpdateMyDisks); + this.Controls.Add(this.OtherDisksBox); + this.Controls.Add(this.MyDisksBox); + this.Controls.Add(this.BlackListBox); + this.Controls.Add(this.txtMD5Length); + this.Controls.Add(this.Md5Label); + this.Controls.Add(this.btnAbbruch); + this.Controls.Add(this.chkLowerPriority); + this.Controls.Add(this.txtHeaderExtension); + this.Controls.Add(this.lblTitelzeile); + this.Controls.Add(this.btnRemoveDefaultOfflineFile); + this.Controls.Add(this.label2); + this.Controls.Add(this.btnSelectDefaultOfflineFile); + this.Controls.Add(this.txtDefaultOfflineFile); + this.Controls.Add(this.chkTreatEqualNames); + this.Controls.Add(this.chkRemoveMarks); + this.Controls.Add(this.chkHideExistingFiles); + this.Controls.Add(this.btnOK); + this.Controls.Add(this.WhiteListBox); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Margin = new System.Windows.Forms.Padding(2); + this.Name = "ConfigEdit"; + this.Text = "LanTool - Konfiguration"; + this.Load += new System.EventHandler(this.ConfigEdit_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.CheckBox chkHideExcludedFiles; + private System.Windows.Forms.ToolTip ttiConfig; + private System.Windows.Forms.CheckBox chkShowIgnoredClones; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.CheckBox chkAutoUpdateOtherDisks; + private System.Windows.Forms.CheckBox chkAutoUpdateMyDisks; + private ConfigListBox OtherDisksBox; + private ConfigListBox MyDisksBox; + private ConfigListBox BlackListBox; + private System.Windows.Forms.TextBox txtMD5Length; + private System.Windows.Forms.Label Md5Label; + private System.Windows.Forms.Button btnAbbruch; + private System.Windows.Forms.CheckBox chkLowerPriority; + private System.Windows.Forms.TextBox txtHeaderExtension; + private System.Windows.Forms.Label lblTitelzeile; + private System.Windows.Forms.CheckBox chkTreatEqualNames; + private System.Windows.Forms.CheckBox chkRemoveMarks; + private System.Windows.Forms.CheckBox chkHideExistingFiles; + private System.Windows.Forms.Button btnRemoveDefaultOfflineFile; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Button btnSelectDefaultOfflineFile; + private System.Windows.Forms.TextBox txtDefaultOfflineFile; + private System.Windows.Forms.Button btnOK; + private ConfigListBox WhiteListBox; + + + + + } +} + diff --git a/LanTool/ConfigEdit.cs b/LanTool/ConfigEdit.cs @@ -0,0 +1,163 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Text.RegularExpressions; +using System.Windows.Forms; + +namespace LanTool +{ + /// <summary> + /// Formular zur Bearbeitung aller im LanTool bekannten Einstellungen + /// </summary> + internal partial class ConfigEdit: Form + { + public List<string> excludeExtension = new List<string>(); + public List<string> restrictExtension = new List<string>(); + public List<string> myDisks = new List<string>(); + public List<string> otherDisks = new List<string>(); + public int Md5FileSize = 10000; + public bool AutoScanMyDisks = false; + public bool AutoScanOtherDisks = false; + public bool ShowIgnoredClones = false; + public bool HideExcludedFiles = false; + public bool HideExistingFiles = false; + public bool RemoveMarks = false; + public bool TreatEqualNames = false; + public bool LowerPriority = false; + public string HeaderExtension = String.Empty; + public string DefaultOfflineFile = String.Empty; + + private string _basePath; + + /// <summary> + /// Konstruktor + /// </summary> + public ConfigEdit(string basePath) + { + InitializeComponent(); + + _basePath = basePath; + } + + private void ConfigEdit_Load(object sender, EventArgs e) + { + this.txtMD5Length.Text = Md5FileSize.ToString(); + this.chkAutoUpdateMyDisks.Checked = AutoScanMyDisks; + this.chkAutoUpdateOtherDisks.Checked = AutoScanOtherDisks; + this.chkShowIgnoredClones.Checked = ShowIgnoredClones; + this.chkHideExcludedFiles.Checked = HideExcludedFiles; + this.chkHideExistingFiles.Checked = HideExistingFiles; + this.chkRemoveMarks.Checked = RemoveMarks; + this.chkTreatEqualNames.Checked = TreatEqualNames; + this.chkLowerPriority.Checked = LowerPriority; + this.txtDefaultOfflineFile.Text = DefaultOfflineFile; + this.txtHeaderExtension.Text = HeaderExtension; + + foreach (string s in excludeExtension) + { + this.BlackListBox.Items.Add(s); + } + foreach (string s in restrictExtension) + { + this.WhiteListBox.Items.Add(s); + } + foreach (string s in myDisks) + { + this.MyDisksBox.Items.Add(s); + } + foreach (string s in otherDisks) + { + this.OtherDisksBox.Items.Add(s); + } + } + + private void OkButton_Click(object sender, EventArgs e) + { + try + { + this.Md5FileSize = System.Int32.Parse(this.txtMD5Length.Text); + } + catch + { + // Bei Fehleingaben ignorieren + } + AutoScanMyDisks = this.chkAutoUpdateMyDisks.Checked; + AutoScanOtherDisks = this.chkAutoUpdateOtherDisks.Checked; + ShowIgnoredClones = this.chkShowIgnoredClones.Checked; + HideExcludedFiles = this.chkHideExcludedFiles.Checked; + HideExistingFiles = this.chkHideExistingFiles.Checked; + RemoveMarks = this.chkRemoveMarks.Checked; + TreatEqualNames = this.chkTreatEqualNames.Checked; + DefaultOfflineFile = this.txtDefaultOfflineFile.Text; + LowerPriority = this.chkLowerPriority.Checked; + HeaderExtension = this.txtHeaderExtension.Text; + excludeExtension.Clear(); + foreach (string s in this.BlackListBox.Items) + { + excludeExtension.Add(s); + } + restrictExtension.Clear(); + foreach (string s in this.WhiteListBox.Items) + { + restrictExtension.Add(s); + } + myDisks.Clear(); + foreach (string s in this.MyDisksBox.Items) + { + myDisks.Add(s); + } + otherDisks.Clear(); + foreach (string s in this.OtherDisksBox.Items) + { + otherDisks.Add(s); + } + this.DialogResult = DialogResult.OK; + this.Close(); + } + + #region Eventhandler auf diverse Controls + + private void btnRemoveDefaultOfflineFile_Click(object sender, EventArgs e) + { + txtDefaultOfflineFile.Text = String.Empty; + } + + private void btnSelectDefaultOfflineFile_Click(object sender, EventArgs e) + { + using (OpenFileDialog fd = new OpenFileDialog()) + { + fd.Filter = "LanTool-Verzeichnis-Export (*.files)|*.files|Textdateien (*.txt)|*.txt"; + fd.DefaultExt = "*.files"; + fd.FileName = "MeinePlatten.files"; + fd.InitialDirectory = _basePath; + fd.CheckFileExists = true; + fd.CheckPathExists = true; + fd.Multiselect = false; + fd.AutoUpgradeEnabled = true; + if (fd.ShowDialog(this) == DialogResult.OK) + { + // wenn die Datei im gleichen Verzeichnis wie das LanTool liegt, + // dann nur den Dateinamen speichern + if (fd.FileName.StartsWith(_basePath)) + { + fd.FileName = fd.FileName.Remove(0, _basePath.Length); + } + txtDefaultOfflineFile.Text = fd.FileName; + } + } + } + + private void txtHeaderExtension_Validating(object sender, CancelEventArgs e) + { + if (!Regex.IsMatch(txtHeaderExtension.Text, "^[A-Za-z0-9_#+!]*$")) + { + MessageBox.Show("Es wurden ungltige Zeichen eingegeben." + Environment.NewLine + Environment.NewLine + + "Erlaubte Zeichen sind:" + Environment.NewLine + "Gro- und Kleinbuchstaben A bis Z" + Environment.NewLine + + "Ziffern 0 bis 9" + Environment.NewLine + "Sonderzeichen _ # + !"); + e.Cancel = true; + } + } + + #endregion + } +} diff --git a/LanTool/ConfigEdit.resx b/LanTool/ConfigEdit.resx @@ -0,0 +1,167 @@ +<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <metadata name="ttiConfig.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>9, 18</value> + </metadata> + <data name="label1.Text" xml:space="preserve"> + <value>Mit der Whitelist kann die Suche auf bestimmte Dateiendungen eingeschränkt werden, +z.B. ".pdf" oder ".mp3". Solange kein Eintrag in der Liste ist, werden alle Dateien +gesucht, sonst nur die, deren Endungen in der Liste stehen. +Mit der Blacklist können gezielt Dateien und Ordner ausgenommen werden, z.B. ".mp3", +"Thumbs.db" oder "System Volume Information". Dateien erscheinen nicht, wenn das Ende +ihres Namens mit einem Eintrag in der Liste übereinstimmt. Die Blacklist wird auch auf +Verzeichnisnamen angewendet.</value> + </data> + <data name="txtMD5Length.ToolTip" xml:space="preserve"> + <value>Anzahl Bytes, die für die Ermittlung des Hashes der Datei +benutzt werden. +Achtung: Dieser Hash dient zur eindeutigen Identifizierung einer +Datei und sollte daher nicht zu klein gewählt werden, da es sonst zu +falschen Dublettenerkennungen kommen kann. +Große Werte erhöhen die allerdings Dauer für einen +Festplattenscan benötigt. +Default-Einstellung sind 10.000 Bytes. + +Wird dieser Wert nachträglich geändert, werden die Sperrliste und +die Liste der erlaubten Dubletten ungültig.</value> + </data> + <data name="Md5Label.ToolTip" xml:space="preserve"> + <value>Anzahl Bytes, die für die Ermittlung des Hashes der Datei +benutzt werden. +Achtung: Dieser Hash dient zur eindeutigen Identifizierung einer +Datei und sollte daher nicht zu klein gewählt werden, da es sonst zu +falschen Dublettenerkennungen kommen kann. +Große Werte erhöhen die allerdings Dauer für einen +Festplattenscan benötigt. +Default-Einstellung sind 10.000 Bytes. + +Wird dieser Wert nachträglich geändert, werden die Sperrliste und +die Liste der erlaubten Dubletten ungültig.</value> + </data> + <data name="chkRemoveMarks.ToolTip" xml:space="preserve"> + <value>Wenn aktiviert, werden Markierungen nach dem Ausführen einer Aktion auf alle Markierungen automatisch entfernt. + +Dies umfasst die folgenden Aktionen: +* Alle markierten Dateien sperren +* Alle markierten Dateien entsperren +* Alle fremden selektierten Dateien direkt in diesen Ordner kopieren (flat) +* Alle fremden selektierten Dateien mit Ordnerstruktur in diesen Ordner kopieren</value> + </data> +</root> +\ No newline at end of file diff --git a/LanTool/ConfigListBox.Designer.cs b/LanTool/ConfigListBox.Designer.cs @@ -0,0 +1,161 @@ +namespace LanTool +{ + /// <summary> + /// Konfigurationslistbox fr Pfadauswahl + /// </summary> + partial class ConfigListBox + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConfigListBox)); + this.ConfigurationLabel = new System.Windows.Forms.Label(); + this.ConfigurationListBox = new System.Windows.Forms.ListBox(); + this.AddTextBox = new System.Windows.Forms.TextBox(); + this.AddButton = new System.Windows.Forms.Button(); + this.FolderSelectButton = new System.Windows.Forms.Button(); + this.DeleteButton = new System.Windows.Forms.Button(); + this.DownButton = new System.Windows.Forms.Button(); + this.UpButton = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // ConfigurationLabel + // + this.ConfigurationLabel.AutoSize = true; + this.ConfigurationLabel.Location = new System.Drawing.Point(-3, 5); + this.ConfigurationLabel.Name = "ConfigurationLabel"; + this.ConfigurationLabel.Size = new System.Drawing.Size(96, 13); + this.ConfigurationLabel.TabIndex = 0; + this.ConfigurationLabel.Text = "Wert nicht gesetzt:"; + // + // ConfigurationListBox + // + this.ConfigurationListBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.ConfigurationListBox.FormattingEnabled = true; + this.ConfigurationListBox.Location = new System.Drawing.Point(0, 21); + this.ConfigurationListBox.Name = "ConfigurationListBox"; + this.ConfigurationListBox.Size = new System.Drawing.Size(192, 186); + this.ConfigurationListBox.TabIndex = 1; + this.ConfigurationListBox.SelectedIndexChanged += new System.EventHandler(this.ConfigurationListBox_SelectedIndexChanged); + // + // AddTextBox + // + this.AddTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.AddTextBox.Location = new System.Drawing.Point(0, 211); + this.AddTextBox.Name = "AddTextBox"; + this.AddTextBox.Size = new System.Drawing.Size(161, 20); + this.AddTextBox.TabIndex = 2; + // + // AddButton + // + this.AddButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.AddButton.Image = global::LanTool.Properties.Resources.saveHS; + this.AddButton.Location = new System.Drawing.Point(199, 208); + this.AddButton.Name = "AddButton"; + this.AddButton.Size = new System.Drawing.Size(24, 23); + this.AddButton.TabIndex = 7; + this.AddButton.UseVisualStyleBackColor = true; + this.AddButton.Click += new System.EventHandler(this.AddButton_Click); + // + // FolderSelectButton + // + this.FolderSelectButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.FolderSelectButton.Image = global::LanTool.Properties.Resources.openfolderHS; + this.FolderSelectButton.Location = new System.Drawing.Point(167, 209); + this.FolderSelectButton.Name = "FolderSelectButton"; + this.FolderSelectButton.Size = new System.Drawing.Size(25, 23); + this.FolderSelectButton.TabIndex = 6; + this.FolderSelectButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.FolderSelectButton.UseVisualStyleBackColor = true; + this.FolderSelectButton.Click += new System.EventHandler(this.FolderSelectButton_Click); + // + // DeleteButton + // + this.DeleteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.DeleteButton.Image = global::LanTool.Properties.Resources.DeleteHS; + this.DeleteButton.Location = new System.Drawing.Point(198, 21); + this.DeleteButton.Name = "DeleteButton"; + this.DeleteButton.Size = new System.Drawing.Size(25, 29); + this.DeleteButton.TabIndex = 5; + this.DeleteButton.UseVisualStyleBackColor = true; + this.DeleteButton.Click += new System.EventHandler(this.DeleteButton_Click); + // + // DownButton + // + this.DownButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.DownButton.Image = ((System.Drawing.Image)(resources.GetObject("DownButton.Image"))); + this.DownButton.Location = new System.Drawing.Point(198, 91); + this.DownButton.Name = "DownButton"; + this.DownButton.Size = new System.Drawing.Size(25, 29); + this.DownButton.TabIndex = 4; + this.DownButton.UseVisualStyleBackColor = true; + this.DownButton.Click += new System.EventHandler(this.DownButton_Click); + // + // UpButton + // + this.UpButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.UpButton.Image = ((System.Drawing.Image)(resources.GetObject("UpButton.Image"))); + this.UpButton.Location = new System.Drawing.Point(198, 56); + this.UpButton.Name = "UpButton"; + this.UpButton.Size = new System.Drawing.Size(25, 29); + this.UpButton.TabIndex = 3; + this.UpButton.UseVisualStyleBackColor = true; + this.UpButton.Click += new System.EventHandler(this.UpButton_Click); + // + // ConfigListBox + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.AddButton); + this.Controls.Add(this.FolderSelectButton); + this.Controls.Add(this.DeleteButton); + this.Controls.Add(this.DownButton); + this.Controls.Add(this.UpButton); + this.Controls.Add(this.AddTextBox); + this.Controls.Add(this.ConfigurationListBox); + this.Controls.Add(this.ConfigurationLabel); + this.Name = "ConfigListBox"; + this.Size = new System.Drawing.Size(223, 234); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label ConfigurationLabel; + private System.Windows.Forms.ListBox ConfigurationListBox; + private System.Windows.Forms.TextBox AddTextBox; + private System.Windows.Forms.Button UpButton; + private System.Windows.Forms.Button DownButton; + private System.Windows.Forms.Button DeleteButton; + private System.Windows.Forms.Button FolderSelectButton; + private System.Windows.Forms.Button AddButton; + } +} diff --git a/LanTool/ConfigListBox.cs b/LanTool/ConfigListBox.cs @@ -0,0 +1,188 @@ +using System; +using System.ComponentModel; +using System.Windows.Forms; + +namespace LanTool +{ + public partial class ConfigListBox : UserControl + { + /// <summary> + /// spezielle Listbox fr die Konfiguration + /// </summary> + public ConfigListBox() + { + InitializeComponent(); + } + + /// <summary> + /// Setzt die berschrift ber die ConfigListBox + /// </summary> + [Browsable(true)] + public string Header + { + get + { + return this.ConfigurationLabel.Text; + } + set + { + this.ConfigurationLabel.Text = value; + } + } + + private bool _hasFolderSelectButton = true; + /// <summary> + /// Gibt an, ob ein Folder-Auswahl-Knopf angeboten wird + /// </summary> + [Browsable(true)] + public bool HasFolderSelectButton + { + get + { + return _hasFolderSelectButton; + } + set + { + _hasFolderSelectButton = value; + this.FolderSelectButton.Visible = _hasFolderSelectButton; + this.AddTextBox.Width = HasFolderSelectButton ? 161 : 192; + } + } + + private bool _hasNewFolderButton = true; + /// <summary> + /// Gibt an, ob der bei der Ordnerauswahl "Neuen Ordner anlegen" angeboten wird + /// </summary> + [Browsable(true)] + public bool HasNewFolderButton + { + get + { + return _hasNewFolderButton; + } + set + { + _hasNewFolderButton = value; + } + } + + private bool _sorted = true; + /// <summary> + /// Gibt an, ob der bei der Ordnerauswahl "Neuen Ordner anlegen" angeboten wird + /// </summary> + [Browsable(true)] + public bool Sorted + { + get + { + return _sorted; + } + set + { + _sorted = value; + if (_sorted) + { + UpButton.Visible = false; + DownButton.Visible = false; + } + } + } + + /// <summary> + /// alle enthaltenen Elemente + /// </summary> + public ListBox.ObjectCollection Items + { + get + { + return this.ConfigurationListBox.Items; + } + } + + /// <summary> + /// Klickt auf den Button "Ordner auswhlen" + /// </summary> + private void FolderSelectButton_Click(object sender, EventArgs e) + { + using (FolderBrowserDialog fd = new FolderBrowserDialog()) + { + fd.ShowNewFolderButton = this.HasNewFolderButton; + if (fd.ShowDialog(this).Equals(DialogResult.OK)) + { + this.AddTextBox.Text = fd.SelectedPath; + } + } + } + + /// <summary> + /// Click auf den Button "Speichern" + /// </summary> + private void AddButton_Click(object sender, EventArgs e) + { + if (!String.IsNullOrEmpty(this.AddTextBox.Text)) + { + int sel = this.ConfigurationListBox.SelectedIndex; + if (sel >= 0) + { + this.ConfigurationListBox.Items[sel] = this.AddTextBox.Text; + this.ConfigurationListBox.SelectedIndex = -1; + } + else + { + this.ConfigurationListBox.Items.Add(this.AddTextBox.Text); + } + this.AddTextBox.Text = ""; + } + } + + private void UpButton_Click(object sender, EventArgs e) + { + int sel = this.ConfigurationListBox.SelectedIndex; + if (sel > 0) + { + string wert = this.ConfigurationListBox.Items[sel].ToString(); + this.ConfigurationListBox.Items.RemoveAt(sel); + this.ConfigurationListBox.Items.Insert(sel - 1, wert); + this.ConfigurationListBox.SelectedIndex = sel - 1; + } + } + + private void DownButton_Click(object sender, EventArgs e) + { + int sel = this.ConfigurationListBox.SelectedIndex; + if (sel >= 0 && sel < this.ConfigurationListBox.Items.Count - 1) + { + string wert = this.ConfigurationListBox.Items[sel].ToString(); + this.ConfigurationListBox.Items.RemoveAt(sel); + this.ConfigurationListBox.Items.Insert(sel + 1, wert); + this.ConfigurationListBox.SelectedIndex = sel + 1; + } + } + + private void DeleteButton_Click(object sender, EventArgs e) + { + int sel = this.ConfigurationListBox.SelectedIndex; + this.ConfigurationListBox.SelectedIndex = -1; + if (sel >= 0) + { + this.ConfigurationListBox.Items.RemoveAt(sel); + this.ConfigurationListBox.SelectedIndex = -1; + this.AddTextBox.Text = ""; + } + } + + private int _lastSelection = -1; + private void ConfigurationListBox_SelectedIndexChanged(object sender, EventArgs e) + { + if (this.ConfigurationListBox.SelectedIndex == _lastSelection && this.ConfigurationListBox.SelectedIndex != -1) + { + this.ConfigurationListBox.SelectedIndex = -1; + } + _lastSelection = this.ConfigurationListBox.SelectedIndex; + if (_lastSelection >= 0) + { + this.AddTextBox.Text = ConfigurationListBox.Items[_lastSelection].ToString(); + } + } + } +} diff --git a/LanTool/ConfigListBox.resx b/LanTool/ConfigListBox.resx @@ -0,0 +1,138 @@ +<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> + <data name="DownButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value> + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALDAAA + CwwBP0AiyAAAAFdJREFUOE9jEDIJY6AEU6QZZDH1DWBgYPiPDePyJoYLwJrRIVBs1ABahwFGtGGJBWQ1 + yDECj0as0UdEdKKkA7yG4EgL1E9I4AyCnBrxpEK8mQkWaISyOgDDGOxNYirsLQAAAABJRU5ErkJggg== +</value> + </data> + <data name="UpButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value> + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALDAAA + CwwBP0AiyAAAAGJJREFUOE9jEDIJY8CHGRgY/oMwLjWENf8HGgCCOAzBaQDYZnSIxRCsBmDVjMMlGAbg + 1YzFEBQDYAEGp7F4AVkNKGBpEwZgkykJxFEDIHkDI0px5Am8eYFQRsObDojRTBUDALQm7E0Mx9AUAAAA + AElFTkSuQmCC +</value> + </data> +</root> +\ No newline at end of file diff --git a/LanTool/Configurations/rw-net.ruleset b/LanTool/Configurations/rw-net.ruleset @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<RuleSet Name="rw-net Ruleset" Description="This rule set contains all rules. Running this rule set may result in a large number of warnings being reported. Use this rule set to get a comprehensive picture of all issues in your code. This can help you decide which of the more focused rule sets are most appropriate to run for your projects." ToolsVersion="10.0"> + <IncludeAll Action="Warning" /> + <Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed"> + <Rule Id="CA1002" Action="None" /> + <Rule Id="CA1031" Action="None" /> + <Rule Id="CA1300" Action="None" /> + <Rule Id="CA1303" Action="None" /> + <Rule Id="CA1304" Action="None" /> + <Rule Id="CA1305" Action="None" /> + <Rule Id="CA1306" Action="None" /> + <Rule Id="CA1307" Action="None" /> + <Rule Id="CA1309" Action="None" /> + <Rule Id="CA1704" Action="None" /> + <Rule Id="CA2201" Action="None" /> + <Rule Id="CA2204" Action="None" /> + <Rule Id="CA2211" Action="None" /> + </Rules> +</RuleSet> +\ No newline at end of file diff --git a/LanTool/Configurations/rw-net.snk b/LanTool/Configurations/rw-net.snk Binary files differ. diff --git a/LanTool/Dokumentation/Abgelehnt.txt b/LanTool/Dokumentation/Abgelehnt.txt @@ -0,0 +1,8 @@ +- bei Datei "Im Explorer öffnen" +Kann schon durch Doppelklick auf die Pfadleiste erreicht werden + +- Ranking im Internet (Hash + Rang) +Internet ist Teufelszeug + +- Konfigurierbare Logausgabe +Das Log hat seinen Zweck. +\ No newline at end of file diff --git a/LanTool/Dokumentation/LanTool_ChangeLog.txt b/LanTool/Dokumentation/LanTool_ChangeLog.txt @@ -0,0 +1,143 @@ +LanTool - Changelog +=================== + +Version 1.6.0: +-------------- +- NEU: Dateien mit identischen Dateinamen aber unterschiedlichem Hash können nun wie eine Datei behandelt werden + * Einstellung in den Optionen +- FIX: höhere DPI-Einstellungen im Windows zerstören die Anzeige nicht mehr + +Version 1.5.0: +-------------- +- NEU: "Alle markierten Dateien sperren und löschen" gibts jetzt auch bei Rechtsklick auf ein Verzeichnis +- NEU: Über die Optionen kann ein Kennzeichen für die Titelzeile angegeben werden, dieses wird dann in eckigen Klammern + vor dem Programmname angezeigt +- NEU: Optional kann das Programm mit der Priorität "Weniger als Normal" ausgeführt werden, dies verringert den Einfluss das LanTools auf Spiele oder ähnliches +- CHG: verbesserter Umgang mit der Baumaktualisierung bei den folgenden Funktionen, dadurch deutlich schneller + * Dubletten zum Löschen markieren (eine bleibt) + * Alle Dateien markieren + * Dateien mit Suchfilter markieren... + * Alle Markierungen entfernen + * Alle fehlenden Dateien markieren + * Alle markierten Dateien sperren + * Alle markierten Dateien entsperren + * Datei sperren + * Datei entsperren +- CHG: LanTool kann wieder mehrfach gestartet werden, wenn sich die Programme in unterschiedlichen Verzeichnissen befinden +- CHG: bei Auswahl der DefaultOfflinedatei wird nur der Dateiname gespeichert, wenn sich die Datei im LanTool-Verzeichnis befindet + (dadurch funktioniert das Laden auch bei Änderung des LanTool-Speicherplatzes) +- CHG: Die Verzeichnisauswahl-Listboxen haben keine Sortierpfeile mehr (die TreeViews sind automatisch sortiert) +- FIX: wird als Platte ein komplettes Laufwerk angegeben, wird ggf. ein "\" hinten angehängt, sonst schaut die Darstellung im Tree komisch aus +- FIX: beim ToolTip auf fremden Platten wird der Dateiname der lokalen Datei nicht mehr doppelt angezeigt + +Version 1.4.0: +-------------- +- NEU: beim Ändern der Einstellungen gehen eingelesene Verzeichnisse und der Offline-Status nicht mehr verloren +- NEU: Offline-Datei per Default beim Start laden und eigene Verzeichnisse gleich offline setzen (per Konfiguration) +- NEU: ToolTip für jede Datei mit dem folgenden Inhalt + - kompletter Pfad + - Dateigröße in Bytes + - Hashwert der Datei + - bei Dateien auf den fremden Platten wird der Speicherort der lokalen Kopie angezeigt, falls bereits vorhanden + - bei Dateien auf den eigenen Platten wird der Speicehrort der Dubletten angezeigt, falls vorhanden +- CHG: Performanceverbesserungen + - Die Cachedateien werden nur noch beim Beenden des Programmes auf die Festplatte geschrieben. + - Starke Beschleunigung beim Darstellen der Fremden Platten, wenn die Optionen "vorhandene Dateien ausblenden" und/oder "gesperrte Dateien ausblenden" aktiv sind. +- CHG: Beim Hinzufügen von eigenen oder fremden Platten, ist die Option "Neuen Ordner erstellen" nur noch bei den eigenen Platten verfügbar. +- FIX: nicht sichtbare Dateien werden nicht mehr als "markiert" behandelt +- FIX: Option "Markierungen nach Aktion entfernen" entfernt bei einer Kopieraktion die Markierungen nun im Baum "Fremde Platten" + +Version 1.3.2: +-------------- +- CHG: "Markierungen nach Aktion entfernen" entfernt die Haken beim Kopieren nun schon, bevor das Kopieren gestartet wird + +Version 1.3.1: +-------------- +- FIX: versteckte Dateien werden wirklich versteckt +- FIX: Wechsel auf .Net 3.5 + +Version 1.3.0: +-------------- +- NEU: LanTool kann FTP (mit Hilfe von NetDrive ;-) ) +- NEU: mehrfacher Programmstart wird unterbunden, die bereits gestartete Instanz wird stattdessen angezeigt +- NEU: Such-Feld im Menü, durchsucht den zuletzt benutzten Verzeichnisbaum nach dem angegebenen Suchstring + * Strg+F aufrufen des Suchfeldes + * F3 zum Weitersuchen +- NEU: neue Option "Entfernen der Markierungen nach Aktion" bei folgenden Aktionen + * Alle markierten Dateien sperren + * Alle markierten Dateien entsperren + * Alle fremden selektierten Dateien direkt in diesen Ordner kopieren (flat) + * Alle fremden selektierten Dateien mit Ordnerstruktur in diesen Ordner kopieren +- NEU: Anzeige der Anzahl aktiver Kopiervorgänge vor dem Fortschrittsbalken +- NEU: Unterstützung der Fortschrittsanzeige in der Superbar von Windows 7 +- CHG: Der Fortschrittsbalken zeigt den Fortschritt über alle aktiven Kopierthreads hinweg an +- FIX: Fortschrittsbalken beim Starten des Kopierens auf 0 setzen + +Version 1.2.0: +-------------- +- NEU: super-tolle InfoBox +- NEU: Option "Alle markierten Dateien sperren und löschen" im Hauptmenü +- NEU: Sicherheitsabfrage bei "Sperren und Löschen" +- NEU: Nach Abschluß des Kopierens wird eine Meldung mit Anzahl und Gesamtgröße der kopierten Dateien, benötigter Zeit und durchschnittlicher Übertragungsrate angezeigt +- CHG: Doppelklick auf einen Ordner führt nicht mehr dazu, dass der Ordner im Explorer aufgerufen wird +- NEU: Anzeige des kompletten Pfades oberhalb der TreeViews + * Doppelklick auf das Feld öffnet den Explorer im angegebenen Pfad +- NEU: Dateien können nun auch durch "Öffnen mit..." aufgerufen werden + * wird eine Datei ohne Programmverknüpfung mittels "Öffnen" aufgerufen, erscheint automatisch der + "Öffnen mit"-Dialog +- CHG: Menüs (Kontext und Programm) logischer strukturiert +- FIX: falsche Benennung der Dateien beim Kopieren von fremden Platten korrigiert + +Version 1.1.0: +-------------- +- NEU: Tooltips bei diversen Konfigurationswerten zur Erklärung hinterlegt +- NEU: Gesperrte/bereits vorhandene Dateien per Option nicht mehr in den "Fremden Platten" anzeigen + * Standard-Einstellung ist, das beide Dateitypen angezeigt werden + * Ist die Option aktiviert, werden die Dateien in der Baumstruktur der Fremden Platten nicht mehr angezeigt +- NEU: Dublette erlauben (z.B. für MP3-Alben/Sampler mit doppelten Liedern) + * Die Anzahl der "erlaubten" Dubletten und deren Größe wird nach dem Einlesen der Platten angezeigt + * Im Kontextmenü werden die Dubletten nach wie vor zum Löschen angeboten + * Mittels Option kann festgelegt werden, ob erlaubte Dubletten zu einem Aufklappen der Baumes führen +- NEU: Warnungen und Fehler werden im Log farbig markiert, Ausgaben in der Statuszeile und im Log vereinheitlicht +- NEU: Fortschrittsbalken in der Statusbar zeigt nun den Fortschritt des Gesamtkopiervorganges an (Größe der bereits kopierten Dateien zur Gesamtgröße der zu kopierenden Dateien) +- NEU: bei Start ohne Config-File wird ein Default-Konfig angelegt und anschließend der Konfigurationsdialog geöffnet + +Version 1.0 rc4: +---------------- +- Markieren aller Dubletten als neues Menü + +Version 1.0 rc1: +---------------- +- Gesperrte Dateien gehören nicht mehr zu den fehlenden Dateien +- Menüpunkte Übersichtlichkeit: Icons und neue Struktur der Menüs +- Markierte Dateien werden nach dem Kopieren demarkiert +- Alphabetisch sortieren innerhab der Ordner +- Alle markierten Dateien sperren/entsperren +- Löschen und sperren in einem Arbeitsgang (Einzeldatei) +- Kopieren von kompletten Hierarchien (mit Verzeichnisnamen) +- Löschen von leeren Verzeichnissen (auch hierarchisch) +- Konfigurationsdialog für Laien +- Verzeichnisse und Dateien getrennt sortieren + +Version 0.3a: +------------- +- Trenung der internen Datenstruktur von der Anzeige +- Oberfläche bleibt beim Kopieren bedienbar (InvokeRequired) + +Version 0.2b: +------------- +- Die "-" Option auch auf Verzeichnisnamen anwenden ("+" nur auf Dateien) + +Version 0.2a: +------------- +- Caching von Hashcodes +- Ignore-Liste + +Version 0.1e: +------------- +- freier Speicher durch dubletten +- Update einschalten nach Exceptions! +- Rechenfehler in grösse +- Menüpunkt auf rot: Menüpunkte für alle Dubletten zum Löschen. +- Alle Dubletten direkt per Menü anschauen. +- Exceptions beim Aufräumen (rechte Liste leer) +\ No newline at end of file diff --git a/LanTool/Dokumentation/LanTool_Tipps.txt b/LanTool/Dokumentation/LanTool_Tipps.txt @@ -0,0 +1,30 @@ +LanTool - Tipps & Tricks +======================== + +1. Hotkeys: +----------- + +- F2 - Konfiguration öffnen +- Strg+O - Offlinedatei laden +- Strg+S - Offlinedatei speichern +- Alt+F4 - Programm schließen + +- Strg+F - Aufrufen des Suchfeldes +- F3 - Weitersuchen + +2. Performance: +--------------- + +Das Hauptproblem bei der Darstellung der Trees ist - neben dem eigentlichen Scannen der Daten - das Erzeugen der Baumstruktur. +Deutliche Geschwindigkeitsvorteile ergeben sich, wenn möglichst wenige Dateien/Ordner von Beginn an sichtbar sind. + +Das heißt bei den eigenen Platten: +Eigene Platten aufräumen und erlaubte Dubletten entsprechend markieren und nicht einblenden lassen. + +Und bei den fremden Platten: +Die Optionen "gesperrte Dateien verstecken" und "vorhandene Dateien verstecken" nutzen. Dadurch müssen wesentlich weniger Dateien überhaupt dargestellt werden. + +Darüber hinaus ist die Anzahl der darzustellenden Dateien noch ausschlaggebend. + +Trenne Dein LanTool in verschiedene Verwendungsbereiche auf, z.B. für MP3s, für Filme etc. +Dazu kopierst Du einfach das LanTool in 2 verschiedene Verzeichnisse, passt die Konfiguration an wie du sie brauchst und markierst das LanTool dann noch entsprechend. +\ No newline at end of file diff --git a/LanTool/Dokumentation/ToDo.txt b/LanTool/Dokumentation/ToDo.txt @@ -0,0 +1,36 @@ +fr 1.6: +- Aktion "Markierung nach Aktion entfernen" geht schief, wenn ber die oberste Ebene (Meine Platten) aufgerufen (aus dem Hauptmen) +- Eintrge im Remotetree entfernen wenn die Option, gesetzt ist + + +- HotKeys + - F5 -> aktuellen Tree neu einlesen + +- GUI + - Rechtsklick auf Pfad-Feld kopiert den Pfad in die Zwischenablage bzw. eigener Dialog + - Springen zur nchsten Markierung (z.B. bei Dublettensuche) (z.B. zeige dublette jetzt) + - Datei/Ordner umbenennen + - Ordner verschieben + +- Offline-Modus + - Lschen/Ordner anlegen etc. gar nicht erst erlauben! + - Lschen von Dateien im Offline-Modus nimmt die Datei nicht aus dem Tree + +- nderung an den Dateien (Lschen darf nicht zum kompletten Neulesen des Trees fhren) + +- Aktionen + - Ordner zum Kopieren markiert, dann auch untergeordnete Dateien markieren + - nach dem Kopieren bergeordnete Ordner ebenfalls demarkieren + + - Kopieren nur mit x bergeordneten Ordnern, nicht der kompletten Struktur, x wird abgefragt + +- Kopieren + - Dateien, die bereits in einer Kopierliste sind, nicht mehr als "IsNeeded" kennzeichnen + - Kopierthreads pausieren/unterbrechen + +- Config + - Verzeichnisauswahl in der Config beim zuletzt benutzten Verzeichnis starten + +- Gre der transferierten Dateien je Tag/Stunde merken und Auswertung anzeigen + - Speichern Tag/Stunde und Transferierte MB + - Anzeige in einem DataGrid bzw. ChartControl diff --git a/LanTool/FilterDialog.Designer.cs b/LanTool/FilterDialog.Designer.cs @@ -0,0 +1,113 @@ +namespace LanTool +{ + partial class FilterDialog + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FilterDialog)); + this.cancelButton = new System.Windows.Forms.Button(); + this.executeButton = new System.Windows.Forms.Button(); + this.filterTextBox = new System.Windows.Forms.TextBox(); + this.filterLabel = new System.Windows.Forms.Label(); + this.dokLabel = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // cancelButton + // + this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.cancelButton.Location = new System.Drawing.Point(280, 79); + this.cancelButton.Name = "cancelButton"; + this.cancelButton.Size = new System.Drawing.Size(75, 23); + this.cancelButton.TabIndex = 2; + this.cancelButton.Text = "Abbruch"; + this.cancelButton.UseVisualStyleBackColor = true; + // + // executeButton + // + this.executeButton.DialogResult = System.Windows.Forms.DialogResult.OK; + this.executeButton.Location = new System.Drawing.Point(199, 79); + this.executeButton.Name = "executeButton"; + this.executeButton.Size = new System.Drawing.Size(75, 23); + this.executeButton.TabIndex = 1; + this.executeButton.Text = "Markieren"; + this.executeButton.UseVisualStyleBackColor = true; + // + // filterTextBox + // + this.filterTextBox.Location = new System.Drawing.Point(70, 12); + this.filterTextBox.Name = "filterTextBox"; + this.filterTextBox.Size = new System.Drawing.Size(281, 20); + this.filterTextBox.TabIndex = 0; + // + // filterLabel + // + this.filterLabel.AutoSize = true; + this.filterLabel.Location = new System.Drawing.Point(12, 15); + this.filterLabel.Name = "filterLabel"; + this.filterLabel.Size = new System.Drawing.Size(32, 13); + this.filterLabel.TabIndex = 3; + this.filterLabel.Text = "Filter:"; + // + // dokLabel + // + this.dokLabel.AutoSize = true; + this.dokLabel.Location = new System.Drawing.Point(70, 44); + this.dokLabel.Name = "dokLabel"; + this.dokLabel.Size = new System.Drawing.Size(281, 13); + this.dokLabel.TabIndex = 4; + this.dokLabel.Text = "Filterbedingung eingeben, z.B. \"*.pdf\" oder \"Hallo??.mp3\""; + // + // FilterDialog + // + this.AcceptButton = this.executeButton; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(365, 116); + this.Controls.Add(this.dokLabel); + this.Controls.Add(this.filterLabel); + this.Controls.Add(this.filterTextBox); + this.Controls.Add(this.executeButton); + this.Controls.Add(this.cancelButton); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.Name = "FilterDialog"; + this.Text = "Filterbedingung eingeben"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button cancelButton; + private System.Windows.Forms.TextBox filterTextBox; + private System.Windows.Forms.Label dokLabel; + private System.Windows.Forms.Button executeButton; + private System.Windows.Forms.Label filterLabel; + } +} +\ No newline at end of file diff --git a/LanTool/FilterDialog.cs b/LanTool/FilterDialog.cs @@ -0,0 +1,27 @@ +using System.Windows.Forms; + +namespace LanTool +{ + /// <summary> + /// Standard-Such- und Filter-Dialog + /// </summary> + public partial class FilterDialog : Form + { + /// <summary> + /// Filterdialog erstellen + /// </summary> + public FilterDialog() + { + InitializeComponent(); + } + + /// <summary> + /// Filter-Ausdruck (kann ein regulrer Ausdruck sein) + /// </summary> + public string Expression + { + get { return filterTextBox.Text; } + set { filterTextBox.Text = value; } + } + } +} +\ No newline at end of file diff --git a/LanTool/FilterDialog.resx b/LanTool/FilterDialog.resx @@ -0,0 +1,249 @@ +<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> + <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value> + AAABAAMAMDAAAAEACACoDgAANgAAACAgAAABAAgAqAgAAN4OAAAQEAAAAQAIAGgFAACGFwAAKAAAADAA + AABgAAAAAQAIAAAAAACACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAIAAAACAgACAAAAAgACAAICA + AADAwMAAwNzAAPDKpgDU8P8AseL/AI7U/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AAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP// + /////wAA////////AAD///////8AAP/wD/AP/wAA///gB///AAD//+AP//8AAP//4A///wAA///wD/// + AAD///AP//8AAP//wAf//wAA///AA///AAD//8AB//8AAP//wAH//wAA///AAP//AAD//8AA//8AAP// + gAD//wAA//+AAP//AAD//4AA//8AAP//gAB//wAA//+AAD//AAD//4AAP/8AAP//gAA//wAA//+ACP// + AAD//wAY//8AAP//EBj//wAA//8QP///AAD//jg///8AAP/+PD///wAA//w8P///AAD//jw///8AAP// + /D///wAA///8P///AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA//////// + AAD///////8AAP///////wAA////////AAAoAAAAIAAAAEAAAAABAAgAAAAAAIAEAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAMDAwADA3MAA8MqmANTw/wCx4v8AjtT/AGvG + /wBIuP8AJar/AACq/wAAktwAAHq5AABilgAASnMAADJQANTj/wCxx/8Ajqv/AGuP/wBIc/8AJVf/AABV + /wAASdwAAD25AAAxlgAAJXMAABlQANTU/wCxsf8Ajo7/AGtr/wBISP8AJSX/AAAA/gAAANwAAAC5AAAA + lgAAAHMAAABQAOPU/wDHsf8Aq47/AI9r/wBzSP8AVyX/AFUA/wBJANwAPQC5ADEAlgAlAHMAGQBQAPDU + /wDisf8A1I7/AMZr/wC4SP8AqiX/AKoA/wCSANwAegC5AGIAlgBKAHMAMgBQAP/U/wD/sf8A/47/AP9r + /wD/SP8A/yX/AP4A/gDcANwAuQC5AJYAlgBzAHMAUABQAP/U8AD/seIA/47UAP9rxgD/SLgA/y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AAAAAAAAAAAAAALKysrKysgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAsrKysrKyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACysrKysrIAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAALKysrKysgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsrKysrKyAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAACysrKysrKyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKyAAAAAAAAAAAA + AAAAAAAAAAAAAAAAALKysrKysrKysrKyAAAAAAAAAAAAAAAAAAAAAAAAAAAAsrKysrKysrKysrIAAAAA + AAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKysrIAAAAAAAAAAAAAAAAAAAAAAAAAALKysrKysrKysrKy + sgAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKysrIAAAAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKy + srKysgAAAAAAAAAAAAAAAAAAAAAAAAAAALKysrKysrKysrKysgAAAAAAAAAAAAAAAAAAAAAAAAAAsrKy + srKysrKysrKysgAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKysrKyAAAAAAAAAAAAAAAAAAAAAAAA + ALKysrKysrKyAAAAsgAAAAAAAAAAAAAAAAAAAAAAAACyAACysrKysgAAAACyAAAAAAAAAAAAAAAAAAAA + AAAAALIAALKysrKyAAAAALIAAAAAAAAAAAAAAAAAAAAAAACyAAAAsrKysgAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAALIAAAAAsrKyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsgAAAAAAsrIAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAALIAAAAAAACysgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsgAAAAAAALKyAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAsrIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACysgAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAD///////////AP8A//4Af//+AP///gD///8A////AP///AB///wAP//8AB///A + Af//wAD//8AA//+AAP//gAD//4AA//+AAH//gAA//4AAP/+AAD//gAj//wAY//8QGP//ED///jg///48 + P//8PD///jw////8P////D///////ygAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAMDcwADwyqYA1PD/ALHi/wCO1P8Aa8b/AEi4 + /wAlqv8AAKr/AACS3AAAerkAAGKWAABKcwAAMlAA1OP/ALHH/wCOq/8Aa4//AEhz/wAlV/8AAFX/AABJ + 3AAAPbkAADGWAAAlcwAAGVAA1NT/ALGx/wCOjv8Aa2v/AEhI/wAlJf8AAAD+AAAA3AAAALkAAACWAAAA + cwAAAFAA49T/AMex/wCrjv8Aj2v/AHNI/wBXJf8AVQD/AEkA3AA9ALkAMQCWACUAcwAZAFAA8NT/AOKx + /wDUjv8Axmv/ALhI/wCqJf8AqgD/AJIA3AB6ALkAYgCWAEoAcwAyAFAA/9T/AP+x/wD/jv8A/2v/AP9I + /wD/Jf8A/gD+ANwA3AC5ALkAlgCWAHMAcwBQAFAA/9TwAP+x4gD/jtQA/2vGAP9IuAD/JaoA/wCqANwA + kgC5AHoAlgBiAHMASgBQADIA/9TjAP+xxwD/jqsA/2uPAP9IcwD/JVcA/wBVANwASQC5AD0AlgAxAHMA + JQBQABkA/9TUAP+xsQD/jo4A/2trAP9ISAD/JSUA/gAAANwAAAC5AAAAlgAAAHMAAABQAAAA/+PUAP/H + sQD/q44A/49rAP9zSAD/VyUA/1UAANxJAAC5PQAAljEAAHMlAABQGQAA//DUAP/isQD/1I4A/8ZrAP+4 + SAD/qiUA/6oAANySAAC5egAAlmIAAHNKAABQMgAA///UAP//sQD//44A//9rAP//SAD//yUA/v4AANzc + AAC5uQAAlpYAAHNzAABQUAAA8P/UAOL/sQDU/44Axv9rALj/SACq/yUAqv8AAJLcAAB6uQAAYpYAAEpz + AAAyUAAA4//UAMf/sQCr/44Aj/9rAHP/SABX/yUAVf8AAEncAAA9uQAAMZYAACVzAAAZUAAA1P/UALH/ + sQCO/44Aa/9rAEj/SAAl/yUAAP4AAADcAAAAuQAAAJYAAABzAAAAUAAA1P/jALH/xwCO/6sAa/+PAEj/ + cwAl/1cAAP9VAADcSQAAuT0AAJYxAABzJQAAUBkA1P/wALH/4gCO/9QAa//GAEj/uAAl/6oAAP+qAADc + kgAAuXoAAJZiAABzSgAAUDIA1P//ALH//wCO//8Aa///AEj//wAl//8AAP7+AADc3AAAubkAAJaWAABz + cwAAUFAA8vLyAObm5gDa2toAzs7OAMLCwgC2trYAqqqqAJ6engCSkpIAhoaGAHp6egBubm4AYmJiAFZW + VgBKSkoAPj4+ADIyMgAmJiYAGhoaAA4ODgDw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// + AAD///8AAAAAAAAAAAAAAAAAAAAAAAAA6enuAAAAAAAA+OnpAAAAAAAAAACysrIAAAAAAAAAAAAAAAAA + srKyAAAAAAAAAAAAAAAAALKysgAAAAAAAAAAAAAAAACysrKyAAAAAAAAAAAAAAAAsrKysrIAAAAAAAAA + AAAAsrKysrKyAAAAAAAAAAAAALKysrKysgAAAAAAAAAAAACysrKysrKyAAAAAAAAAAAAsrKysgAAAAAA + AAAAAAAAAACysrIAAAAAAAAAAAAAALIAALIAAAAAAAAAAAAAAAAAAACyAAAAAAAAAAAAAAAAAAAAsgAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AADDwwAA+D8AAPg/AAD4PwAA+B8AAPgPAADwDwAA8A8AAPAH + AADwBwAA4E8AAOR/AADkfwAA5H8AAP5/AAA= +</value> + </data> +</root> +\ No newline at end of file diff --git a/LanTool/GlobalSuppressions.cs b/LanTool/GlobalSuppressions.cs @@ -0,0 +1,41 @@ +// This file is used by Code Analysis to maintain SuppressMessage +// attributes that are applied to this project. +// Project-level suppressions either have no target or are given +// a specific target and scoped to a namespace, type, member, etc. +// +// To add a suppression to this file, right-click the message in the +// Error List, point to "Suppress Message(s)", and click +// "In Project Suppression File". +// You do not need to add suppressions to this file manually. + +[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", + "CA2000:Dispose objects before losing scope", + Scope = "member", + Target = "LanTool.MainForm.#überToolStripMenuItem_Click(System.Object,System.EventArgs)", + Justification = "Will ich aber so.")] +[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", + "CA2000:Dispose objects before losing scope", + Scope = "member", + Target = "LanTool.Program.#Main()", + Justification = "Falscherkennung")] +[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", + "CA1800:DoNotCastUnnecessarily", + Scope = "member", + Target = "LanTool.MainForm.#GetStuffItem(System.Object)", + Justification = "Geht net anders")] +[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", + "CA1801:ReviewUnusedParameters", + MessageId = "state", + Scope = "member", + Target = "LanTool.StuffItem.#UpdateChilds(System.Object)", + Justification = "Geht net anders")] +[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", + "CA2210:AssembliesShouldHaveValidStrongNames", + Justification = "Hab ich ned")] +[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2122:DoNotIndirectlyExposeMethodsWithLinkDemands", Scope = "member", Target = "LanTool.Config.#EditConfig()")] +[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Reliability", + "CA2000:Dispose objects before losing scope", + Scope = "member", + Target = "LanTool.MainForm.#tree_MouseUp(System.Object,System.Windows.Forms.MouseEventArgs)", + Justification = "Geht nicht anders." )] +[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "state", Scope = "member", Target = "LanTool.Classes.StuffItem.#UpdateChilds(System.Object)")] diff --git a/LanTool/Images/Aktualisieren.png b/LanTool/Images/Aktualisieren.png Binary files differ. diff --git a/LanTool/Images/DateiError.png b/LanTool/Images/DateiError.png Binary files differ. diff --git a/LanTool/Images/DateiExcluded.png b/LanTool/Images/DateiExcluded.png Binary files differ. diff --git a/LanTool/Images/DateiExcludedAndDeleted.png b/LanTool/Images/DateiExcludedAndDeleted.png Binary files differ. diff --git a/LanTool/Images/DateiFrischGesaugt.png b/LanTool/Images/DateiFrischGesaugt.png Binary files differ. diff --git a/LanTool/Images/DateiGruen.png b/LanTool/Images/DateiGruen.png Binary files differ. diff --git a/LanTool/Images/DateiLoeschen.png b/LanTool/Images/DateiLoeschen.png Binary files differ. diff --git a/LanTool/Images/DateiRot.png b/LanTool/Images/DateiRot.png Binary files differ. diff --git a/LanTool/Images/DateiSaugen.png b/LanTool/Images/DateiSaugen.png Binary files differ. diff --git a/LanTool/Images/DateiWeiss.png b/LanTool/Images/DateiWeiss.png Binary files differ. diff --git a/LanTool/Images/Demarkieren.png b/LanTool/Images/Demarkieren.png Binary files differ. diff --git a/LanTool/Images/DownArrow.png b/LanTool/Images/DownArrow.png Binary files differ. diff --git a/LanTool/Images/Entfernen.png b/LanTool/Images/Entfernen.png Binary files differ. diff --git a/LanTool/Images/Hinzufuegen.png b/LanTool/Images/Hinzufuegen.png Binary files differ. diff --git a/LanTool/Images/Markieren.png b/LanTool/Images/Markieren.png Binary files differ. diff --git a/LanTool/Images/Oeffnen.png b/LanTool/Images/Oeffnen.png Binary files differ. diff --git a/LanTool/Images/Ordner.png b/LanTool/Images/Ordner.png Binary files differ. diff --git a/LanTool/Images/OrdnerLoeschen.png b/LanTool/Images/OrdnerLoeschen.png Binary files differ. diff --git a/LanTool/Images/UpArrow.png b/LanTool/Images/UpArrow.png Binary files differ. diff --git a/LanTool/Images/Zuklappen.png b/LanTool/Images/Zuklappen.png Binary files differ. diff --git a/LanTool/Images/newcap.ico b/LanTool/Images/newcap.ico Binary files differ. diff --git a/LanTool/LanTool.csproj b/LanTool/LanTool.csproj @@ -0,0 +1,273 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.30729</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{30E17D21-D90E-4069-9C40-E960119BA296}</ProjectGuid> + <OutputType>WinExe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>LanTool</RootNamespace> + <AssemblyName>LanTool</AssemblyName> + <ApplicationIcon>Images\newcap.ico</ApplicationIcon> + <FileUpgradeFlags> + </FileUpgradeFlags> + <UpgradeBackupLocation> + </UpgradeBackupLocation> + <OldToolsVersion>3.5</OldToolsVersion> + <TargetFrameworkVersion>v4.6</TargetFrameworkVersion> + <StartupObject>LanTool.Program</StartupObject> + <IsWebBootstrapper>false</IsWebBootstrapper> + <TargetFrameworkProfile /> + <SccProjectName>SAK</SccProjectName> + <SccLocalPath>SAK</SccLocalPath> + <SccAuxPath>SAK</SccAuxPath> + <SccProvider>SAK</SccProvider> + <PublishUrl>publish\</PublishUrl> + <Install>true</Install> + <InstallFrom>Disk</InstallFrom> + <UpdateEnabled>true</UpdateEnabled> + <UpdateMode>Background</UpdateMode> + <UpdateInterval>7</UpdateInterval> + <UpdateIntervalUnits>Days</UpdateIntervalUnits> + <UpdatePeriodically>true</UpdatePeriodically> + <UpdateRequired>false</UpdateRequired> + <MapFileExtensions>true</MapFileExtensions> + <TargetCulture>de-DE</TargetCulture> + <ProductName>LanTool</ProductName> + <PublisherName>René Wagner</PublisherName> + <SuiteName>LanTool</SuiteName> + <CreateWebPageOnPublish>true</CreateWebPageOnPublish> + <WebPage>publish.htm</WebPage> + <ApplicationRevision>0</ApplicationRevision> + <ApplicationVersion>1.6.0.0</ApplicationVersion> + <UseApplicationTrust>false</UseApplicationTrust> + <CreateDesktopShortcut>true</CreateDesktopShortcut> + <PublishWizardCompleted>true</PublishWizardCompleted> + <BootstrapperEnabled>true</BootstrapperEnabled> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>TRACE;DEBUG</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <DocumentationFile>bin\Debug\LanTool.XML</DocumentationFile> + <RunCodeAnalysis>true</RunCodeAnalysis> + <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> + <Prefer32Bit>false</Prefer32Bit> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <DocumentationFile>bin\Release\LanTool.XML</DocumentationFile> + <RunCodeAnalysis>true</RunCodeAnalysis> + <CodeAnalysisRuleSet>Configurations\rw-net.ruleset</CodeAnalysisRuleSet> + <Prefer32Bit>false</Prefer32Bit> + </PropertyGroup> + <PropertyGroup> + <GenerateManifests>false</GenerateManifests> + </PropertyGroup> + <PropertyGroup> + <TargetZone>LocalIntranet</TargetZone> + </PropertyGroup> + <PropertyGroup /> + <PropertyGroup> + <ApplicationManifest>Properties\app.manifest</ApplicationManifest> + </PropertyGroup> + <PropertyGroup> + <SignAssembly>true</SignAssembly> + </PropertyGroup> + <PropertyGroup> + <AssemblyOriginatorKeyFile>..\..\StrongName.snk</AssemblyOriginatorKeyFile> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Drawing" /> + <Reference Include="System.Windows.Forms" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="AboutBox.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="AboutBox.Designer.cs"> + <DependentUpon>AboutBox.cs</DependentUpon> + </Compile> + <Compile Include="Classes\Enums.cs" /> + <Compile Include="Classes\GlobalCache.cs" /> + <Compile Include="Classes\StuffItemPair.cs" /> + <Compile Include="Classes\Config.cs" /> + <Compile Include="Classes\TreeViewExtensions.cs" /> + <Compile Include="ConfigEdit.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="ConfigEdit.Designer.cs"> + <DependentUpon>ConfigEdit.cs</DependentUpon> + </Compile> + <Compile Include="ConfigListBox.cs"> + <SubType>UserControl</SubType> + </Compile> + <Compile Include="ConfigListBox.Designer.cs"> + <DependentUpon>ConfigListBox.cs</DependentUpon> + </Compile> + <Compile Include="FilterDialog.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="FilterDialog.Designer.cs"> + <DependentUpon>FilterDialog.cs</DependentUpon> + </Compile> + <Compile Include="GlobalSuppressions.cs" /> + <Compile Include="MainForm.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="MainForm.Designer.cs"> + <DependentUpon>MainForm.cs</DependentUpon> + </Compile> + <Compile Include="Classes\StuffItemTree.cs" /> + <Compile Include="Classes\NativeMethods.cs" /> + <Compile Include="NewFolderDialog.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="NewFolderDialog.designer.cs"> + <DependentUpon>NewFolderDialog.cs</DependentUpon> + </Compile> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + <EmbeddedResource Include="AboutBox.resx"> + <DependentUpon>AboutBox.cs</DependentUpon> + </EmbeddedResource> + <EmbeddedResource Include="ConfigEdit.resx"> + <DependentUpon>ConfigEdit.cs</DependentUpon> + <SubType>Designer</SubType> + </EmbeddedResource> + <EmbeddedResource Include="ConfigListBox.resx"> + <SubType>Designer</SubType> + <DependentUpon>ConfigListBox.cs</DependentUpon> + </EmbeddedResource> + <EmbeddedResource Include="FilterDialog.resx"> + <SubType>Designer</SubType> + <DependentUpon>FilterDialog.cs</DependentUpon> + </EmbeddedResource> + <EmbeddedResource Include="MainForm.resx"> + <DependentUpon>MainForm.cs</DependentUpon> + <SubType>Designer</SubType> + </EmbeddedResource> + <EmbeddedResource Include="NewFolderDialog.resx"> + <DependentUpon>NewFolderDialog.cs</DependentUpon> + <SubType>Designer</SubType> + </EmbeddedResource> + <EmbeddedResource Include="Properties\Resources.resx"> + <Generator>ResXFileCodeGenerator</Generator> + <LastGenOutput>Resources.Designer.cs</LastGenOutput> + <SubType>Designer</SubType> + </EmbeddedResource> + <Compile Include="Properties\Resources.Designer.cs"> + <AutoGen>True</AutoGen> + <DependentUpon>Resources.resx</DependentUpon> + <DesignTime>True</DesignTime> + </Compile> + <Compile Include="Classes\StuffItem.cs" /> + <Compile Include="Classes\TaskBarList.cs" /> + </ItemGroup> + <ItemGroup> + <Content Include="Dokumentation\Abgelehnt.txt" /> + <Content Include="Dokumentation\LanTool_Tipps.txt"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </Content> + <Content Include="Dokumentation\LanTool_ChangeLog.txt"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </Content> + <Content Include="Dokumentation\ToDo.txt" /> + <Content Include="Images\Aktualisieren.png" /> + <Content Include="Images\DateiError.png" /> + <Content Include="Images\DateiExcluded.png" /> + <Content Include="Images\DateiExcludedAndDeleted.png" /> + <Content Include="Images\DateiFrischGesaugt.png" /> + <Content Include="Images\DateiGruen.png" /> + <Content Include="Images\DateiLoeschen.png" /> + <Content Include="Images\DateiRot.png" /> + <Content Include="Images\DateiSaugen.png" /> + <Content Include="Images\DateiWeiss.png" /> + <Content Include="Images\Demarkieren.png" /> + <Content Include="Images\DownArrow.png" /> + <Content Include="Images\Entfernen.png" /> + <Content Include="Images\Hinzufuegen.png" /> + <Content Include="Images\Markieren.png" /> + <Content Include="Images\Oeffnen.png" /> + <Content Include="Images\Ordner.png" /> + <Content Include="Images\OrdnerLoeschen.png" /> + <Content Include="Images\UpArrow.png" /> + <Content Include="Images\Zuklappen.png" /> + <Content Include="Images\newcap.ico" /> + <None Include="..\..\StrongName.snk"> + <Link>StrongName.snk</Link> + </None> + <None Include="Configurations\rw-net.ruleset" /> + <None Include="Resources\openfolderHS.png" /> + <None Include="Resources\FindHS.png" /> + <None Include="Resources\EditTableHS.png" /> + <None Include="Resources\OpenFile.png" /> + <None Include="Resources\saveHS.png" /> + <None Include="Resources\DeleteHS.png" /> + <None Include="Resources\HTMLPage.png" /> + <None Include="Configurations\rw-net.snk" /> + </ItemGroup> + <ItemGroup> + <BootstrapperPackage Include=".NETFramework,Version=v4.6"> + <Visible>False</Visible> + <ProductName>Microsoft .NET Framework 4.6 %28x86 and x64%29</ProductName> + <Install>true</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 2.0 %28x86%29</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.0 %28x86%29</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5 SP1</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> + <Visible>False</Visible> + <ProductName>Windows Installer 3.1</ProductName> + <Install>true</Install> + </BootstrapperPackage> + </ItemGroup> + <ItemGroup> + <None Include="app.config" /> + <None Include="Properties\app.manifest" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> +\ No newline at end of file diff --git a/LanTool/MainForm.Designer.cs b/LanTool/MainForm.Designer.cs @@ -0,0 +1,611 @@ +namespace LanTool +{ + /// <summary> + /// Hauptfenster vom LanTool + /// </summary> + partial class MainForm + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + m_Cache.Dispose(); + + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); + this.MainMenuToolStrip = new System.Windows.Forms.MenuStrip(); + this.MainMenuDatei = new System.Windows.Forms.ToolStripMenuItem(); + this.FileMenuEditConfig = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); + this.verzeichnisFrMeinePlattenImportierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.verzeichnisFrEinePlattenExortierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.offlineCacheLschenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator(); + this.FileMenuHashCacheLoeschen = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator(); + this.FileMenuProtokollausgabeLoeschen = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator(); + this.FileMenuExit = new System.Windows.Forms.ToolStripMenuItem(); + this.MainMenuEigenePlatten = new System.Windows.Forms.ToolStripMenuItem(); + this.MainMenuFremdePlatten = new System.Windows.Forms.ToolStripMenuItem(); + this.infoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.lanToolTippsTricksToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.lanToolChangeLogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.lanToolForumToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator(); + this.fTPMitDemLanToolNetDriveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.berToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.suchenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.searchField = new System.Windows.Forms.ToolStripTextBox(); + this.fileSystemImageList = new System.Windows.Forms.ImageList(this.components); + this.VerticalSplitContainer = new System.Windows.Forms.SplitContainer(); + this.myDisksSplitContainer = new System.Windows.Forms.SplitContainer(); + this.myDisksPath = new System.Windows.Forms.TextBox(); + this.myDisksTree = new System.Windows.Forms.TreeView(); + this.otherDisksSplitContainer = new System.Windows.Forms.SplitContainer(); + this.otherDisksPath = new System.Windows.Forms.TextBox(); + this.otherDisksTree = new System.Windows.Forms.TreeView(); + this.HorizontalSplitContainer = new System.Windows.Forms.SplitContainer(); + this.logTextBox = new System.Windows.Forms.RichTextBox(); + this.stsStatus = new System.Windows.Forms.StatusStrip(); + this.statusLabel = new System.Windows.Forms.ToolStripStatusLabel(); + this.statusThreads = new System.Windows.Forms.ToolStripStatusLabel(); + this.statusProgress = new System.Windows.Forms.ToolStripProgressBar(); + this.MainMenuToolStrip.SuspendLayout(); + this.VerticalSplitContainer.Panel1.SuspendLayout(); + this.VerticalSplitContainer.Panel2.SuspendLayout(); + this.VerticalSplitContainer.SuspendLayout(); + this.myDisksSplitContainer.Panel1.SuspendLayout(); + this.myDisksSplitContainer.Panel2.SuspendLayout(); + this.myDisksSplitContainer.SuspendLayout(); + this.otherDisksSplitContainer.Panel1.SuspendLayout(); + this.otherDisksSplitContainer.Panel2.SuspendLayout(); + this.otherDisksSplitContainer.SuspendLayout(); + this.HorizontalSplitContainer.Panel1.SuspendLayout(); + this.HorizontalSplitContainer.Panel2.SuspendLayout(); + this.HorizontalSplitContainer.SuspendLayout(); + this.stsStatus.SuspendLayout(); + this.SuspendLayout(); + // + // MainMenuToolStrip + // + this.MainMenuToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.MainMenuDatei, + this.MainMenuEigenePlatten, + this.MainMenuFremdePlatten, + this.infoToolStripMenuItem, + this.suchenToolStripMenuItem, + this.searchField}); + this.MainMenuToolStrip.Location = new System.Drawing.Point(0, 0); + this.MainMenuToolStrip.Name = "MainMenuToolStrip"; + this.MainMenuToolStrip.Padding = new System.Windows.Forms.Padding(4, 2, 0, 2); + this.MainMenuToolStrip.Size = new System.Drawing.Size(1008, 27); + this.MainMenuToolStrip.TabIndex = 0; + // + // MainMenuDatei + // + this.MainMenuDatei.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.FileMenuEditConfig, + this.toolStripMenuItem1, + this.verzeichnisFrMeinePlattenImportierenToolStripMenuItem, + this.verzeichnisFrEinePlattenExortierenToolStripMenuItem, + this.offlineCacheLschenToolStripMenuItem, + this.toolStripMenuItem2, + this.FileMenuHashCacheLoeschen, + this.toolStripMenuItem4, + this.FileMenuProtokollausgabeLoeschen, + this.toolStripMenuItem3, + this.FileMenuExit}); + this.MainMenuDatei.Name = "MainMenuDatei"; + this.MainMenuDatei.Size = new System.Drawing.Size(46, 23); + this.MainMenuDatei.Text = "&Datei"; + // + // FileMenuEditConfig + // + this.FileMenuEditConfig.Image = global::LanTool.Properties.Resources.EditTableHS; + this.FileMenuEditConfig.Name = "FileMenuEditConfig"; + this.FileMenuEditConfig.ShortcutKeyDisplayString = "F2"; + this.FileMenuEditConfig.ShortcutKeys = System.Windows.Forms.Keys.F2; + this.FileMenuEditConfig.Size = new System.Drawing.Size(396, 22); + this.FileMenuEditConfig.Text = "&Konfiguration bearbeiten..."; + this.FileMenuEditConfig.Click += new System.EventHandler(this.konfigurationToolStripMenuItem_Click); + // + // toolStripMenuItem1 + // + this.toolStripMenuItem1.Name = "toolStripMenuItem1"; + this.toolStripMenuItem1.Size = new System.Drawing.Size(393, 6); + // + // verzeichnisFrMeinePlattenImportierenToolStripMenuItem + // + this.verzeichnisFrMeinePlattenImportierenToolStripMenuItem.Image = global::LanTool.Properties.Resources.OpenFile; + this.verzeichnisFrMeinePlattenImportierenToolStripMenuItem.Name = "verzeichnisFrMeinePlattenImportierenToolStripMenuItem"; + this.verzeichnisFrMeinePlattenImportierenToolStripMenuItem.ShortcutKeyDisplayString = "Strg+O"; + this.verzeichnisFrMeinePlattenImportierenToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); + this.verzeichnisFrMeinePlattenImportierenToolStripMenuItem.Size = new System.Drawing.Size(396, 22); + this.verzeichnisFrMeinePlattenImportierenToolStripMenuItem.Text = "Offline-Verzeichnis fr \"Meine Platten\" einlesen...."; + this.verzeichnisFrMeinePlattenImportierenToolStripMenuItem.Click += new System.EventHandler(this.verzeichnisFrMeinePlattenImportierenToolStripMenuItem_Click); + // + // verzeichnisFrEinePlattenExortierenToolStripMenuItem + // + this.verzeichnisFrEinePlattenExortierenToolStripMenuItem.Image = global::LanTool.Properties.Resources.saveHS; + this.verzeichnisFrEinePlattenExortierenToolStripMenuItem.Name = "verzeichnisFrEinePlattenExortierenToolStripMenuItem"; + this.verzeichnisFrEinePlattenExortierenToolStripMenuItem.ShortcutKeyDisplayString = "Strg+S"; + this.verzeichnisFrEinePlattenExortierenToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); + this.verzeichnisFrEinePlattenExortierenToolStripMenuItem.Size = new System.Drawing.Size(396, 22); + this.verzeichnisFrEinePlattenExortierenToolStripMenuItem.Text = "Offline-Verzeichnis fr \"Meine Platten\" abspeichern..."; + this.verzeichnisFrEinePlattenExortierenToolStripMenuItem.Click += new System.EventHandler(this.verzeichnisFrMeinePlattenExportierenToolStripMenuItem_Click); + // + // offlineCacheLschenToolStripMenuItem + // + this.offlineCacheLschenToolStripMenuItem.Image = global::LanTool.Properties.Resources.DeleteHS; + this.offlineCacheLschenToolStripMenuItem.Name = "offlineCacheLschenToolStripMenuItem"; + this.offlineCacheLschenToolStripMenuItem.Size = new System.Drawing.Size(396, 22); + this.offlineCacheLschenToolStripMenuItem.Text = "Offline-Caches lschen"; + this.offlineCacheLschenToolStripMenuItem.Click += new System.EventHandler(this.offlineCacheLschenToolStripMenuItem_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(393, 6); + // + // FileMenuHashCacheLoeschen + // + this.FileMenuHashCacheLoeschen.Image = global::LanTool.Properties.Resources.DeleteHS; + this.FileMenuHashCacheLoeschen.Name = "FileMenuHashCacheLoeschen"; + this.FileMenuHashCacheLoeschen.Size = new System.Drawing.Size(396, 22); + this.FileMenuHashCacheLoeschen.Text = "Hash-Cache lschen"; + this.FileMenuHashCacheLoeschen.Click += new System.EventHandler(this.hashCacheLschenToolStripMenuItem_Click); + // + // toolStripMenuItem4 + // + this.toolStripMenuItem4.Name = "toolStripMenuItem4"; + this.toolStripMenuItem4.Size = new System.Drawing.Size(393, 6); + // + // FileMenuProtokollausgabeLoeschen + // + this.FileMenuProtokollausgabeLoeschen.Name = "FileMenuProtokollausgabeLoeschen"; + this.FileMenuProtokollausgabeLoeschen.Size = new System.Drawing.Size(396, 22); + this.FileMenuProtokollausgabeLoeschen.Text = "Protokollausgabe lschen"; + this.FileMenuProtokollausgabeLoeschen.Click += new System.EventHandler(this.protokollausgabeLschenToolStripMenuItem_Click); + // + // toolStripMenuItem3 + // + this.toolStripMenuItem3.Name = "toolStripMenuItem3"; + this.toolStripMenuItem3.Size = new System.Drawing.Size(393, 6); + // + // FileMenuExit + // + this.FileMenuExit.Name = "FileMenuExit"; + this.FileMenuExit.ShortcutKeyDisplayString = "Alt+F4"; + this.FileMenuExit.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4))); + this.FileMenuExit.Size = new System.Drawing.Size(396, 22); + this.FileMenuExit.Text = "&Beenden"; + this.FileMenuExit.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); + // + // MainMenuEigenePlatten + // + this.MainMenuEigenePlatten.Name = "MainMenuEigenePlatten"; + this.MainMenuEigenePlatten.Size = new System.Drawing.Size(92, 23); + this.MainMenuEigenePlatten.Text = "&Meine Platten"; + // + // MainMenuFremdePlatten + // + this.MainMenuFremdePlatten.Name = "MainMenuFremdePlatten"; + this.MainMenuFremdePlatten.Size = new System.Drawing.Size(99, 23); + this.MainMenuFremdePlatten.Text = "&Fremde Platten"; + // + // infoToolStripMenuItem + // + this.infoToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.lanToolTippsTricksToolStripMenuItem, + this.lanToolChangeLogToolStripMenuItem, + this.lanToolForumToolStripMenuItem, + this.toolStripMenuItem5, + this.fTPMitDemLanToolNetDriveToolStripMenuItem, + this.toolStripSeparator1, + this.berToolStripMenuItem}); + this.infoToolStripMenuItem.Name = "infoToolStripMenuItem"; + this.infoToolStripMenuItem.Size = new System.Drawing.Size(40, 23); + this.infoToolStripMenuItem.Text = "&Info"; + // + // lanToolTippsTricksToolStripMenuItem + // + this.lanToolTippsTricksToolStripMenuItem.Image = global::LanTool.Properties.Resources.HTMLPage; + this.lanToolTippsTricksToolStripMenuItem.Name = "lanToolTippsTricksToolStripMenuItem"; + this.lanToolTippsTricksToolStripMenuItem.Size = new System.Drawing.Size(253, 22); + this.lanToolTippsTricksToolStripMenuItem.Text = "LanTool Tipps && Tricks"; + this.lanToolTippsTricksToolStripMenuItem.Click += new System.EventHandler(this.lanToolTippsTricksToolStripMenuItem_Click); + // + // lanToolChangeLogToolStripMenuItem + // + this.lanToolChangeLogToolStripMenuItem.Image = global::LanTool.Properties.Resources.HTMLPage; + this.lanToolChangeLogToolStripMenuItem.Name = "lanToolChangeLogToolStripMenuItem"; + this.lanToolChangeLogToolStripMenuItem.Size = new System.Drawing.Size(253, 22); + this.lanToolChangeLogToolStripMenuItem.Text = "LanTool ChangeLog"; + this.lanToolChangeLogToolStripMenuItem.Click += new System.EventHandler(this.lanToolChangeLogToolStripMenuItem_Click); + // + // lanToolForumToolStripMenuItem + // + this.lanToolForumToolStripMenuItem.Image = global::LanTool.Properties.Resources.HTMLPage; + this.lanToolForumToolStripMenuItem.Name = "lanToolForumToolStripMenuItem"; + this.lanToolForumToolStripMenuItem.Size = new System.Drawing.Size(253, 22); + this.lanToolForumToolStripMenuItem.Text = "LanTool-Forum"; + this.lanToolForumToolStripMenuItem.Visible = false; + this.lanToolForumToolStripMenuItem.Click += new System.EventHandler(this.lanToolForumToolStripMenuItem_Click); + // + // toolStripMenuItem5 + // + this.toolStripMenuItem5.Name = "toolStripMenuItem5"; + this.toolStripMenuItem5.Size = new System.Drawing.Size(250, 6); + // + // fTPMitDemLanToolNetDriveToolStripMenuItem + // + this.fTPMitDemLanToolNetDriveToolStripMenuItem.Name = "fTPMitDemLanToolNetDriveToolStripMenuItem"; + this.fTPMitDemLanToolNetDriveToolStripMenuItem.Size = new System.Drawing.Size(253, 22); + this.fTPMitDemLanToolNetDriveToolStripMenuItem.Text = "&FTP mit dem LanTool -> NetDrive"; + this.fTPMitDemLanToolNetDriveToolStripMenuItem.Click += new System.EventHandler(this.fTPMitDemLanToolNetDriveToolStripMenuItem_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(250, 6); + // + // berToolStripMenuItem + // + this.berToolStripMenuItem.Name = "berToolStripMenuItem"; + this.berToolStripMenuItem.Size = new System.Drawing.Size(253, 22); + this.berToolStripMenuItem.Text = "&ber"; + this.berToolStripMenuItem.Click += new System.EventHandler(this.berToolStripMenuItem_Click); + // + // suchenToolStripMenuItem + // + this.suchenToolStripMenuItem.AutoSize = false; + this.suchenToolStripMenuItem.Image = global::LanTool.Properties.Resources.FindHS; + this.suchenToolStripMenuItem.Name = "suchenToolStripMenuItem"; + this.suchenToolStripMenuItem.Size = new System.Drawing.Size(80, 23); + this.suchenToolStripMenuItem.Text = "&Suche:"; + this.suchenToolStripMenuItem.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.suchenToolStripMenuItem.Click += new System.EventHandler(this.suchenToolStripMenuItem_Click); + // + // searchField + // + this.searchField.AutoSize = false; + this.searchField.AutoToolTip = true; + this.searchField.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.searchField.Name = "searchField"; + this.searchField.Size = new System.Drawing.Size(150, 23); + this.searchField.ToolTipText = "Suche"; + this.searchField.KeyUp += new System.Windows.Forms.KeyEventHandler(this.searchField_KeyUp); + // + // fileSystemImageList + // + this.fileSystemImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("fileSystemImageList.ImageStream"))); + this.fileSystemImageList.TransparentColor = System.Drawing.Color.Transparent; + this.fileSystemImageList.Images.SetKeyName(0, "Ordner.png"); + this.fileSystemImageList.Images.SetKeyName(1, "OrdnerErr.png"); + this.fileSystemImageList.Images.SetKeyName(2, "DateiWeiss.png"); + this.fileSystemImageList.Images.SetKeyName(3, "DateiRot.png"); + this.fileSystemImageList.Images.SetKeyName(4, "DateiSaugen.png"); + this.fileSystemImageList.Images.SetKeyName(5, "DateiFingerWeg.png"); + this.fileSystemImageList.Images.SetKeyName(6, "DateiFrischGesaugt.png"); + this.fileSystemImageList.Images.SetKeyName(7, "DateiGruen.png"); + this.fileSystemImageList.Images.SetKeyName(8, "DateiExcluded.png"); + this.fileSystemImageList.Images.SetKeyName(9, "DateiExcludedAndDeleted.png"); + this.fileSystemImageList.Images.SetKeyName(10, "DateiLoeschen.png"); + this.fileSystemImageList.Images.SetKeyName(11, "OrdnerLoeschen.png"); + this.fileSystemImageList.Images.SetKeyName(12, "Oeffnen.png"); + this.fileSystemImageList.Images.SetKeyName(13, "Demarkieren.png"); + this.fileSystemImageList.Images.SetKeyName(14, "Markieren.png"); + this.fileSystemImageList.Images.SetKeyName(15, "Hinzufuegen.png"); + this.fileSystemImageList.Images.SetKeyName(16, "Zuklappen.png"); + this.fileSystemImageList.Images.SetKeyName(17, "Aktualisieren.png"); + this.fileSystemImageList.Images.SetKeyName(18, "Entfernen.png"); + this.fileSystemImageList.Images.SetKeyName(19, "DateiGelb.png"); + // + // VerticalSplitContainer + // + this.VerticalSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill; + this.VerticalSplitContainer.Location = new System.Drawing.Point(0, 0); + this.VerticalSplitContainer.Name = "VerticalSplitContainer"; + // + // VerticalSplitContainer.Panel1 + // + this.VerticalSplitContainer.Panel1.Controls.Add(this.myDisksSplitContainer); + // + // VerticalSplitContainer.Panel2 + // + this.VerticalSplitContainer.Panel2.Controls.Add(this.otherDisksSplitContainer); + this.VerticalSplitContainer.Size = new System.Drawing.Size(1008, 426); + this.VerticalSplitContainer.SplitterDistance = 487; + this.VerticalSplitContainer.TabIndex = 9; + // + // myDisksSplitContainer + // + this.myDisksSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill; + this.myDisksSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.myDisksSplitContainer.IsSplitterFixed = true; + this.myDisksSplitContainer.Location = new System.Drawing.Point(0, 0); + this.myDisksSplitContainer.Name = "myDisksSplitContainer"; + this.myDisksSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // myDisksSplitContainer.Panel1 + // + this.myDisksSplitContainer.Panel1.Controls.Add(this.myDisksPath); + this.myDisksSplitContainer.Panel1MinSize = 20; + // + // myDisksSplitContainer.Panel2 + // + this.myDisksSplitContainer.Panel2.Controls.Add(this.myDisksTree); + this.myDisksSplitContainer.Size = new System.Drawing.Size(487, 426); + this.myDisksSplitContainer.SplitterDistance = 20; + this.myDisksSplitContainer.TabIndex = 0; + // + // myDisksPath + // + this.myDisksPath.Dock = System.Windows.Forms.DockStyle.Top; + this.myDisksPath.Location = new System.Drawing.Point(0, 0); + this.myDisksPath.Name = "myDisksPath"; + this.myDisksPath.ReadOnly = true; + this.myDisksPath.Size = new System.Drawing.Size(487, 20); + this.myDisksPath.TabIndex = 2; + this.myDisksPath.KeyUp += new System.Windows.Forms.KeyEventHandler(this.DisksPath_KeyUp); + this.myDisksPath.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.DisksPath_OpenPath); + // + // myDisksTree + // + this.myDisksTree.AllowDrop = true; + this.myDisksTree.CheckBoxes = true; + this.myDisksTree.Dock = System.Windows.Forms.DockStyle.Fill; + this.myDisksTree.FullRowSelect = true; + this.myDisksTree.HideSelection = false; + this.myDisksTree.ImageIndex = 0; + this.myDisksTree.ImageList = this.fileSystemImageList; + this.myDisksTree.Location = new System.Drawing.Point(0, 0); + this.myDisksTree.Name = "myDisksTree"; + this.myDisksTree.SelectedImageIndex = 0; + this.myDisksTree.ShowNodeToolTips = true; + this.myDisksTree.Size = new System.Drawing.Size(487, 402); + this.myDisksTree.TabIndex = 1; + this.myDisksTree.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.myDisksTree_AfterSelect); + this.myDisksTree.DragDrop += new System.Windows.Forms.DragEventHandler(this.myDisksTree_DragDrop); + this.myDisksTree.DragEnter += new System.Windows.Forms.DragEventHandler(this.myDisksTree_DragEnter); + this.myDisksTree.DragOver += new System.Windows.Forms.DragEventHandler(this.myDisksTree_DragEnter); + this.myDisksTree.Enter += new System.EventHandler(this.DisksTree_Enter); + this.myDisksTree.KeyUp += new System.Windows.Forms.KeyEventHandler(this.MainForm_KeyUp); + this.myDisksTree.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.tree_MouseDoubleClick); + this.myDisksTree.MouseUp += new System.Windows.Forms.MouseEventHandler(this.tree_MouseUp); + // + // otherDisksSplitContainer + // + this.otherDisksSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill; + this.otherDisksSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.otherDisksSplitContainer.IsSplitterFixed = true; + this.otherDisksSplitContainer.Location = new System.Drawing.Point(0, 0); + this.otherDisksSplitContainer.Name = "otherDisksSplitContainer"; + this.otherDisksSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // otherDisksSplitContainer.Panel1 + // + this.otherDisksSplitContainer.Panel1.Controls.Add(this.otherDisksPath); + this.otherDisksSplitContainer.Panel1MinSize = 20; + // + // otherDisksSplitContainer.Panel2 + // + this.otherDisksSplitContainer.Panel2.Controls.Add(this.otherDisksTree); + this.otherDisksSplitContainer.Size = new System.Drawing.Size(517, 426); + this.otherDisksSplitContainer.SplitterDistance = 20; + this.otherDisksSplitContainer.TabIndex = 0; + // + // otherDisksPath + // + this.otherDisksPath.Dock = System.Windows.Forms.DockStyle.Top; + this.otherDisksPath.Location = new System.Drawing.Point(0, 0); + this.otherDisksPath.Name = "otherDisksPath"; + this.otherDisksPath.ReadOnly = true; + this.otherDisksPath.Size = new System.Drawing.Size(517, 20); + this.otherDisksPath.TabIndex = 3; + this.otherDisksPath.KeyUp += new System.Windows.Forms.KeyEventHandler(this.DisksPath_KeyUp); + this.otherDisksPath.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.DisksPath_OpenPath); + // + // otherDisksTree + // + this.otherDisksTree.CheckBoxes = true; + this.otherDisksTree.Dock = System.Windows.Forms.DockStyle.Fill; + this.otherDisksTree.FullRowSelect = true; + this.otherDisksTree.HideSelection = false; + this.otherDisksTree.ImageIndex = 0; + this.otherDisksTree.ImageList = this.fileSystemImageList; + this.otherDisksTree.Indent = 19; + this.otherDisksTree.LabelEdit = true; + this.otherDisksTree.Location = new System.Drawing.Point(0, 0); + this.otherDisksTree.Name = "otherDisksTree"; + this.otherDisksTree.SelectedImageIndex = 0; + this.otherDisksTree.ShowNodeToolTips = true; + this.otherDisksTree.Size = new System.Drawing.Size(517, 402); + this.otherDisksTree.TabIndex = 3; + this.otherDisksTree.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.otherDisksTree_ItemDrag); + this.otherDisksTree.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.otherDisksTree_AfterSelect); + this.otherDisksTree.Enter += new System.EventHandler(this.DisksTree_Enter); + this.otherDisksTree.KeyUp += new System.Windows.Forms.KeyEventHandler(this.MainForm_KeyUp); + this.otherDisksTree.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.tree_MouseDoubleClick); + this.otherDisksTree.MouseUp += new System.Windows.Forms.MouseEventHandler(this.tree_MouseUp); + // + // HorizontalSplitContainer + // + this.HorizontalSplitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.HorizontalSplitContainer.Location = new System.Drawing.Point(0, 30); + this.HorizontalSplitContainer.Name = "HorizontalSplitContainer"; + this.HorizontalSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // HorizontalSplitContainer.Panel1 + // + this.HorizontalSplitContainer.Panel1.Controls.Add(this.VerticalSplitContainer); + this.HorizontalSplitContainer.Panel1MinSize = 15; + // + // HorizontalSplitContainer.Panel2 + // + this.HorizontalSplitContainer.Panel2.Controls.Add(this.logTextBox); + this.HorizontalSplitContainer.Panel2MinSize = 15; + this.HorizontalSplitContainer.Size = new System.Drawing.Size(1008, 549); + this.HorizontalSplitContainer.SplitterDistance = 426; + this.HorizontalSplitContainer.TabIndex = 4; + // + // logTextBox + // + this.logTextBox.DetectUrls = false; + this.logTextBox.Dock = System.Windows.Forms.DockStyle.Fill; + this.logTextBox.ForeColor = System.Drawing.SystemColors.WindowText; + this.logTextBox.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.logTextBox.Location = new System.Drawing.Point(0, 0); + this.logTextBox.Name = "logTextBox"; + this.logTextBox.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; + this.logTextBox.Size = new System.Drawing.Size(1008, 119); + this.logTextBox.TabIndex = 2; + this.logTextBox.Text = ""; + this.logTextBox.KeyUp += new System.Windows.Forms.KeyEventHandler(this.MainForm_KeyUp); + // + // stsStatus + // + this.stsStatus.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.statusLabel, + this.statusThreads, + this.statusProgress}); + this.stsStatus.Location = new System.Drawing.Point(0, 582); + this.stsStatus.Name = "stsStatus"; + this.stsStatus.ShowItemToolTips = true; + this.stsStatus.Size = new System.Drawing.Size(1008, 22); + this.stsStatus.TabIndex = 6; + this.stsStatus.Text = "statusStrip1"; + // + // statusLabel + // + this.statusLabel.Name = "statusLabel"; + this.statusLabel.Size = new System.Drawing.Size(765, 17); + this.statusLabel.Spring = true; + this.statusLabel.Text = "Guten Tag!"; + this.statusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.statusLabel.ToolTipText = "letzte Statusinfo"; + // + // statusThreads + // + this.statusThreads.Name = "statusThreads"; + this.statusThreads.Size = new System.Drawing.Size(26, 17); + this.statusThreads.Text = "T: 0"; + this.statusThreads.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.statusThreads.ToolTipText = "Anzahl aktiver Kopier-Threads."; + // + // statusProgress + // + this.statusProgress.Name = "statusProgress"; + this.statusProgress.Size = new System.Drawing.Size(200, 16); + this.statusProgress.Style = System.Windows.Forms.ProgressBarStyle.Continuous; + this.statusProgress.ToolTipText = "Noch nichts kopiert!"; + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1008, 604); + this.Controls.Add(this.MainMenuToolStrip); + this.Controls.Add(this.HorizontalSplitContainer); + this.Controls.Add(this.stsStatus); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MainMenuStrip = this.MainMenuToolStrip; + this.Margin = new System.Windows.Forms.Padding(2); + this.Name = "MainForm"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); + this.Load += new System.EventHandler(this.MainForm_Load); + this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.MainForm_KeyUp); + this.MainMenuToolStrip.ResumeLayout(false); + this.MainMenuToolStrip.PerformLayout(); + this.VerticalSplitContainer.Panel1.ResumeLayout(false); + this.VerticalSplitContainer.Panel2.ResumeLayout(false); + this.VerticalSplitContainer.ResumeLayout(false); + this.myDisksSplitContainer.Panel1.ResumeLayout(false); + this.myDisksSplitContainer.Panel1.PerformLayout(); + this.myDisksSplitContainer.Panel2.ResumeLayout(false); + this.myDisksSplitContainer.ResumeLayout(false); + this.otherDisksSplitContainer.Panel1.ResumeLayout(false); + this.otherDisksSplitContainer.Panel1.PerformLayout(); + this.otherDisksSplitContainer.Panel2.ResumeLayout(false); + this.otherDisksSplitContainer.ResumeLayout(false); + this.HorizontalSplitContainer.Panel1.ResumeLayout(false); + this.HorizontalSplitContainer.Panel2.ResumeLayout(false); + this.HorizontalSplitContainer.ResumeLayout(false); + this.stsStatus.ResumeLayout(false); + this.stsStatus.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.MenuStrip MainMenuToolStrip; + private System.Windows.Forms.ToolStripMenuItem MainMenuDatei; + private System.Windows.Forms.ToolStripMenuItem FileMenuExit; + private System.Windows.Forms.SplitContainer VerticalSplitContainer; + private System.Windows.Forms.SplitContainer HorizontalSplitContainer; + private System.Windows.Forms.ImageList fileSystemImageList; + private System.Windows.Forms.ToolStripMenuItem FileMenuEditConfig; + private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem FileMenuProtokollausgabeLoeschen; + private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3; + private System.Windows.Forms.ToolStripMenuItem FileMenuHashCacheLoeschen; + private System.Windows.Forms.StatusStrip stsStatus; + private System.Windows.Forms.ToolStripStatusLabel statusLabel; + private System.Windows.Forms.ToolStripProgressBar statusProgress; + private System.Windows.Forms.ToolStripMenuItem MainMenuEigenePlatten; + private System.Windows.Forms.ToolStripMenuItem MainMenuFremdePlatten; + private System.Windows.Forms.ToolStripMenuItem verzeichnisFrEinePlattenExortierenToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem verzeichnisFrMeinePlattenImportierenToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2; + private System.Windows.Forms.ToolStripMenuItem offlineCacheLschenToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem infoToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem fTPMitDemLanToolNetDriveToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem berToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripStatusLabel statusThreads; + private System.Windows.Forms.ToolStripTextBox searchField; + private System.Windows.Forms.ToolStripMenuItem suchenToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem lanToolForumToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripMenuItem4; + private System.Windows.Forms.ToolStripMenuItem lanToolTippsTricksToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem lanToolChangeLogToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripMenuItem5; + private System.Windows.Forms.TextBox myDisksPath; + private System.Windows.Forms.TreeView myDisksTree; + private System.Windows.Forms.TextBox otherDisksPath; + private System.Windows.Forms.TreeView otherDisksTree; + private System.Windows.Forms.RichTextBox logTextBox; + private System.Windows.Forms.SplitContainer myDisksSplitContainer; + private System.Windows.Forms.SplitContainer otherDisksSplitContainer; + } +} + diff --git a/LanTool/MainForm.cs b/LanTool/MainForm.cs @@ -0,0 +1,2362 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Text.RegularExpressions; +using System.Windows.Forms; +using LanTool.Classes; + +namespace LanTool +{ + public partial class MainForm : Form + { + #region Konstanten + + internal const string DefaultHeader = "LanTool 1.6 - LumpLan #1 Edition"; + + #endregion + + #region Felder + + internal StuffItemTree m_MyDisks = new StuffItemTree("Meine Platten", false); + + internal StuffItemTree m_OtherDisks = new StuffItemTree("Fremde Platten", true); + + // Zhler fr die Anzahl der Kopierthreads + int copyThreadCount = 0; + + // Zhler fr das Maximum des Fortschrittsbalkens + float maxProgressMB = 0; + float currentProgressMB = 0; + + /// <summary> + /// Pfad fr Config/Exclude-Files etc. + /// </summary> + private static string basePath = "c:\\"; + + /// <summary> + /// Alle Konfigurationsdaten + /// </summary> + internal Config m_Config; + + /// <summary> + /// Die Caches fr das Hauptfenster + /// </summary> + internal GlobalCache m_Cache; + + #endregion + + #region Hilfsfelder fr die Suche + + /// <summary> + /// Speichert das zuletzt benutzte TreeView + /// </summary> + TreeView lastUsedView = null; + /// <summary> + /// Liste mit StuffItems, die bereits angezeigt wurden + /// </summary> + List<string> itemsAlreadyFound = new List<string>(); + /// <summary> + /// Suchstring, nachdem zuletzt gesucht wurde + /// </summary> + string lastSearchString = string.Empty; + + #endregion + + #region Windows 7-Spezialitten + /// <summary> + /// Zugriff auf Windows 7-Superbar + /// </summary> + ITaskbarList3 tbl = null; + + private bool IsWin7 = Environment.OSVersion.Version.ToString().StartsWith("6.1"); + + #endregion + + /// <summary> + /// Konstruktor fr das Formular + /// </summary> + public MainForm() + { + InitializeComponent(); + } + + /// <summary> + /// On Load Config ausfhren + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void MainForm_Load(object sender, EventArgs e) + { + // Pfad zur Datei ermitteln + basePath = Application.ExecutablePath.Substring(0, Application.ExecutablePath.LastIndexOf("\\") + 1); + + // Konfiguration von Platte einlesen + m_Config = new Config(basePath); + + // Programm mit niedriger Prioritt ausfhren + if (m_Config.IsLowerPriority) + { + Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.BelowNormal; + } + + // Fenstertitel setzen + if (!string.IsNullOrEmpty(m_Config.HeaderExtension)) + { + Text = String.Format("[{0}] {1}", m_Config.HeaderExtension, DefaultHeader); + } + else + { + Text = DefaultHeader; + } + + // Daten von der Platte einlesen + m_Cache = new GlobalCache(basePath); + + // Mens erweitern + AddFremdePlattenMenu(MainMenuFremdePlatten.DropDownItems); + AddEigenePlattenMenu(MainMenuEigenePlatten.DropDownItems); + + // wenn eine DefaultOfflineDatei hinterlegt ist + if (!String.IsNullOrEmpty(m_Config.DefaultOfflineFile)) + { + if (File.Exists(m_Config.DefaultOfflineFile)) + { + m_MyDisks.LoadOfflineCacheFromFile(m_Config.DefaultOfflineFile); + } + else + { + LogError("DefaultOfflineDatei " + m_Config.DefaultOfflineFile + " existiert nicht."); + } + } + + // Standardeinstellungen fr den "Meine Platten"-Tree anlegen + myDisksTree.AfterCheck += new TreeViewEventHandler(TransferCheckToStuffItem); + myDisksTree.TreeViewNodeSorter = (IComparer)new StuffItemSorter(); + + // Standardeinstellungen fr den "Andere Platten"-Tree anlegen + otherDisksTree.AfterCheck += new TreeViewEventHandler(TransferCheckToStuffItem); + otherDisksTree.TreeViewNodeSorter = (IComparer)new StuffItemSorter(); + + StartUpdate(); + + // nur Windows 7/Server 2008 R2 + if (IsWin7) + { + tbl = (ITaskbarList3)new TaskbarList(); + } + } + + /// <summary> + /// Kopiert eine Liste von Dateien an den angegebenen Zielort + /// </summary> + /// <param name="state"></param> + public void CopyFiles(object state) + { + // Thread-Zhler erhhen + copyThreadCount++; + + // Fehlerzhler + int errorCount = 0; + // Zhler fr die kopierten Dateien + int copiedFileCount = 0; + float copiedFileSizeMB = 0; + + List<StuffItemPair> copylist = (List<StuffItemPair>)state; + + if (copylist.Count < 1) + return; + + // Gre aller Dateien fr die Einrichtung des Fortschrittsbalkens ermitteln + float allFileSizeMB = 0; + foreach (StuffItemPair pair in copylist) + { + try + { + FileInfo sourceInfo = new FileInfo(pair.Source.Path); + allFileSizeMB += sourceInfo.Length / 1024 / 1024; + } + catch { } + { + // mit 1 vorbelegen wegen division durch 0 + if (allFileSizeMB == 0) + allFileSizeMB = 1; + } + } + + // Setzen des Maximalwerts des Fortschrittsbalkens + maxProgressMB += allFileSizeMB; + + Progress(copyThreadCount + "|0"); + + DateTime startTime = DateTime.Now; + + // jede Datei kopieren + foreach (StuffItemPair sip in copylist) + { + float sourceSizeMB = 0; + try + { + // Quelle und Ziel bestimmen + string source = sip.Source.Path; + string target = Path.Combine(sip.Target.Path, Path.GetFileName(sip.Source.Path)); + + // Dateigre der Quelldatei bestimmen + try + { + FileInfo sourceInfo = new FileInfo(source); + sourceSizeMB = (sourceInfo.Length / 1024 / 1024); + } + catch (Exception ex) + { + sourceSizeMB = 0; + LogWarning("Fehler: Gre der Datei " + source + " konnte nicht ermittelt werden: " + ex.Message); + } + + // Dateianzahl erhhen + copiedFileCount++; + + Status("Kopiere Datei " + copiedFileCount.ToString() + " von " + copylist.Count.ToString() + ": " + source + " -> " + target + " (" + sourceSizeMB.ToString() + " MB)"); + Log("Kopiere Datei " + copiedFileCount.ToString() + " von " + copylist.Count.ToString() + ": " + source + " -> " + target + " (" + sourceSizeMB.ToString() + " MB)"); + try + { + Directory.CreateDirectory(sip.Target.Path); + } + catch (Exception ee) + { + LogError("Fehler beim Erstellen des Verzeichnisses: " + ee.Message); + } + File.Copy(source, target); + // Markierung entfernen + sip.Source.Checked = false; + } + catch (Exception e) + { + LogError("Fehler beim Kopieren der Datei " + sip.Source.Path + " : " + e.Message); + errorCount++; + } + finally + { + // Fortschritt aktualisieren + copiedFileSizeMB += sourceSizeMB; + Progress(copyThreadCount + "|" + sourceSizeMB); + } + } + + // Thread-Zhler verringern + copyThreadCount--; + + // Fortschrittsbalkenmaximum verringern + maxProgressMB -= allFileSizeMB; + currentProgressMB -= copiedFileSizeMB; + + // Fortschrittsbalken zurcksetzen + Progress(copyThreadCount + "|0"); + + DateTime endTime = DateTime.Now; + + // Anzeige der eigenen Platten aktualisieren + m_MyDisks.UpdateChildsBackground(); + + Status("Kopieren abgeschlossen! " + errorCount.ToString() + " von " + copylist.Count.ToString() + " Dateien konnten nicht kopiert werden."); + + // Meldung ber Kopiervorgang anzeigen + TimeSpan copyTime = endTime - startTime; + LogHighlight("Kopiervorgang abgeschlossen! Dateien kopiert: " + copiedFileCount + " - Gesamtgre: " + String.Format("{0:F2}", copiedFileSizeMB) + " MB - Dauer: " + String.Format("{0:F0}:{1:D2}:{2:D2}", copyTime.TotalHours, copyTime.Minutes, copyTime.Seconds) + " - Transferrate: " + String.Format("{0:F2}", copiedFileSizeMB / copyTime.TotalSeconds) + " MB/s"); + Message("Kopiervorgang abgeschlossen!" + Environment.NewLine + Environment.NewLine + "Dateien kopiert:\t" + copiedFileCount + Environment.NewLine + "Gesamtgre:\t" + String.Format("{0:F2}", copiedFileSizeMB) + " MB" + Environment.NewLine + "Dauer:\t\t" + String.Format("{0:F0}:{1:D2}:{2:D2}", copyTime.TotalHours, copyTime.Minutes, copyTime.Seconds) + Environment.NewLine + "Transferrate:\t" + String.Format("{0:F2}", copiedFileSizeMB / copyTime.TotalSeconds) + " MB/s"); + } + + #region Klicks auf Menuepunkte + + /// <summary> + /// KLick auf Exit + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void exitToolStripMenuItem_Click(object sender, EventArgs e) + { + Application.Exit(); + } + + /// <summary> + /// Klick auf "Ordner aktualisieren" + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void UpdateFolderClick(object sender, EventArgs e) + { + GetStuffItem(sender).UpdateChildsBackground(); + } + + /// <summary> + /// Klick auf "Lschen des Logs" + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void protokollausgabeLschenToolStripMenuItem_Click(object sender, EventArgs e) + { + logTextBox.Clear(); + } + + /// <summary> + /// Konfiguration aufrufen und bei OK gleich scannen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void konfigurationToolStripMenuItem_Click(object sender, EventArgs e) + { + if (m_Config.EditConfig()) + { + StartUpdate(); + } + } + + /// <summary> + /// Eigene Platten erneut einlesen (z.zt nur default Konfiguration) + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void eigenePlattenAktualisierenToolStripMenuItem_Click(object sender, EventArgs e) + { + m_MyDisks.UpdateChildsBackground(); + } + + /// <summary> + /// Erneutes einlesen der fremden Platte + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void fremdePlatteAktualisierenToolStripMenuItem_Click(object sender, EventArgs e) + { + Program.MainWindow.m_OtherDisks.UpdateChildsBackground(); + } + + /// <summary> + /// Lschen des Hash-Caches (Datei lschen ginge auch ;-) + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void hashCacheLschenToolStripMenuItem_Click(object sender, EventArgs e) + { + m_Cache.Clear(); + } + + #endregion + + #region Aktualisierung der Bume (von Hintergrundthread aufrufbar) + + /// <summary> + /// Henkel um von einem Background-Prozess die Trees wieder zu aktualisieren + /// </summary> + public void UpdateTrees() + { + if ( InvokeRequired ) + { + Invoke( new MethodInvoker(UpdateTrees)); + } + else + { + UpdateMyDisksTreesInvoked(false); + UpdateOtherDisksTreesInvoked(false); + } + } + + /// <summary> + /// Henkel um von einem Background-Prozess die Trees wieder zu aktualisieren + /// Dabei werden unmarkierte und Zweige ohne Fehler zugeklappt + /// </summary> + public void CollapseMyDisks() + { + if ( InvokeRequired ) + { + Invoke( new MethodInvoker(CollapseMyDisks)); + } + else + { + UpdateMyDisksTreesInvoked(true); + } + } + + /// <summary> + /// Henkel um von einem Background-Prozess die Trees wieder zu aktualisieren + /// Dabei werden unmarkierte und Zweige ohne Fehler zugeklappt + /// </summary> + public void CollapseOtherDisks() + { + if ( InvokeRequired ) + { + Invoke( new MethodInvoker(CollapseOtherDisks)); + } + else + { + UpdateOtherDisksTreesInvoked(true); + } + } + + /// <summary> + /// Nur im Invoke-Zyklus rufbar! + /// </summary> + /// <param name="autoCollapse"></param> + private void UpdateMyDisksTreesInvoked(bool autoCollapse) + { + if ( InvokeRequired ) + { + throw new Exception("Dieser Aufruf ist nur im Invoke-Zylus erlaubt"); + } + + myDisksTree.BeginUpdate(); + + if (myDisksTree.Nodes.Count == 0) + { + myDisksTree.Nodes.Add(new TreeNode()); + } + + UpdateTreeRecursive( myDisksTree.Nodes[ 0 ], m_MyDisks, autoCollapse ); + + myDisksTree.Nodes[0].Expand(); + myDisksTree.Sort(); + + myDisksTree.EndUpdate(); + Status("Aktualisierung abgeschlossen!"); + } + + /// <summary> + /// Nur im Invoke-Zyklus rufbar! + /// </summary> + /// <param name="autoCollapse"></param> + private void UpdateOtherDisksTreesInvoked(bool autoCollapse) + { + if (this.InvokeRequired) + { + throw new Exception("Dieser Aufruf ist nur im Invoke-Zylus erlaubt"); + } + //---Rechter Baum + + otherDisksTree.BeginUpdate(); + if (otherDisksTree.Nodes.Count == 0) + { + otherDisksTree.Nodes.Add(new TreeNode()); + } + + UpdateTreeRecursive(otherDisksTree.Nodes[0], Program.MainWindow.m_OtherDisks, autoCollapse); + + otherDisksTree.Nodes[0].Expand(); + otherDisksTree.Sort(); + otherDisksTree.EndUpdate(); + Status("Aktualisierung abgeschlossen!"); + } + + /// <summary> + /// Checkboxstatus bei nderungen in StuffItem (im Tag) bertragen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void TransferCheckToStuffItem(object sender, TreeViewEventArgs e) + { + StuffItem si = (StuffItem)e.Node.Tag; + + if (si != null) + { + si.Checked = e.Node.Checked; + } + } + + /// <summary> + /// TreeNode aus StuffItem aktualisieren (Rekursiv) + /// </summary> + /// <param name="tn">Node</param> + /// <param name="si">Item</param> + /// <param name="autoCollapse">Automatisch zuklappen</param> + private void UpdateTreeRecursive(TreeNode tn, StuffItem si, Boolean autoCollapse) + { + List<string> delKeys = new List<string>(); + + // StuffItem immer in Tag hngen + tn.Tag = si; + // Mit AutoCollapse erst mal alles zuklappen und nur bei Bedarf wieder ffnen + if (autoCollapse) + { + tn.Collapse(); + } + // Sicherstellen, dass Fehler und Markierungen immer sichtbar sind, + // erlaubte Dubletten nicht immer sichtbar machen + if ((si.HasClones && (!si.IsIgnored || m_Config.IsShowIgnoredClones)) || si.IsNeeded || si.Checked) + { + TreeNode pn = tn.Parent; + while (pn != null) + { + pn.Expand(); + pn = pn.Parent; + } + } + + tn.Text = si.Text; + tn.ImageIndex = tn.SelectedImageIndex = (int)si.Icon; + tn.ToolTipText = si.ToolTip; + + // Checkboxes aus StuffItems setzen + tn.Checked = si.Checked; + + // Offline duch Textfarbe anzeigen + tn.ForeColor = si.IsOnline ? Color.Black : Color.SteelBlue; + + // Alle ChildItems durchlaufen, ggf. hinzufgen und rekursiv aktualisieren + foreach (StuffItem csi in si.ChildItems.ToArray()) + { + // Wenn die Datei gesperrt/vorhanden ist und keine gesperrten/vorhandenen Dateien + // angezeigt werden sollen, dann gar nicht erst hinzufgen + if (!csi.IsVisible) + { + if (tn.Nodes.ContainsKey(csi.Path)) + { + delKeys.Add(csi.Path); + } + continue; + } + + // neuen Node anlegen, wenn noch nicht bekannt + if (!tn.Nodes.ContainsKey(csi.Path)) + { + tn.Nodes.Add(csi.Path, csi.Name); + } + TreeNode ntn = tn.Nodes[csi.Path]; + UpdateTreeRecursive(ntn, csi, autoCollapse); + } + + // Alle TreeNodes lschen, die nicht mehr in den ChildItems sind (Das TreeNode.Tag zeigt auf das StuffItem) + foreach (TreeNode ntn in tn.Nodes) + { + if (!si.ChildItems.Contains((StuffItem)ntn.Tag)) + { + delKeys.Add(((StuffItem)ntn.Tag).Path); + } + } + + // Zweistufiges rauswerfen, damit die Liste nicht beim Durchlaufen manipuliert wird + foreach (string k in delKeys) + { + tn.Nodes.RemoveByKey(k); + } + } + + #endregion + + #region Logging/Messagebox/Status/Progress (auch von Hintergrundthreads nutzbar) + + private delegate void MethodInvokerWithString(string s); + + /// <summary> + /// Logausgabe. Diese Methode kann von Hintergrundthreads gerufen werden + /// </summary> + /// <param name="logText"></param> + public void Log(string logText) + { + if (this.InvokeRequired) + { + this.Invoke(new MethodInvokerWithString(Log), "*BG* " + logText); + } + else + { + logTextBox.SelectionColor = Color.Black; + LogMessage(logText); + } + } + + /// <summary> + /// Logausgabe in Grn als Highlight. Diese Methode kann von Hintergrundthreads gerufen werden + /// </summary> + /// <param name="log"></param> + public void LogHighlight(string log) + { + if (this.InvokeRequired) + { + this.Invoke(new MethodInvokerWithString(LogHighlight), "*BG* " + log); + } + else + { + logTextBox.SelectionColor = Color.DarkGreen; + LogMessage(log); + } + } + + /// <summary> + /// Logausgabe in Gelb als Warnung. Diese Methode kann von Hintergrundthreads gerufen werden + /// </summary> + /// <param name="log"></param> + public void LogWarning(string log) + { + if (this.InvokeRequired) + { + this.Invoke(new MethodInvokerWithString(LogWarning), "*BG* " + log); + } + else + { + logTextBox.SelectionColor = Color.Orange; + LogMessage(log); + } + } + + /// <summary> + /// Logausgabe in Rot als Fehler. Diese Methode kann von Hintergrundthreads gerufen werden + /// </summary> + /// <param name="log"></param> + public void LogError(string log) + { + if (this.InvokeRequired) + { + this.Invoke(new MethodInvokerWithString(LogError), "*BG* " + log); + } + else + { + logTextBox.SelectionColor = Color.Red; + LogMessage(log); + } + } + + private void LogMessage(string message) + { + if (String.IsNullOrEmpty(message)) + logTextBox.AppendText("\r\n"); + else + logTextBox.AppendText("\r\n" + DateTime.Now.ToString() + " | " + message); + + logTextBox.ScrollToCaret(); + logTextBox.Refresh(); + } + + /// <summary> + /// Statustext ausgeben + /// </summary> + /// <param name="message">Nachricht, die in der Statuszeile ausgegeben werden soll</param> + public void Status(string message) + { + if (this.InvokeRequired) + { + this.Invoke(new MethodInvokerWithString(Status), message); + } + else + { + stsStatus.Items[0].Text = message; + } + } + + /// <summary> + /// Messagebox ausgeben + /// </summary> + public void Message(string messageText) + { + if (this.InvokeRequired) + { + this.Invoke(new MethodInvokerWithString(Message), messageText); + } + else + { + MessageBox.Show(messageText, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + } + + /// <summary> + /// Progress anzeigen + /// </summary> + /// <param name="value">|</param> + public void Progress(string value) + { + if (this.InvokeRequired) + { + this.Invoke(new MethodInvokerWithString(Progress), value); + } + else + { + try + { + if (value is String) + { + String[] args = value.Split("|".ToCharArray()); + + if (args[0].Equals("0")) + { + statusProgress.Value = 0; + + // nur Windows 7/Server 2008 R2 + if (IsWin7) + { + tbl.SetProgressState(this.Handle, TBPFLAG.TBPF_NOPROGRESS); + } + + + } + else + { + // Fortschrittsbalken + if (maxProgressMB > 0) + { + // neuen Fortschritt an Hand der Dateigre berechnen + currentProgressMB += Convert.ToInt32(args[1]); + int progressValue = (int)((currentProgressMB * 100) / maxProgressMB); + statusProgress.Value = progressValue; + statusProgress.ToolTipText = "Fortschritt: " + progressValue + " % (" + currentProgressMB + + " MB von " + maxProgressMB + " MB"; + + // nur Windows 7/Server 2008 R2 + if (IsWin7) + { + tbl.SetProgressValue(this.Handle, (ulong)progressValue, 100); + } + } + } + + // Anzahl Threads + statusThreads.Text = "T: " + args[0]; + } + } + catch + { + // ignore + } + } + } + + #endregion + + #region Drag & Drop + + private void otherDisksTree_ItemDrag(object sender, ItemDragEventArgs e) + { + TreeNode tn = (TreeNode)e.Item; + if (tn != null /*&& ((StuffItem)tn.Tag).IsNeeded*/) + { + DoDragDrop(e.Item, DragDropEffects.Move); + } + } + + private void myDisksTree_DragEnter(object sender, DragEventArgs e) + { + TreeNode trgt = myDisksTree.GetNodeAt(myDisksTree.PointToClient(new Point(e.X, e.Y))); + if (trgt != null && trgt.ImageIndex == (int)TreeNodeImage.Folder) + { + e.Effect = DragDropEffects.Move; + } + else + { + e.Effect = DragDropEffects.None; + } + } + + private void myDisksTree_DragDrop(object sender, DragEventArgs e) + { + // Source und Target aus dem Drag&Drog-Object ermitteln + TreeNode src = (TreeNode)e.Data.GetData(typeof(TreeNode)); + TreeNode trgt = myDisksTree.GetNodeAt(myDisksTree.PointToClient(new Point(e.X, e.Y))); + List<StuffItemPair> copylist = new List<StuffItemPair>(); + copylist.Add(new StuffItemPair()); + copylist[0].Source = ((StuffItem)src.Tag); + copylist[0].Target = ((StuffItem)trgt.Tag); + + Program.RunBackgroundTask(this, "CopyFiles", copylist); + } + + #endregion + + #region Funktionen fr die Arbeit mit MainMen / PopupMen + + /// <summary> + /// Einhngen eines Menpunktes mit Event, Bild (opt) und StuffItem + /// </summary> + private void AddToMenuCollection(ToolStripItemCollection menuCollection, string name, string image, EventHandler eventHandler, StuffItem stuffItem) + { + ToolStripItem ts = menuCollection.Add(name); + ts.Click += eventHandler; + ts.Tag = stuffItem; + if (image != null && fileSystemImageList.Images.ContainsKey(image)) + { + ts.Image = fileSystemImageList.Images[image]; + } + } + + /// <summary> + /// StuffItem aus ToolStripItem oder MenuItem extrahieren (damit knnen Events + /// von beiden Mens aus verwendet werden) + /// </summary> + /// <param name="menuItem"></param> + /// <returns></returns> + private static StuffItem GetStuffItem(object menuItem) + { + if (menuItem is MenuItem) + { + return (StuffItem)((MenuItem)menuItem).Tag; + } + + if (menuItem is ToolStripItem) + { + return (StuffItem)((ToolStripItem)menuItem).Tag; + } + + return null; + } + + /// <summary> + /// Men fr eigene Platten aufbauen (Hauptmen und Popup-Men) + /// </summary> + /// <param name="menuCollection"></param> + private void AddEigenePlattenMenu(ToolStripItemCollection menuCollection) + { + // Konfiguration ffnen + AddToMenuCollection(menuCollection, "Platten hinzufgen oder entfernen...", "Hinzufuegen.png", new EventHandler(konfigurationToolStripMenuItem_Click), m_MyDisks); + // Menpunkt fr Aktualisieren links + AddToMenuCollection(menuCollection, "Meine Platten aktualisieren", "Aktualisieren.png", new EventHandler(eigenePlattenAktualisierenToolStripMenuItem_Click), m_MyDisks); + // Online / Offline Wechsel + AddToMenuCollection( menuCollection, "Meine Platten " + ( m_MyDisks.IsOnline ? "offline" : "online" ) + " schalten", m_MyDisks.IsOnline ? "DateiWeiss.png" : "DateiGruen.png", new EventHandler( ToggleOnline ), m_MyDisks ); + // Separator + menuCollection.Add("-"); + // Markieren aller Dateien ab Root, die gelscht werden knnen + AddToMenuCollection(menuCollection, "Dubletten zum Lschen markieren (eine bleibt)", "Markieren.png", new EventHandler(ContextMarkDoubleEntries), m_MyDisks); + // Allgemeines Men fr alle Platten dazu + AddAllePlattenMenu( menuCollection, m_MyDisks ); + // Lschen aller links makierten Dateien + AddToMenuCollection(menuCollection, "Alle markierten Dateien sperren und lschen", "DateiExcludedAndDeleted.png", new EventHandler(ContextExcludeAndDeleteAllMarkedFiles), m_MyDisks); + AddToMenuCollection(menuCollection, "Alle markierten Dateien lschen", "DateiLoeschen.png", new EventHandler(ContextDeleteAllMarkedFiles), m_MyDisks); + } + + /// <summary> + /// Men fr fremde Platten aufbauen (Hauptmen und Popup-Men) + /// </summary> + /// <param name="menuCollection"></param> + private void AddFremdePlattenMenu(ToolStripItemCollection menuCollection) + { + // Konfiguration ffnen + AddToMenuCollection(menuCollection, "Platten hinzufgen oder entfernen...", "Hinzufuegen.png", new EventHandler(konfigurationToolStripMenuItem_Click), Program.MainWindow.m_OtherDisks); + // AddToMenuCollection(menuCollection, "Fremde Platte hinzufgen...", "Hinzufuegen.png", new EventHandler(FremdePlatteAuswaehlenClick), Program.MainWindow.m_OtherDisks); + // Menpunkt fr Aktualisieren rechts + AddToMenuCollection(menuCollection, "Fremde Platten aktualisieren", "Aktualisieren.png", new EventHandler(fremdePlatteAktualisierenToolStripMenuItem_Click), Program.MainWindow.m_OtherDisks); + // Online / Offline Wechsel + AddToMenuCollection(menuCollection, "Fremde Platten " + (Program.MainWindow.m_OtherDisks.IsOnline ? "offline" : "online") + " schalten", Program.MainWindow.m_OtherDisks.IsOnline ? "DateiWeiss.png" : "DateiGruen.png", new EventHandler(ToggleOnline), Program.MainWindow.m_OtherDisks); + // Separator + menuCollection.Add("-"); + // Markieren aller zu saugenden Dateien ab Root + AddToMenuCollection(menuCollection, "Alle fehlenden Dateien markieren", "Markieren.png", new EventHandler(ContextMarkMissingFiles), Program.MainWindow.m_OtherDisks); + // Allgemeines Men fr alle Platten dazu + AddAllePlattenMenu(menuCollection, Program.MainWindow.m_OtherDisks); + } + + /// <summary> + /// Men fr beide Platten, wird von AddFremde/EigenenPlattenMenu verwendet + /// </summary> + /// <param name="menuCollection"></param> + /// <param name="stuffItem"></param> + private void AddAllePlattenMenu(ToolStripItemCollection menuCollection, StuffItem stuffItem) + { + // Markieren aller Dateien ab Root + AddToMenuCollection(menuCollection, "Alle Dateien markieren", "Markieren.png", new EventHandler(ContextMark), stuffItem); + // Markierung mit Suchfilter setzen + AddToMenuCollection(menuCollection, "Dateien mit Suchfilter markieren...", "Markieren.png", new EventHandler(ContextMarkByFilter), stuffItem); + // Markierung entfernen aller Dateien ab Root + AddToMenuCollection(menuCollection, "Alle Markierungen entfernen", "Demarkieren.png", new EventHandler(ContextRemoveMark), stuffItem); + // Separator + menuCollection.Add("-"); + // Unbentigte Teile zuklappen + AddToMenuCollection(menuCollection, "Alle Ordner ohne Markierungen/Hinweise zuklappen", "Zuklappen.png", new EventHandler(ContextCollapse), stuffItem); + // Separator + menuCollection.Add("-"); + // Markieren/Demarkieren + AddToMenuCollection(menuCollection, "Alle markierten Dateien entsperren", "DateiFrischGesaugt.png", new EventHandler(ContextIncludeMarkers), stuffItem); + AddToMenuCollection(menuCollection, "Alle markierten Dateien sperren", "DateiExcluded.png", new EventHandler(ContextExcludeMarkers), stuffItem); + } + + /// <summary> + /// Kontextmenu aufbauen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void tree_MouseUp( object sender, MouseEventArgs e ) + { + TreeView tv = ( TreeView )sender; + if ( e.Button != MouseButtons.Right ) + { + return; + } + + Point clickPoint = new Point( e.X, e.Y ); + TreeNode clickNode = tv.GetNodeAt( clickPoint ); + if ( clickNode == null ) + { + return; + } + + StuffItem clickItem = ( StuffItem )clickNode.Tag; + bool isRoot = clickItem.Equals( m_MyDisks ) || clickItem.Equals( Program.MainWindow.m_OtherDisks ); + // Convert from Tree coordinates to Screen coordinates + Point ScreenPoint = tv.PointToScreen( clickPoint ); + // Convert from Screen coordinates to Form coordinates + Point FormPoint = this.PointToClient( ScreenPoint ); + + // Show context menu + ContextMenuStrip contextmenu = new ContextMenuStrip(); + contextmenu.Items.Clear(); + // Fremde Platte entfernen + + // Mens fr die + if ( isRoot ) + { + if ( !clickItem.IsOnForeignDisk ) + { + AddEigenePlattenMenu( contextmenu.Items ); + } + else + { + AddFremdePlattenMenu( contextmenu.Items ); + } + } + else + { + if ( !clickItem.IsFile ) + { + AddToMenuCollection( contextmenu.Items, "Ordner " + clickItem.Path + " aktualisieren" + ( clickItem.IsOnline ? "" : " (offline)" ), "Aktualisieren.png", new EventHandler( UpdateFolderClick ), clickItem ); + AddToMenuCollection( contextmenu.Items, "Ordner " + clickItem.Path + ( clickItem.IsOnline ? " offline" : " online" ) + " schalten", clickItem.IsOnline ? "DateiWeiss.png" : "DateiGruen.png", new EventHandler( ToggleOnline ), clickItem ); + contextmenu.Items.Add( "-" ); + } + // Menpunkt fr Ansehen + if ( !clickItem.HasReadError ) + { + AddToMenuCollection( contextmenu.Items, "ffnen", "Oeffnen.png", new EventHandler( ContextExecute ), clickItem ); + // ffnen mit Anbieten bei Dateien + if ( clickItem.IsFile ) + { + AddToMenuCollection( contextmenu.Items, "ffnen mit...", "Oeffnen.png", new EventHandler( ContextExecuteWith ), clickItem ); + } + } + + // Ordner mit Unterordnern + if ( !clickItem.IsFile && clickItem.ChildItems.Count > 0 ) + { + contextmenu.Items.Add( "-" ); + // Markieren aller Dateien ab Folder + AddToMenuCollection( contextmenu.Items, "Alle Dateien unterhalb " + clickItem.Path + " markieren", "Markieren.png", new EventHandler( ContextMark ), clickItem ); + // Markieren aller Dateien ab Folder mit Filter + AddToMenuCollection( contextmenu.Items, "Dateien unterhalb " + clickItem.Path + " mit Suchfilter markieren...", "Markieren.png", new EventHandler( ContextMarkByFilter ), clickItem ); + // Markieren aller zu saugenden Dateien ab Folder + if ( clickItem.IsOnForeignDisk ) + { + AddToMenuCollection( contextmenu.Items, "Alle fehlenden Dateien unterhalb " + clickItem.Path + " markieren", "Markieren.png", new EventHandler( ContextMarkMissingFiles ), clickItem ); + } + // Markierung entfernen aller Dateien ab Folder + AddToMenuCollection( contextmenu.Items, "Alle Markierungen unterhalb " + clickItem.Path + " entfernen", "Demarkieren.png", new EventHandler( ContextRemoveMark ), clickItem ); + } + + if ( !clickItem.IsOnForeignDisk && !clickItem.IsFile && !clickItem.HasReadError ) + { + contextmenu.Items.Add( "-" ); + // Kopieren aller rechts markierten Dateien in einen Folder (flat) + AddToMenuCollection( contextmenu.Items, "Alle fremden selektierten Dateien direkt in diesen Ordner kopieren (flat)", "DateiSaugen.png", new EventHandler( ContextCopyAllClick ), clickItem ); + // Kopieren aller rechts markierten Dateien in einen Folder (hierarchisch) + AddToMenuCollection( contextmenu.Items, "Alle fremden selektierten Dateien mit Ordnerstruktur in diesen Ordner kopieren", "DateiSaugen.png", new EventHandler( ContextCopyAllWithFoldersClick ), clickItem ); + // Ordner anlegen + AddToMenuCollection( contextmenu.Items, "Neuen Ordner unterhalb " + clickItem.Path + " anlegen", "Ordner.png", new EventHandler( ContextNewFolder ), clickItem ); + + } + + if ( clickItem.IsFile && clickItem.HasClones ) + { + contextmenu.Items.Add( "-" ); + + List<StuffItem> clones = Program.MainWindow.m_MyDisks.GetItemClones( clickItem ); + for ( int i = 0 ; i < clones.Count ; i++ ) + { + if ( !clones[ i ].Equals( clickItem ) ) + { + AddToMenuCollection( contextmenu.Items, "ffnen Dublette " + clones[ i ].Path, "Oeffnen.png", new EventHandler( ContextExecute ), clones[ i ] ); + } + } + + AddToMenuCollection( contextmenu.Items, "Markieren aller Dubletten dieser Datei", "Markieren.png", new EventHandler( ContextMarkClones ), clickItem ); + // Dubletten ignorieren ja/nein + if ( !clickItem.IsIgnored ) + { + AddToMenuCollection( contextmenu.Items, "Dubletten dieser Datei erlauben", "", new EventHandler( ContextIgnore ), clickItem ); + } + else + { + AddToMenuCollection( contextmenu.Items, "Dubletten dieser Datei wieder markieren", "", new EventHandler( ContextUnIgnore ), clickItem ); + } + + // Fr Dubletten Mens anbieten (auf rot) + for ( int i = 0 ; i < clones.Count ; i++ ) + { + if ( !clones[ i ].Equals( clickItem ) ) + { + AddToMenuCollection( contextmenu.Items, "Lschen Dublette " + clones[ i ].Path, "DateiLoeschen.png", new EventHandler( ContextDeleteFile ), clones[ i ] ); + } + } + + } + // Datei in die Sperrliste ein-/austragen + if ( clickItem.IsFile ) + { + // Linie nach Markieren + contextmenu.Items.Add( "-" ); + if ( !clickItem.IsExcluded ) + { + AddToMenuCollection( contextmenu.Items, "Sperren der Datei", "DateiExcluded.png", new EventHandler( ContextExclude ), clickItem ); + } + else + { + AddToMenuCollection( contextmenu.Items, "Entsperren der Datei", "DateiFrischGesaugt.png", new EventHandler( ContextInclude ), clickItem ); + } + // Sperren und zugleich lschen + if ( !clickItem.IsExcluded && !clickItem.IsOnForeignDisk ) + { + AddToMenuCollection( contextmenu.Items, "Sperren und Lschen der Datei", "DateiExcludedAndDeleted.png", new EventHandler( ContextExcludeAndDelete ), clickItem ); + } + // Lschen einer Einzeldatei, nur links + if ( !clickItem.IsOnForeignDisk ) + { + AddToMenuCollection( contextmenu.Items, "Lschen der Datei", "DateiLoeschen.png", new EventHandler( ContextDeleteFile ), clickItem ); + } + } + // Lschen eines (leeren) Ordners + if ( !clickItem.HasReadError && !clickItem.IsOnForeignDisk && !clickItem.IsFile && clickItem.ChildItems.Count == 0 ) + { + AddToMenuCollection( contextmenu.Items, "Ordner lschen", "OrdnerLoeschen.png", new EventHandler( ContextDeleteFolder ), clickItem ); + } + // Sperren/Entsperren multi + if ( !clickItem.IsFile && clickItem.ChildItems.Count > 0 ) + { + // Linie nach Markieren + contextmenu.Items.Add( "-" ); + AddToMenuCollection( contextmenu.Items, "Alle markierten Dateien entsperren", "DateiFrischGesaugt.png", new EventHandler( ContextIncludeMarkers ), clickItem ); + AddToMenuCollection( contextmenu.Items, "Alle markierten Dateien sperren", "DateiExcluded.png", new EventHandler( ContextExcludeMarkers ), clickItem ); + AddToMenuCollection( contextmenu.Items, "Alle markierten Dateien sperren und lschen", "DateiExcludedAndDeleted.png", new EventHandler( ContextExcludeAndDeleteAllMarkedFiles ), clickItem ); + // Lschen aller links markierten Dateien + if ( !clickItem.IsOnForeignDisk ) + { + AddToMenuCollection( contextmenu.Items, "Alle markierten Dateien unterhalb " + clickItem.Path + " lschen", "DateiLoeschen.png", new EventHandler( ContextDeleteAllMarkedFiles ), clickItem ); + } + } + } + contextmenu.Show( this, FormPoint ); + } + + #endregion + + #region Popup Men Aktionen + + /// <summary> + /// Teilbaum von Offline auf Online und umgekehrt setzen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ToggleOnline(object sender, EventArgs e) + { + // StuffItem ermitteln + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + + // Onlinestatus umsetzen + if (si.IsOnline) + { + Log("Setze Offline: " + si.Path); + si.IsOnline = false; + } + else + { + Log("Setze Online: " + si.Path); + si.IsOnline = true; + } + + // Mens bauen sich dabei um! + MainMenuFremdePlatten.DropDownItems.Clear(); + AddFremdePlattenMenu(MainMenuFremdePlatten.DropDownItems); + MainMenuEigenePlatten.DropDownItems.Clear(); + AddEigenePlattenMenu(MainMenuEigenePlatten.DropDownItems); + + UpdateTrees(); + } + + /// <summary> + /// Eine Datei excluden + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextExclude(object sender, EventArgs e) + { + try + { + StuffItem si = GetStuffItem(sender); + // wenn kein StuffItem ausgewhlt wurde, dann tun wir hier nix + if (si == null) + { + return; + } + + // Datei sperren + si.Exclude(); + Log("Sperre Datei: " + si.Path); + + UpdateTreeNodeIcon(si); + } + catch (Exception e2) + { + LogError("Fehler beim Sperren: " + e2.Message); + } + } + + /// <summary> + /// Eine Datei excluden und lschen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextExcludeAndDelete( object sender, EventArgs e ) + { + try + { + StuffItem si = GetStuffItem( sender ); + if ( si == null ) + { + return; + } + DialogResult res = MessageBox.Show( "Datei " + si.Name + " wirklich sperren und lschen?", + "Vorsicht, sie trennen sich von Material!", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation ); + if ( res == DialogResult.OK ) + { + Log( "Sperre und lsche Datei: " + si.Path ); + si.Exclude(); + File.Delete( si.Path ); + + RemoveStuffItemFromMyDisksTree( si ); + } + } + catch ( Exception e2 ) + { + LogError( "Fehler beim Sperren und Lschen: " + e2.Message ); + } + } + + /// <summary> + /// Eine Datei includen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextInclude(object sender, EventArgs e) + { + try + { + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + + Log("Entsperre Datei: " + si.Path); + si.Include(); + + UpdateTreeNodeIcon(si); + } + catch (Exception ex) + { + LogError("Fehler beim Entsperren: " + ex.Message); + } + } + + + /// <summary> + /// Eine Datei ignorieren + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextIgnore(object sender, EventArgs e) + { + try + { + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + + Log("Erlaube Dubletten der Datei: " + si.Path); + si.Ignore(); + + // Icon der Datei und mglicher Clones anpassen + UpdateTreeNodeIcon(si); + } + catch (Exception ex) + { + LogError("Fehler beim Erlauben: " + ex.Message); + } + } + + /// <summary> + /// Eine Datei un-ignorieren + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextUnIgnore(object sender, EventArgs e) + { + try + { + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + + Log("Markiere Dubletten der Datei: " + si.Path); + si.UnIgnore(); + + // Icon der Datei und mglicher Clones anpassen + UpdateTreeNodeIcon( si ); + } + catch (Exception ex) + { + LogError("Fehler beim Markieren: " + ex.Message); + } + } + + /// <summary> + /// Eine Datei ausfhren durch Meneintrag + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextExecute(object sender, EventArgs e) + { + try + { + StuffItem si = GetStuffItem(sender); + if ( si == null ) + { + return; + } + if ( si.IsFile ) + { + Status( "Starte Datei: " + si.Path ); + } + else + { + Status( "ffne Verzeichnis: " + si.Path ); + } + + try + { + Process.Start(si.Path); + } + catch + { + ContextExecuteWith(sender, e); + } + } + catch (Exception e2) + { + LogError("Fehler beim Ausfhren: " + e2.Message); + } + } + + /// <summary> + /// Eine Datei ausfhren mit Auswahl durch Programm durch Meneintrag + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextExecuteWith(object sender, EventArgs e) + { + try + { + StuffItem si = GetStuffItem(sender); + if ( si == null ) + { + return; + } + if ( si.IsFile ) + { + Status( "Starte Datei: " + si.Path ); + } + else + { + Status( "ffne Verzeichnis: " + si.Path ); + } + + using (Process p = new Process()) + { + ProcessStartInfo pi = new ProcessStartInfo("rundll32.exe"); + pi.UseShellExecute = false; + pi.RedirectStandardOutput = true; + pi.Arguments = "shell32.dll,OpenAs_RunDLL " + si.Path; + p.StartInfo = pi; + p.Start(); + } + } + catch (Exception e2) + { + LogError("Fehler beim Ausfhren: " + e2.Message); + } + } + + /// <summary> + /// Eine Datei lschen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextDeleteFile(object sender, EventArgs e) + { + try + { + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + + if (MessageBox.Show("Datei " + si.Name + " wirklich lschen?", "Vorsicht, sie trennen sich von Material!", + MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation) == DialogResult.OK) + { + // Datei lschen + Log("Lsche Datei: " + si.Path); + File.Delete(si.Path); + + RemoveStuffItemFromMyDisksTree( si ); + } + } + catch (Exception e2) + { + LogError("Fehler beim Lschen: " + e2.Message); + } + } + + /// <summary> + /// Eine leeren Ordner lschen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextDeleteFolder(object sender, EventArgs e) + { + try + { + StuffItem si = GetStuffItem(sender); + if ( si == null ) + { + return; + } + + DialogResult res = System.Windows.Forms.MessageBox.Show("Ordner " + si.Name + " wirklich lschen?", "Leeren Ordner lschen", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation); + if (res == DialogResult.OK) + { + Log("Lsche Ordner: " + si.Path); + Directory.Delete(si.Path); + + RemoveStuffItemFromMyDisksTree( si ); + } + } + catch (Exception e2) + { + LogError("Fehler beim Lschen: " + e2.Message); + } + } + /// <summary> + /// Alle markierten unterhalb eines Ordners lschen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextDeleteAllMarkedFiles(object sender, EventArgs e) + { + StuffItem si = GetStuffItem(sender); + if (si == null || si.IsFile || si.IsOnForeignDisk) + { + return; + } + + string meld = ""; + if (si.Parent == null) + { + meld = "Alle markierten Dateien wirklich lschen?"; + } + else + { + meld = "Alle markierten Dateien unterhalb " + si.Path + " wirklich lschen?"; + } + + DialogResult res = MessageBox.Show(meld, "Vorsicht, sie trennen sich von Material!", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning); + if (res == DialogResult.OK) + { + DeleteAllMarkedFilesRecursive(si); + } + } + + /// <summary> + /// Alle markierten unterhalb eines Ordners sperren und lschen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextExcludeAndDeleteAllMarkedFiles(object sender, EventArgs e) + { + StuffItem si = GetStuffItem(sender); + if (si == null || si.IsFile ||si.IsOnForeignDisk) + { + return; + } + + string meld = ""; + if (si.Parent == null) + { + meld = "Alle markierten Dateien wirklich sperren und lschen?"; + } + else + { + meld = "Alle markierten Dateien unterhalb " + si.Path + " wirklich sperren und lschen?"; + } + + if (MessageBox.Show(meld, "Vorsicht, sie trennen sich von Material!", + MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK) + { + Recursive_ExcludeMarkers(si, true); + DeleteAllMarkedFilesRecursive(si); + } + } + + /// <summary> + /// Hilfsfunktion um alle markierten Dateien rekrusiv zu lschen + /// </summary> + /// <param name="si"></param> + private void DeleteAllMarkedFilesRecursive(StuffItem si) + { + try + { + if ( si.IsFile ) + { + if ( !si.Checked ) + { + return; + } + // Datei lschen + Log( "Datei wird gelscht: " + si.Path ); + File.Delete( si.Path ); + + // aus der StuffItem-Liste lschen + RemoveStuffItemFromMyDisksTree( si ); + } + else + { + // Rckwrts durchlaufen wegen Lschen + for ( int j = si.ChildItems.Count - 1 ; j >= 0 ; j-- ) + { + StuffItem csi = si.ChildItems[ j ]; + DeleteAllMarkedFilesRecursive( csi ); + } + + // Leeres Verzeichnis lschen + if ( si.ChildItems.Count == 0 && si.Checked ) + { + Log( "Leeres Verzeichnis wird gelscht: " + si.Path ); + Directory.Delete( si.Path ); + + RemoveStuffItemFromMyDisksTree( si ); + } + } + } + catch (Exception e2) + { + LogError("Fehler beim Lschen: " + e2.Message); + } + } + + private void RemoveStuffItemFromMyDisksTree( StuffItem si ) + { + // Verweis vom Elternteil entfernen + si.Parent.ChildItems.Remove( si ); + + // Datei aus dem Tree entfernen + myDisksTree.FindSingleNode(si.Path).Remove(); + + // Eintrge auch aus der MyDisksByHash-Liste entfernen + m_MyDisks.RemoveStuffItemFromHashes( si ); + + // Anzeige aktualisieren + UpdateTreeNodeIcon( si ); + } + + /// <summary> + /// Alle markierten unterhalb eines Ordners sperren + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextExcludeMarkers(object sender, EventArgs e) + { + StuffItem si = GetStuffItem(sender); + if (si == null || si.IsFile) + { + return; + } + Recursive_ExcludeMarkers(si, true); + + // Markierungen entfernen, falls gewnscht + if (m_Config.IsRemoveMarks) + { + // Markierungen im aktuellen Tree entfernen + ContextRemoveMark(sender, e); + } + } + + /// <summary> + /// Alle markierten unterhalb eines Ordners entsperren + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextIncludeMarkers(object sender, EventArgs e) + { + StuffItem si = GetStuffItem(sender); + if (si == null || si.IsFile) + { + return; + } + Recursive_ExcludeMarkers(si, false); + + // Markierungen entfernen, falls gewnscht + if (m_Config.IsRemoveMarks) + { + // Markierungen im aktuellen Tree entfernen + ContextRemoveMark(sender, e); + } + } + + /// <summary> + /// Hilfsfunktion um alle markierten Dateien rekursiv zu sperren + /// </summary> + /// <param name="si"></param> + /// <param name="exclude">true fr Dateien sperren, false wenn die Dateien entsperren</param> + private void Recursive_ExcludeMarkers( StuffItem si, bool exclude ) + { + try + { + if ( si.IsFile ) + { + if ( si.Checked ) + { + if ( exclude ) + { + Log( "Datei gesperrt: " + si.Path ); + si.Exclude(); + } + else + { + Log( "Datei entsperrt: " + si.Path ); + si.Include(); + } + + // TreeNodeIcon aktualisieren + UpdateTreeNodeIcon( si ); + } + } + else + { + foreach ( StuffItem csi in si.ChildItems ) + { + Recursive_ExcludeMarkers( csi, exclude ); + } + } + } + catch ( Exception e2 ) + { + LogError( "Fehler beim Sperren/Entsperren: " + e2.Message ); + } + } + + /// <summary> + /// Alle markierten Items in Kopierliste zusammenfassen und im Hintergrund kopieren + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextCopyAllClick(object sender, EventArgs e) + { + StuffItem trgt = GetStuffItem(sender); + if (trgt == null || trgt.IsFile) + return; + List<StuffItemPair> copylist = new List<StuffItemPair>(); + ContextCopyAllClickAddChecked(copylist, otherDisksTree.Nodes[0]); + + // Markierungen entfernen, falls gewnscht + // beim Kopieren schon jetzt, denn entfllt das manuelle Demarkieren + if (m_Config.IsRemoveMarks) + { + // Markierung immer im Tree "Fremde Platten" entfernen + ContextRemoveMark(otherDisksTree.Nodes[0].Tag, e); + } + + foreach (StuffItemPair pair in copylist) + { + pair.Target = trgt; + } + // Kopieraktion starten + Program.RunBackgroundTask(this, "CopyFiles", copylist); + } + + /// <summary> + /// Alle markierten Items in Kopierliste zusammenfassen und mit Pfad kopieren + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + void ContextCopyAllWithFoldersClick(object sender, EventArgs e) + { + StuffItem trgt = GetStuffItem(sender); + if (trgt == null || trgt.IsFile) + return; + + List<StuffItemPair> copylist = new List<StuffItemPair>(); + ContextCopyAllClickAddChecked(copylist, otherDisksTree.Nodes[0]); + foreach (StuffItemPair pair in copylist) + { + FileInfo fi = new FileInfo(pair.Source.Path); + string subpath = fi.DirectoryName.Replace(":", "").Replace("\\\\", ""); + pair.Target = new StuffItem(); + pair.Target.Path = trgt.Path + "\\" + subpath; + } + + // Markierungen entfernen, falls gewnscht + // beim Kopieren schon jetzt, denn entfllt das manuelle Demarkieren + // beim Kopieren immer im Tree "Fremde Platten" + if (m_Config.IsRemoveMarks) + { + ContextRemoveMark(otherDisksTree.Nodes[0].Tag, e); + } + + // Dateien kopieren + Program.RunBackgroundTask(this, "CopyFiles", copylist); + } + + /// <summary> + /// Hilfsfunktion zum rekursiven Kopieren (ohne Erhalt der Hierarchie) + /// </summary> + /// <param name="copylist"></param> + /// <param name="node"></param> + void ContextCopyAllClickAddChecked(List<StuffItemPair> copylist, TreeNode node) + { + if (node.Checked) + { + StuffItem item = (StuffItem)node.Tag; + if (item != null && item.IsFile) + { + copylist.Add(new StuffItemPair()); + copylist[copylist.Count - 1].Source = item; + } + } + foreach (TreeNode n in node.Nodes) + { + ContextCopyAllClickAddChecked(copylist, n); + } + } + + /// <summary> + /// Aktualisiert das Icon eines bestimmten StuffItems in den TreeViews + /// </summary> + /// <param name="si">StuffItem, welches es zu aktualisieren gilt</param> + void UpdateTreeNodeIcon(StuffItem si) + { + TreeView currentTree = si.IsOnForeignDisk ? otherDisksTree : myDisksTree; + TreeNode tn = currentTree.FindSingleNode( si.Path ); + if ( tn != null ) + { + tn.ImageIndex = tn.SelectedImageIndex = ( int )si.Icon; + } + + // lokale Dateien eines entfernten StuffItems ebenfalls anpassen + if ( si.IsOnForeignDisk ) + { + foreach ( String localpath in si.GetLocalFiles ) + { + tn = myDisksTree.FindSingleNode( localpath ); + tn.ImageIndex = tn.SelectedImageIndex = ( int )( ( StuffItem )tn.Tag ).Icon; + } + } + else + { + // ggf. den anderen Tree auch anpassen (wg. Exludes) + foreach ( String remotepath in si.GetRemoteFiles ) + { + tn = otherDisksTree.FindSingleNode( remotepath ); + tn.ImageIndex = tn.SelectedImageIndex = ( int )( ( StuffItem )tn.Tag ).Icon; + } + // TODO: bei Excludes und aktiver Option zum Ausblenden von Items, dann muss das Ding ganz raus + } + } + + #endregion + + #region Markierungen setzen und entfernen (Kontextmenu) + + /// <summary> + /// Alle Zweige ohne Markierung zuklappen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ContextCollapse(object sender, EventArgs e) + { + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + if (si.IsOnForeignDisk) + { + CollapseOtherDisks(); + } + else + { + CollapseMyDisks(); + } + } + + /// <summary> + /// Alle markieren, die zu saugen sind + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ContextMarkMissingFiles(object sender, EventArgs e) + { + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + + Recursive_UpdateMark( si, true ); + Recursive_MarkMissingFiles(si); + } + + /// <summary> + /// Alle Dateien die ein Clone einer anderen sind markieren + /// </summary> + private void ContextMarkClones(object sender, EventArgs e) + { + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + + si.Checked = false; + foreach ( StuffItem clone in Program.MainWindow.m_MyDisks.GetItemClones( si ) ) + { + TreeNode node = myDisksTree.FindSingleNode( clone.Path ); + node.Checked = true; + node.Expand(); + } + } + + /// <summary> + /// Alle Dateien unterhalb eines Knotens markieren + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ContextMark(object sender, EventArgs e) + { + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + + Recursive_UpdateMark( si, true ); + } + + /// <summary> + /// Alle Markierungen entfernen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ContextRemoveMark(object sender, EventArgs e) + { + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + + Recursive_UpdateMark( si, false ); + } + + /// <summary> + /// Alle markieren, die zu gelscht werden knnen, weil doppelt + /// Das klappt nur auf dem Root-Node, dehalb nur da anbieten + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ContextMarkDoubleEntries(object sender, EventArgs e) + { + StuffItem se = GetStuffItem(sender); + if (se == null) + { + return; + } + Recursive_UpdateMark( se, false ); + Recursive_MarkDoubleEntries(se); + } + + + /// <summary> + /// Alle Dateien unterhalb eines Knotens mit einem manuellen Filterstring markieren + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ContextMarkByFilter(object sender, EventArgs e) + { + // Ohne Startitem gehts nicht + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + + // Dialog aufbauen / abfragen + using (LanTool.FilterDialog filterDlg = new LanTool.FilterDialog()) + { + filterDlg.Text = "Filtern unterhalb \"" + si.Path + "\""; + + if (filterDlg.ShowDialog() == DialogResult.OK) + { + string filter = filterDlg.Expression; + // RegExp-Sonderzeichen per backslash quoten + string[] quote = new string[] { "\\", ".", "(", ")", "[", "]" }; + foreach (string q in quote) + filter = filter.Replace(q, "\\" + q); + + // Dos Wildcards durch RegExp ersetzen + filter = filter.Replace("*", ".*").Replace("?", "."); + + // Losfiltern ab Item + Recursive_MarkByFilter(si, filter); + } + } + } + + /// <summary> + /// Rekursion zum Markieren mit einem Filterstring + /// </summary> + /// <param name="si">aktuellles StuffItem</param> + /// <param name="filter">String-Filter</param> + private void Recursive_MarkByFilter(StuffItem si, string filter) + { + TreeView currenttree = si.IsOnForeignDisk ? otherDisksTree : myDisksTree; + + foreach (StuffItem csi in si.ChildItems) + { + // wenn der Filter zutrifft, dann markieren + if (Regex.IsMatch(csi.Name, filter, RegexOptions.IgnoreCase)) + { + currenttree.FindSingleNode(csi.Path).Checked = true; + } + // wenn Ordner, dann weiter rekursiv durch + if (!csi.IsFile) + { + Recursive_MarkByFilter(csi, filter); + } + } + } + + /// <summary> + /// Rekursion zum Markieren frs Saugen + /// </summary> + private void Recursive_MarkMissingFiles(StuffItem si) + { + TreeView currenttree = si.IsOnForeignDisk ? otherDisksTree : myDisksTree; + + // alle TreeNodes finden + foreach ( StuffItem csi in si.ChildItems ) + { + TreeNode node = currenttree.FindSingleNode( csi.Path ); + node.Checked = csi.IsNeeded; + if ( csi.IsNeeded ) + { + node.Expand(); + } + + if ( !csi.IsFile ) + { + Recursive_MarkMissingFiles( csi ); + } + } + } + + /// <summary> + /// Rekursiv alle untergeordneten Nodes de-/markieren + /// </summary> + private void Recursive_UpdateMark( StuffItem si, Boolean setMark ) + { + TreeView currenttree = si.IsOnForeignDisk ? otherDisksTree : myDisksTree; + + // alle TreeNodes finden + TreeNode node = currenttree.FindSingleNode( si.Path ); + node.Checked = setMark; + if ( setMark ) + { + node.Expand(); + } + + foreach ( StuffItem csi in si.ChildItems ) + { + Recursive_UpdateMark( csi, setMark ); + } + } + + /// <summary> + /// Die nachfolgenden Duplikate markieren, d.h. das erste bleibt erhalten + /// Das kann nur klappen wenn auf RootNode begonnen wird und vorher alle Markierungen + /// zurckgesetzt werden! + /// </summary> + /// <param name="si"></param> + private void Recursive_MarkDoubleEntries(StuffItem si) + { + // nur bei den eigenen Platten + if (!si.IsOnForeignDisk) + { + // nur bei Dateien + if (si.IsFile) + { + if (!si.Checked && si.HasClones) + { + foreach ( StuffItem csi in Program.MainWindow.m_MyDisks.GetItemClones( si ) ) + { + TreeNode node = myDisksTree.FindSingleNode( csi.Path ); + + node.Checked = true; + node.Expand(); + + } + } + } + else + { + foreach (StuffItem csi in si.ChildItems) + { + Recursive_MarkDoubleEntries(csi); + } + } + } + } + + #endregion + + #region Suchen + + /// <summary> + /// Suche + /// </summary> + private bool ContextSearchRecursive(StuffItem si, string filter) + { + foreach (StuffItem se2 in si.ChildItems) + { + if (Regex.IsMatch(se2.Path, filter, RegexOptions.IgnoreCase) && !itemsAlreadyFound.Contains(se2.Path)) + { + // Item zur Liste "bereits gefunden" hinzufgen + itemsAlreadyFound.Add(se2.Path); + + // gesuchtes Item gefunden, dann + TreeNode fn = FindNode(lastUsedView.Nodes[0].Nodes, se2.Path); + if (fn == null) + { + return false; + } + else + { + lastUsedView.SelectedNode = fn; + return true; + } + } + else + { + // keine Datei, dann die childs untersuchen + if (!se2.IsFile) + if (ContextSearchRecursive(se2, filter)) + return true; + } + } + + return false; + } + private TreeNode FindNode(TreeNodeCollection tncoll, String strText) + { + TreeNode tnFound = null; + foreach (TreeNode tnCurr in tncoll) + { + if (String.Equals(tnCurr.Name, strText, StringComparison.CurrentCultureIgnoreCase)) + { + return tnCurr; + } + if (tnCurr.Nodes.Count > 0) + tnFound = FindNode(tnCurr.Nodes, strText); + if (tnFound != null) + { + return tnFound; + } + } + return null; + } + + /// <summary> + /// Im Suchfeld wurde eine Taste bettigt + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void searchField_KeyUp(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Return) + { + // wenn es um eine neue Suche handelt, dann die bereits gefunden Liste zurcksetzen + if (!String.Equals(lastSearchString, searchField.Text, StringComparison.CurrentCultureIgnoreCase)) + { + itemsAlreadyFound.Clear(); + + lastSearchString = searchField.Text; + } + + String filter = searchField.Text; + + // wenn kein Suchtext angegeben wurde, dann wird auch nichts gesucht + if (!String.IsNullOrEmpty(filter)) + { + + // RegExp-Sonderzeichen per backslash quoten + string[] quote = new string[] { "\\", ".", "(", ")", "[", "]" }; + foreach (string q in quote) + filter = filter.Replace(q, "\\" + q); + + // Dos Wildcards durch RegExp ersetzen + filter = filter.Replace("*", ".*").Replace("?", "."); + + StuffItem si = (StuffItem)lastUsedView.Nodes[0].Tag; + + // Suche beim aktuellen Item starten + if (!ContextSearchRecursive(si, filter)) + { + Status("Keine (weiteren) Treffer."); + // Bereits gefunden Liste zurcksetzen + itemsAlreadyFound.Clear(); + } + + // damit das ganze auch sichtbar wird, den TreeView fokusieren + lastUsedView.Focus(); + } + else + { + searchField.Focus(); + } + } + } + + /// <summary> + /// Suchen-Button im Men + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void suchenToolStripMenuItem_Click(object sender, EventArgs e) + { + // gleiche Funktion wie Enter im Suchfeld + searchField_KeyUp(sender, new KeyEventArgs(Keys.Return)); + } + + #endregion + + /// <summary> + /// Neuen Ordner anlegen + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ContextNewFolder(object sender, EventArgs e) + { + // Ohne Startitem gehts nicht + StuffItem si = GetStuffItem(sender); + if (si == null) + { + return; + } + + // Dialog aufbauen / abfragen + using (NewFolderDialog folderDlg = new NewFolderDialog()) + { + folderDlg.Text = "Neuen Ordner anlegen unterhalb \"" + si.Path + "\":"; + if (folderDlg.ShowDialog() == DialogResult.OK) + { + string folder = folderDlg.NewFolderName; + // Sonderzeichen durch _ ersetzen + foreach ( char q in Path.GetInvalidPathChars() ) + { + folder = folder.Replace( q, '_' ); + } + // Losfiltern ab Item + Directory.CreateDirectory(Path.Combine(si.Path, folder)); + + si.AddOrGetChildItemByPath( Path.Combine( si.Path, folder ) ); + + UpdateTreeRecursive( myDisksTree.Nodes[si.Path], si, false); + } + } + } + + #region Speichern und laden einer Fileliste als Ersatz fr dem MyDisk-Filesystem Scan + + /// <summary> + /// Verzeichnisse exportieren (werden durch realen Scan aufgebaut) + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void verzeichnisFrMeinePlattenExportierenToolStripMenuItem_Click(object sender, EventArgs e) + { + using (SaveFileDialog fd = new SaveFileDialog()) + { + fd.Filter = "LanTool-Verzeichnis-Export (*.files)|*.files|Textdateien (*.txt)|*.txt"; + fd.DefaultExt = "*.files"; + fd.FileName = "MeinePlatten.files"; + fd.InitialDirectory = MainForm.basePath; + fd.CheckFileExists = false; + fd.CheckPathExists = true; + fd.AutoUpgradeEnabled = true; + if (fd.ShowDialog(this).Equals(DialogResult.OK)) + { + Log(String.Format("Offline-Datei {0} wurde gespeichert.", fd.FileName)); + m_MyDisks.SaveOfflineCacheToFile(fd.FileName); + } + } + } + + /// <summary> + /// Einlesen einer Cache-Datei fr den Offline-Betrieb + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void verzeichnisFrMeinePlattenImportierenToolStripMenuItem_Click(object sender, EventArgs e) + { + using (OpenFileDialog fd = new OpenFileDialog()) + { + fd.Filter = "LanTool-Verzeichnis-Export (*.files)|*.files|Textdateien (*.txt)|*.txt"; + fd.DefaultExt = "*.files"; + fd.FileName = "MeinePlatten.files"; + fd.InitialDirectory = MainForm.basePath; + fd.CheckFileExists = true; + fd.CheckPathExists = true; + fd.Multiselect = false; + fd.AutoUpgradeEnabled = true; + if (fd.ShowDialog(this) == DialogResult.OK) + { + m_MyDisks.LoadOfflineCacheFromFile(fd.FileName); + m_MyDisks.IsOnline = false; + + Log(String.Format("Offline-Datei {0} wurde eingelesen.", fd.FileName)); + + UpdateTrees(); + } + } + } + + private void offlineCacheLschenToolStripMenuItem_Click(object sender, EventArgs e) + { + m_MyDisks.ResetOfflineCaches(); + m_MyDisks.IsOnline = true; + + UpdateTrees(); + } + + #endregion + + /// <summary> + /// Speichern welcher TreeView zuletzt aufgerufen wurde + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void DisksTree_Enter(object sender, EventArgs e) + { + lastUsedView = (TreeView)sender; + } + + /// <summary> + /// Ausfhren einer Datei durch Doppelklick + /// </summary> + private void tree_MouseDoubleClick(object sender, MouseEventArgs e) + { + try + { + // nur bei Linksklick reagieren + if (e.Button.Equals(MouseButtons.Left)) + { + Point clickPoint = new Point(e.X, e.Y); + + // Objekt unter der Maus holen + TreeNode clickNode = ((TreeView)sender).GetNodeAt(clickPoint); + // ins leere geklickt -> nichts tun + if ( clickNode == null || clickNode.Tag == null ) + { + return; + } + + StuffItem tn = (StuffItem)clickNode.Tag; + // kein StuffItem dran oder keine Datei + if ( tn == null || !tn.IsFile ) + { + return; + } + + // Datei ausfhren + Status("Starte Datei: " + tn.Path); + Process.Start(tn.Path); + } + } + catch (Exception e2) + { + LogError("Fehler beim Ausfhren: " + e2.Message); + } + } + + /// <summary> + /// Hotkeys behandeln + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void MainForm_KeyUp(object sender, KeyEventArgs e) + { + // ins Suchfeld springen bei Strg+F + if (e.KeyCode == Keys.F && Control.ModifierKeys == Keys.Control) + { + searchField.Focus(); + } + // gleiche Funktion wie Enter im Suchfeld + else if (e.KeyCode == Keys.F3) + { + searchField_KeyUp(sender, new KeyEventArgs(Keys.Return)); + } + } + + private void MainForm_FormClosing(object sender, FormClosingEventArgs e) + { + // Caches auf die Platte schreiben + m_Cache.Dispose(); + } + + /// <summary> + /// Nach Auswahl eines Elementes den Pfad zum Element in der Textbox anzeigen + /// </summary> + private void myDisksTree_AfterSelect(object sender, TreeViewEventArgs e) + { + StuffItem selectedStuffItem = (StuffItem)myDisksTree.SelectedNode.Tag; + if (selectedStuffItem.IsFile) + { + myDisksPath.Text = Path.GetDirectoryName(selectedStuffItem.Path); + } + else + { + myDisksPath.Text = selectedStuffItem.Path; + } + } + + /// <summary> + /// Nach Auswahl eines Elementes den Pfad zum Element in der Textbox anzeigen + /// </summary> + private void otherDisksTree_AfterSelect(object sender, TreeViewEventArgs e) + { + StuffItem selectedStuffItem = (StuffItem)otherDisksTree.SelectedNode.Tag; + if (selectedStuffItem.IsFile) + { + otherDisksPath.Text = Path.GetDirectoryName(selectedStuffItem.Path); + } + else + { + otherDisksPath.Text = selectedStuffItem.Path; + } + } + + #region Pfad-Felder ber den TreeViews + + private void DisksPath_OpenPath(object sender, MouseEventArgs e) + { + String path = ((TextBox)sender).Text; + + // Links -> Pfad im Explorer ffnen + if (e.Button == MouseButtons.Left) + { + try + { + // Nach oben suchen bis ein Text entsteht, der als Verzeichnis existiert + while ( !Directory.Exists( path ) && path.Length > 0 ) + { + path = path.Substring( 0, path.LastIndexOf( @"\" ) ); + } + + // im Explorer ffnen + if ( !Directory.Exists( path ) ) + { + return; + } + + Status( "ffne Verzeichnis: " + path ); + Process.Start( path ); + } + catch { } + } + // Rechtsklick -> in die Zwischenablage + if (e.Button == MouseButtons.Right) + { + Clipboard.SetDataObject(path, true); + } + } + + private void DisksPath_KeyUp(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + DisksPath_OpenPath(sender, new MouseEventArgs(MouseButtons.Left, 2, 0, 0, 0)); + } + + #endregion + + #region Info-Men + + private void lanToolForumToolStripMenuItem_Click(object sender, EventArgs e) + { + Process.Start("http://www.rw-net.de/bbl/index.php?page=Board&boardID=21"); + } + + private void lanToolTippsTricksToolStripMenuItem_Click(object sender, EventArgs e) + { + Process.Start("http://www.rw-net.de/LanTool_Tipps.txt"); + } + + private void lanToolChangeLogToolStripMenuItem_Click(object sender, EventArgs e) + { + Process.Start("http://www.rw-net.de/LanTool_ChangeLog.txt"); + } + + private void berToolStripMenuItem_Click(object sender, EventArgs e) + { + new AboutBox().ShowDialog(); + } + + private void fTPMitDemLanToolNetDriveToolStripMenuItem_Click(object sender, EventArgs e) + { + try + { + if (File.Exists("NetDrive-Setup.exe")) + Process.Start("NetDrive-Setup.exe"); + else + Process.Start("http://www.netdrive.net"); + } + catch + { } + } + + #endregion + + /// <summary> + /// Aktualisierung der beiden TreeViews starten + /// </summary> + private void StartUpdate() + { + // Auto Scan anwerfen + if (m_Config.IsAutoScanMyDisks) + { + m_MyDisks.UpdateChildsBackground(); + } + if (m_Config.IsAutoScanOtherDisks) + { + Program.MainWindow.m_OtherDisks.UpdateChildsBackground(); + } + + Program.MainWindow.UpdateTrees(); + } + } +} +\ No newline at end of file diff --git a/LanTool/MainForm.resx b/LanTool/MainForm.resx @@ -0,0 +1,343 @@ +<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <metadata name="MainMenuToolStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> + <metadata name="fileSystemImageList.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>293, 17</value> + </metadata> + <data name="fileSystemImageList.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64"> + <value> + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABa + EQAAAk1TRnQBSQFMAgEBFAEAAQwBAQEMAQEBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + AwABQAMAAWADAAEBAQABCAYAARgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA + AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 + AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA + AWYDAAGZAwABzAIAATMDAAIzAgABMwFmAgABMwGZAgABMwHMAgABMwH/AgABZgMAAWYB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gE/AcABBwGAAQcCAAH+AT8B4AEPAcABBwIAAf8BHwHgAQ8B4wH/AgAB/wEf + AfABHwHzAf8CAAH/AY8B/AF/AfsB/wIAAf8BjwT/AgAB/wHHBP8CAAb/AgAE/wGAAwAE/wQAAfwBfwH8 + AX8EAAHwAR8B8AEfBAAB4AEPAeABDwQAAeABDwHgAQ8EAAHAAQcBwAEHBAABwAEHAcABBwQAAcABBwHA + AQcEAAHgAQ8B4AEPBAAB4AEPAeABDwEAAQECAAHwAR8B8AEfAQABAwIAAfwBfwH8AX8BgAH/AgAE/wHB + Af8CAAT/Cw== +</value> + </data> + <metadata name="stsStatus.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>177, 17</value> + </metadata> + <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>50</value> + </metadata> + <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> + <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value> + AAABAAMAMDAAAAEACACoDgAANgAAACAgAAABAAgAqAgAAN4OAAAQEAAAAQAIAGgFAACGFwAAKAAAADAA + AABgAAAAAQAIAAAAAACACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAIAAAACAgACAAAAAgACAAICA + AADAwMAAwNzAAPDKpgDU8P8AseL/AI7U/wBrxv8ASLj/ACWq/wAAqv8AAJLcAAB6uQAAYpYAAEpzAAAy + UADU4/8Ascf/AI6r/wBrj/8ASHP/ACVX/wAAVf8AAEncAAA9uQAAMZYAACVzAAAZUADU1P8AsbH/AI6O + /wBra/8ASEj/ACUl/wAAAP4AAADcAAAAuQAAAJYAAABzAAAAUADj1P8Ax7H/AKuO/wCPa/8Ac0j/AFcl + /wBVAP8ASQD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P// + /////wAA////////AAD///////8AAP/wD/AP/wAA///gB///AAD//+AP//8AAP//4A///wAA///wD/// + AAD///AP//8AAP//wAf//wAA///AA///AAD//8AB//8AAP//wAH//wAA///AAP//AAD//8AA//8AAP// + gAD//wAA//+AAP//AAD//4AA//8AAP//gAB//wAA//+AAD//AAD//4AAP/8AAP//gAA//wAA//+ACP// + AAD//wAY//8AAP//EBj//wAA//8QP///AAD//jg///8AAP/+PD///wAA//w8P///AAD//jw///8AAP// + /D///wAA///8P///AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA//////// + AAD///////8AAP///////wAA////////AAAoAAAAIAAAAEAAAAABAAgAAAAAAIAEAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAMDAwADA3MAA8MqmANTw/wCx4v8AjtT/AGvG + /wBIuP8AJar/AACq/wAAktwAAHq5AABilgAASnMAADJQANTj/wCxx/8Ajqv/AGuP/wBIc/8AJVf/AABV + /wAASdwAAD25AAAxlgAAJXMAABlQANTU/wCxsf8Ajo7/AGtr/wBISP8AJSX/AAAA/gAAANwAAAC5AAAA + lgAAAHMAAABQAOPU/wDHsf8Aq47/AI9r/wBzSP8AVyX/AFUA/wBJANwAPQC5ADEAlgAlAHMAGQBQAPDU + /wDisf8A1I7/AMZr/wC4SP8AqiX/AKoA/wCSANwAegC5AGIAlgBKAHMAMgBQAP/U/wD/sf8A/47/AP9r + /wD/SP8A/yX/AP4A/gDcANwAuQC5AJYAlgBzAHMAUABQAP/U8AD/seIA/47UAP9rxgD/SLgA/yWqAP8A + qgDcAJIAuQB6AJYAYgBzAEoAUAAyAP/U4wD/sccA/46rAP9rjwD/SHMA/yVXAP8AVQDcAEkAuQA9AJYA + MQBzACUAUAAZAP/U1AD/sbEA/46OAP9rawD/SEgA/yUlAP4AAADcAAAAuQAAAJYAAABzAAAAUAAAAP/j + 1AD/x7EA/6uOAP+PawD/c0gA/1clAP9VAADcSQAAuT0AAJYxAABzJQAA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AAAACysrKysrKyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKyAAAAAAAAAAAA + AAAAAAAAAAAAAAAAALKysrKysrKysrKyAAAAAAAAAAAAAAAAAAAAAAAAAAAAsrKysrKysrKysrIAAAAA + AAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKysrIAAAAAAAAAAAAAAAAAAAAAAAAAALKysrKysrKysrKy + sgAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKysrIAAAAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKy + srKysgAAAAAAAAAAAAAAAAAAAAAAAAAAALKysrKysrKysrKysgAAAAAAAAAAAAAAAAAAAAAAAAAAsrKy + srKysrKysrKysgAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKysrKyAAAAAAAAAAAAAAAAAAAAAAAA + ALKysrKysrKyAAAAsgAAAAAAAAAAAAAAAAAAAAAAAACyAACysrKysgAAAACyAAAAAAAAAAAAAAAAAAAA + AAAAALIAALKysrKyAAAAALIAAAAAAAAAAAAAAAAAAAAAAACyAAAAsrKysgAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAALIAAAAAsrKyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsgAAAAAAsrIAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAALIAAAAAAACysgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsgAAAAAAALKyAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAsrIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACysgAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAD///////////AP8A//4Af//+AP///gD///8A////AP///AB///wAP//8AB///A + Af//wAD//8AA//+AAP//gAD//4AA//+AAH//gAA//4AAP/+AAD//gAj//wAY//8QGP//ED///jg///48 + P//8PD///j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uQAAAJYAAABzAAAAUAAA1P/jALH/xwCO/6sAa/+PAEj/ + cwAl/1cAAP9VAADcSQAAuT0AAJYxAABzJQAAUBkA1P/wALH/4gCO/9QAa//GAEj/uAAl/6oAAP+qAADc + kgAAuXoAAJZiAABzSgAAUDIA1P//ALH//wCO//8Aa///AEj//wAl//8AAP7+AADc3AAAubkAAJaWAABz + cwAAUFAA8vLyAObm5gDa2toAzs7OAMLCwgC2trYAqqqqAJ6engCSkpIAhoaGAHp6egBubm4AYmJiAFZW + VgBKSkoAPj4+ADIyMgAmJiYAGhoaAA4ODgDw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// + AAD///8AAAAAAAAAAAAAAAAAAAAAAAAA6enuAAAAAAAA+OnpAAAAAAAAAACysrIAAAAAAAAAAAAAAAAA + srKyAAAAAAAAAAAAAAAAALKysgAAAAAAAAAAAAAAAACysrKyAAAAAAAAAAAAAAAAsrKysrIAAAAAAAAA + AAAAsrKysrKyAAAAAAAAAAAAALKysrKysgAAAAAAAAAAAACysrKysrKyAAAAAAAAAAAAsrKysgAAAAAA + AAAAAAAAAACysrIAAAAAAAAAAAAAALIAALIAAAAAAAAAAAAAAAAAAACyAAAAAAAAAAAAAAAAAAAAsgAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AADDwwAA+D8AAPg/AAD4PwAA+B8AAPgPAADwDwAA8A8AAPAH + AADwBwAA4E8AAOR/AADkfwAA5H8AAP5/AAA= +</value> + </data> +</root> +\ No newline at end of file diff --git a/LanTool/NewFolderDialog.cs b/LanTool/NewFolderDialog.cs @@ -0,0 +1,28 @@ +using System.Windows.Forms; +using System.IO; + +namespace LanTool +{ + /// <summary> + /// Dialog zum Anlegen eines neuen Ordners auf den eigenen Platten + /// </summary> + public partial class NewFolderDialog : Form + { + /// <summary> + /// NewFolderDialog erstellen + /// </summary> + public NewFolderDialog () + { + InitializeComponent(); + } + + /// <summary> + /// Name des neuen Ordners + /// </summary> + public string NewFolderName + { + get { return newFolderTextBox.Text; } + set { newFolderTextBox.Text = value; } + } + } +} +\ No newline at end of file diff --git a/LanTool/NewFolderDialog.designer.cs b/LanTool/NewFolderDialog.designer.cs @@ -0,0 +1,111 @@ +namespace LanTool +{ + partial class NewFolderDialog + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NewFolderDialog)); + this.cancelButton = new System.Windows.Forms.Button(); + this.executeButton = new System.Windows.Forms.Button(); + this.newFolderTextBox = new System.Windows.Forms.TextBox(); + this.newFolderLabel = new System.Windows.Forms.Label(); + this.dokLabel = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // cancelButton + // + this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.cancelButton.Location = new System.Drawing.Point(280, 79); + this.cancelButton.Name = "cancelButton"; + this.cancelButton.Size = new System.Drawing.Size(75, 23); + this.cancelButton.TabIndex = 2; + this.cancelButton.Text = "Abbruch"; + this.cancelButton.UseVisualStyleBackColor = true; + // + // executeButton + // + this.executeButton.DialogResult = System.Windows.Forms.DialogResult.OK; + this.executeButton.Location = new System.Drawing.Point(199, 79); + this.executeButton.Name = "executeButton"; + this.executeButton.Size = new System.Drawing.Size(75, 23); + this.executeButton.TabIndex = 1; + this.executeButton.Text = "Erstellen"; + this.executeButton.UseVisualStyleBackColor = true; + // + // newFolderTextBox + // + this.newFolderTextBox.Location = new System.Drawing.Point(73, 12); + this.newFolderTextBox.Name = "newFolderTextBox"; + this.newFolderTextBox.Size = new System.Drawing.Size(281, 20); + this.newFolderTextBox.TabIndex = 0; + // + // newFolderLabel + // + this.newFolderLabel.AutoSize = true; + this.newFolderLabel.Location = new System.Drawing.Point(12, 12); + this.newFolderLabel.Name = "newFolderLabel"; + this.newFolderLabel.Size = new System.Drawing.Size(39, 13); + this.newFolderLabel.TabIndex = 3; + this.newFolderLabel.Text = "Ordner"; + // + // dokLabel + // + this.dokLabel.AutoSize = true; + this.dokLabel.Location = new System.Drawing.Point(70, 44); + this.dokLabel.Name = "dokLabel"; + this.dokLabel.Size = new System.Drawing.Size(171, 13); + this.dokLabel.TabIndex = 4; + this.dokLabel.Text = "Namen fr neuen Ordner eingeben"; + // + // NewFolderDialog + // + this.AcceptButton = this.executeButton; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(365, 116); + this.Controls.Add(this.dokLabel); + this.Controls.Add(this.newFolderLabel); + this.Controls.Add(this.newFolderTextBox); + this.Controls.Add(this.executeButton); + this.Controls.Add(this.cancelButton); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "NewFolderDialog"; + this.Text = "Namen fr neuen Ordner eingeben"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button cancelButton; + private System.Windows.Forms.Button executeButton; + private System.Windows.Forms.TextBox newFolderTextBox; + private System.Windows.Forms.Label newFolderLabel; + private System.Windows.Forms.Label dokLabel; + } +} +\ No newline at end of file diff --git a/LanTool/NewFolderDialog.resx b/LanTool/NewFolderDialog.resx @@ -0,0 +1,249 @@ +<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> + <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytear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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP// + /////wAA////////AAD///////8AAP/wD/AP/wAA///gB///AAD//+AP//8AAP//4A///wAA///wD/// + AAD///AP//8AAP//wAf//wAA///AA///AAD//8AB//8AAP//wAH//wAA///AAP//AAD//8AA//8AAP// + gAD//wAA//+AAP//AAD//4AA//8AAP//gAB//wAA//+AAD//AAD//4AAP/8AAP//gAA//wAA//+ACP// + AAD//wAY//8AAP//EBj//wAA//8QP///AAD//jg///8AAP/+PD///wAA//w8P///AAD//jw///8AAP// + /D///wAA///8P///AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA//////// + AAD///////8AAP///////wAA////////AAAoAAAAIAAAAEAAAAABAAgAAAAAAIAEAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAMDAwADA3MAA8MqmANTw/wCx4v8AjtT/AGvG + /wBIuP8AJar/AACq/wAAktwAAHq5AABilgAASnMAADJQANTj/wCxx/8Ajqv/AGuP/wBIc/8AJVf/AABV + /wAASdwAAD25AAAxlgAAJXMAABlQANTU/wCxsf8Ajo7/AGtr/wBISP8AJSX/AAAA/gAAANwAAAC5AAAA + lgAAAHMAAABQAOPU/wDHsf8Aq47/AI9r/wBzSP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/wAAAP8A + /wD//wAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAA6enp6fjuAAAAAAAAAAAAAAAA7vjp6enpAAAAAAAAAAAAAAAAAAAAAACy + srKysrIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALKysrKysgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAsrKysrKyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACysrKysrIAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAALKysrKysgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsrKysrKyAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAACysrKysrKyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKyAAAAAAAAAAAA + AAAAAAAAAAAAAAAAALKysrKysrKysrKyAAAAAAAAAAAAAAAAAAAAAAAAAAAAsrKysrKysrKysrIAAAAA + AAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKysrIAAAAAAAAAAAAAAAAAAAAAAAAAALKysrKysrKysrKy + sgAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKysrIAAAAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKy + srKysgAAAAAAAAAAAAAAAAAAAAAAAAAAALKysrKysrKysrKysgAAAAAAAAAAAAAAAAAAAAAAAAAAsrKy + srKysrKysrKysgAAAAAAAAAAAAAAAAAAAAAAAACysrKysrKysrKysrKyAAAAAAAAAAAAAAAAAAAAAAAA + ALKysrKysrKyAAAAsgAAAAAAAAAAAAAAAAAAAAAAAACyAACysrKysgAAAACyAAAAAAAAAAAAAAAAAAAA + AAAAALIAALKysrKyAAAAALIAAAAAAAAAAAAAAAAAAAAAAACyAAAAsrKysgAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAALIAAAAAsrKyAAAAAAAAAAAAAAAAAAAAAAA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A/9TUAP+xsQD/jo4A/2trAP9ISAD/JSUA/gAAANwAAAC5AAAAlgAAAHMAAABQAAAA/+PUAP/H + sQD/q44A/49rAP9zSAD/VyUA/1UAANxJAAC5PQAAljEAAHMlAABQGQAA//DUAP/isQD/1I4A/8ZrAP+4 + SAD/qiUA/6oAANySAAC5egAAlmIAAHNKAABQMgAA///UAP//sQD//44A//9rAP//SAD//yUA/v4AANzc + AAC5uQAAlpYAAHNzAABQUAAA8P/UAOL/sQDU/44Axv9rALj/SACq/yUAqv8AAJLcAAB6uQAAYpYAAEpz + AAAyUAAA4//UAMf/sQCr/44Aj/9rAHP/SABX/yUAVf8AAEncAAA9uQAAMZYAACVzAAAZUAAA1P/UALH/ + sQCO/44Aa/9rAEj/SAAl/yUAAP4AAADcAAAAuQAAAJYAAABzAAAAUAAA1P/jALH/xwCO/6sAa/+PAEj/ + cwAl/1cAAP9VAADcSQAAuT0AAJYxAABzJQAAUBkA1P/wALH/4gCO/9QAa//GAEj/uAAl/6oAAP+qAADc + kgAAuXoAAJZiAABzSgAAUDIA1P//ALH//wCO//8Aa///AEj//wAl//8AAP7+AADc3AAAubkAAJaWAABz + cwAAUFAA8vLyAObm5gDa2toAzs7OAMLCwgC2trYAqqqqAJ6engCSkpIAhoaGAHp6egBubm4AYmJiAFZW + VgBKSkoAPj4+ADIyMgAmJiYAGhoaAA4ODgDw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// + AAD///8AAAAAAAAAAAAAAAAAAAAAAAAA6enuAAAAAAAA+OnpAAAAAAAAAACysrIAAAAAAAAAAAAAAAAA + srKyAAAAAAAAAAAAAAAAALKysgAAAAAAAAAAAAAAAACysrKyAAAAAAAAAAAAAAAAsrKysrIAAAAAAAAA + AAAAsrKysrKyAAAAAAAAAAAAALKysrKysgAAAAAAAAAAAACysrKysrKyAAAAAAAAAAAAsrKysgAAAAAA + AAAAAAAAAACysrIAAAAAAAAAAAAAALIAALIAAAAAAAAAAAAAAAAAAACyAAAAAAAAAAAAAAAAAAAAsgAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AADDwwAA+D8AAPg/AAD4PwAA+B8AAPgPAADwDwAA8A8AAPAH + AADwBwAA4E8AAOR/AADkfwAA5H8AAP5/AAA= +</value> + </data> +</root> +\ No newline at end of file diff --git a/LanTool/Program.cs b/LanTool/Program.cs @@ -0,0 +1,97 @@ +using System; +using System.Diagnostics; +using System.Threading; +using System.Windows.Forms; +using LanTool.Classes; + +[assembly: CLSCompliant(true)] +namespace LanTool +{ + static class Program + { + public static MainForm MainWindow; + + /// <summary> + /// Lnger andauernde Funktion im Hintergrund starten (damit Oberflche bedienbar bleibt) + /// </summary> + /// <param name="obj">Owner</param> + /// <param name="procname">Name der Funktion die aufzurufen ist</param> + /// <param name="para">Parameter des Aufrufs</param> + public static void RunBackgroundTask( object obj, string procname, object para ) + { + try + { + WaitCallback wc = ( WaitCallback )Delegate.CreateDelegate( typeof( WaitCallback ), obj, procname ); + if ( para == null ) + { + ThreadPool.QueueUserWorkItem( wc ); + } + else + { + ThreadPool.QueueUserWorkItem( wc, para ); + } + } + catch ( Exception ex ) + { + Console.WriteLine( ex.ToString() ); + } + } + + /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault( false ); + + Boolean createdNew; + Mutex mut = new Mutex( true, "LanTool_" + Application.StartupPath.Replace( @"\", "_" ), out createdNew ); + try + { + if ( createdNew ) + { + MainWindow = new MainForm(); + Application.Run( MainWindow ); + + // Release the Mutex. + mut.ReleaseMutex(); + } + else + { + // Alle Processe die "LanTool" heien suchen + Process[] ltprocs = Process.GetProcessesByName( "LanTool" ); + + // Prozesse in den Vordergrund holen + foreach ( Process ltproc in ltprocs ) + { + // TODO: Holen des Fensters klappt nicht im normalen Aufruf + if ( ltproc.MainModule.FileName.Equals( Application.ExecutablePath, + StringComparison.OrdinalIgnoreCase ) && + ltproc.Id != Process.GetCurrentProcess().Id ) + { + NativeMethods.SetForegroundWindow( ( int )ltproc.MainWindowHandle ); + break; + } + } + } + } + catch ( Exception ex ) + { + MessageBox.Show( ex.ToString() ); + } + finally + { + // Mutex schlieen + if ( mut != null ) + { + if ( createdNew ) + { + mut.Close(); + } + } + } + } + } +} +\ No newline at end of file diff --git a/LanTool/Properties/AssemblyInfo.cs b/LanTool/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Resources; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("LanTool")] +[assembly: AssemblyDescription("Das LanTool ist ein äußerst nützliches Werkzeug, um die eigene Datensammlung im Blick zu behalten und auf LanBaddies schnell und einfach zu erweitern.")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("St. CapLAN")] +[assembly: AssemblyProduct("LanTool")] +[assembly: AssemblyCopyright("Copyright © stlan.de.vu / Buddha && apollo")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("05948a00-7dc0-4d69-bbbc-fb81f54624cf")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion( "1.6.0.0" )] +[assembly: AssemblyFileVersion( "1.6.0.0" )] + +[assembly: NeutralResourcesLanguageAttribute("de-DE")] diff --git a/LanTool/Properties/Resources.Designer.cs b/LanTool/Properties/Resources.Designer.cs @@ -0,0 +1,133 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +namespace LanTool.Properties { + using System; + + + /// <summary> + /// A strongly-typed resource class, for looking up localized strings, etc. + /// </summary> + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// <summary> + /// Returns the cached ResourceManager instance used by this class. + /// </summary> + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("LanTool.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// <summary> + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// </summary> + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap DeleteHS { + get { + object obj = ResourceManager.GetObject("DeleteHS", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap EditTableHS { + get { + object obj = ResourceManager.GetObject("EditTableHS", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap FindHS { + get { + object obj = ResourceManager.GetObject("FindHS", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap HTMLPage { + get { + object obj = ResourceManager.GetObject("HTMLPage", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap OpenFile { + get { + object obj = ResourceManager.GetObject("OpenFile", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap openfolderHS { + get { + object obj = ResourceManager.GetObject("openfolderHS", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap saveHS { + get { + object obj = ResourceManager.GetObject("saveHS", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/LanTool/Properties/Resources.resx b/LanTool/Properties/Resources.resx @@ -0,0 +1,143 @@ +<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> + <data name="DeleteHS" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\DeleteHS.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="HTMLPage" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\HTMLPage.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="EditTableHS" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\EditTableHS.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="FindHS" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\FindHS.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="OpenFile" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\OpenFile.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="saveHS" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\saveHS.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> + <data name="openfolderHS" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\openfolderHS.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> +</root> +\ No newline at end of file diff --git a/LanTool/Properties/app.manifest b/LanTool/Properties/app.manifest @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <assemblyIdentity version="1.0.0.0" name="MyApplication.app" /> + <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> + <security> + <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> + <!-- UAC Manifest Options + If you want to change the Windows User Account Control level replace the + requestedExecutionLevel node with one of the following. + + <requestedExecutionLevel level="asInvoker" uiAccess="false" /> + <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> + <requestedExecutionLevel level="highestAvailable" uiAccess="false" /> + + Specifying requestedExecutionLevel node will disable file and registry virtualization. + If you want to utilize File and Registry Virtualization for backward + compatibility then delete the requestedExecutionLevel node. + --> + <requestedExecutionLevel level="asInvoker" uiAccess="false" /> + </requestedPrivileges> + <applicationRequestMinimum> + <PermissionSet class="System.Security.PermissionSet" version="1" Unrestricted="true" ID="Custom" SameSite="site" /> + <defaultAssemblyRequest permissionSetReference="Custom" /> + </applicationRequestMinimum> + </security> + </trustInfo> + <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> + <application> + <!-- A list of all Windows versions that this application is designed to work with. Windows will automatically select the most compatible environment.--> + <!-- If your application is designed to work with Windows 7, uncomment the following supportedOS node--> + <!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>--> + </application> + </compatibility> + <!-- Enable themes for Windows common controls and dialogs (Windows XP and later) --> + <!-- <dependency> + <dependentAssembly> + <assemblyIdentity + type="win32" + name="Microsoft.Windows.Common-Controls" + version="6.0.0.0" + processorArchitecture="*" + publicKeyToken="6595b64144ccf1df" + language="*" + /> + </dependentAssembly> + </dependency>--> +</asmv1:assembly> +\ No newline at end of file diff --git a/LanTool/Resources/DeleteHS.png b/LanTool/Resources/DeleteHS.png Binary files differ. diff --git a/LanTool/Resources/EditTableHS.png b/LanTool/Resources/EditTableHS.png Binary files differ. diff --git a/LanTool/Resources/FindHS.png b/LanTool/Resources/FindHS.png Binary files differ. diff --git a/LanTool/Resources/HTMLPage.png b/LanTool/Resources/HTMLPage.png Binary files differ. diff --git a/LanTool/Resources/OpenFile.png b/LanTool/Resources/OpenFile.png Binary files differ. diff --git a/LanTool/Resources/openfolderHS.png b/LanTool/Resources/openfolderHS.png Binary files differ. diff --git a/LanTool/Resources/saveHS.png b/LanTool/Resources/saveHS.png Binary files differ. diff --git a/LanTool/app.config b/LanTool/app.config @@ -0,0 +1,3 @@ +<?xml version="1.0"?> +<configuration> +<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/></startup></configuration>