From a3f617f4d50388916f8bb70bef2c1fc589f9ff79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eugen=20H=C3=B6glinger?= Date: Wed, 26 Feb 2020 15:10:27 +0100 Subject: [PATCH] Projekt neu angelegt. --- .gitignore | 32 +++++ BaseFormLibrary.sln | 37 ++++++ BaseFormLibrary/App.config | 6 + BaseFormLibrary/BaseFormLibrary.csproj | 86 +++++++++++++ BaseFormLibrary/Form1.Designer.cs | 74 +++++++++++ BaseFormLibrary/Form1.cs | 30 +++++ BaseFormLibrary/Form1.resx | 120 ++++++++++++++++++ BaseFormLibrary/Program.cs | 22 ++++ BaseFormLibrary/Properties/AssemblyInfo.cs | 36 ++++++ .../Properties/Resources.Designer.cs | 71 +++++++++++ BaseFormLibrary/Properties/Resources.resx | 117 +++++++++++++++++ .../Properties/Settings.Designer.cs | 30 +++++ BaseFormLibrary/Properties/Settings.settings | 7 + InheritanceTest/App.config | 6 + InheritanceTest/Form1.Designer.cs | 40 ++++++ InheritanceTest/Form1.cs | 20 +++ InheritanceTest/Form2.Designer.cs | 50 ++++++++ InheritanceTest/Form2.cs | 18 +++ InheritanceTest/Form2.resx | 120 ++++++++++++++++++ InheritanceTest/InheritanceTest.csproj | 95 ++++++++++++++ InheritanceTest/Program.cs | 22 ++++ InheritanceTest/Properties/AssemblyInfo.cs | 36 ++++++ .../Properties/Resources.Designer.cs | 71 +++++++++++ InheritanceTest/Properties/Resources.resx | 117 +++++++++++++++++ .../Properties/Settings.Designer.cs | 30 +++++ InheritanceTest/Properties/Settings.settings | 7 + InheritanceTest1/App.config | 6 + InheritanceTest1/Form2.Designer.cs | 49 +++++++ InheritanceTest1/Form2.cs | 18 +++ InheritanceTest1/Form2.resx | 120 ++++++++++++++++++ InheritanceTest1/InheritanceTest1.csproj | 119 +++++++++++++++++ InheritanceTest1/Program.cs | 22 ++++ InheritanceTest1/Properties/AssemblyInfo.cs | 36 ++++++ .../Properties/Resources.Designer.cs | 71 +++++++++++ InheritanceTest1/Properties/Resources.resx | 117 +++++++++++++++++ .../Properties/Settings.Designer.cs | 30 +++++ InheritanceTest1/Properties/Settings.settings | 7 + 37 files changed, 1895 insertions(+) create mode 100644 .gitignore create mode 100644 BaseFormLibrary.sln create mode 100644 BaseFormLibrary/App.config create mode 100644 BaseFormLibrary/BaseFormLibrary.csproj create mode 100644 BaseFormLibrary/Form1.Designer.cs create mode 100644 BaseFormLibrary/Form1.cs create mode 100644 BaseFormLibrary/Form1.resx create mode 100644 BaseFormLibrary/Program.cs create mode 100644 BaseFormLibrary/Properties/AssemblyInfo.cs create mode 100644 BaseFormLibrary/Properties/Resources.Designer.cs create mode 100644 BaseFormLibrary/Properties/Resources.resx create mode 100644 BaseFormLibrary/Properties/Settings.Designer.cs create mode 100644 BaseFormLibrary/Properties/Settings.settings create mode 100644 InheritanceTest/App.config create mode 100644 InheritanceTest/Form1.Designer.cs create mode 100644 InheritanceTest/Form1.cs create mode 100644 InheritanceTest/Form2.Designer.cs create mode 100644 InheritanceTest/Form2.cs create mode 100644 InheritanceTest/Form2.resx create mode 100644 InheritanceTest/InheritanceTest.csproj create mode 100644 InheritanceTest/Program.cs create mode 100644 InheritanceTest/Properties/AssemblyInfo.cs create mode 100644 InheritanceTest/Properties/Resources.Designer.cs create mode 100644 InheritanceTest/Properties/Resources.resx create mode 100644 InheritanceTest/Properties/Settings.Designer.cs create mode 100644 InheritanceTest/Properties/Settings.settings create mode 100644 InheritanceTest1/App.config create mode 100644 InheritanceTest1/Form2.Designer.cs create mode 100644 InheritanceTest1/Form2.cs create mode 100644 InheritanceTest1/Form2.resx create mode 100644 InheritanceTest1/InheritanceTest1.csproj create mode 100644 InheritanceTest1/Program.cs create mode 100644 InheritanceTest1/Properties/AssemblyInfo.cs create mode 100644 InheritanceTest1/Properties/Resources.Designer.cs create mode 100644 InheritanceTest1/Properties/Resources.resx create mode 100644 InheritanceTest1/Properties/Settings.Designer.cs create mode 100644 InheritanceTest1/Properties/Settings.settings diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a5f80a --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ + +#Ignore thumbnails created by Windows +Thumbs.db +#Ignore files built by Visual Studio +*.obj +*.exe +*.pdb +*.user +*.aps +*.pch +*.vspscc +*_i.c +*_p.c +*.ncb +*.suo +*.tlb +*.tlh +*.bak +*.cache +*.ilk +*.log +[Bb]in +[Dd]ebug*/ +*.lib +*.sbr +obj/ +[Rr]elease*/ +_ReSharper*/ +[Tt]est[Rr]esult* +.vs/ +#Nuget packages folder +packages/ diff --git a/BaseFormLibrary.sln b/BaseFormLibrary.sln new file mode 100644 index 0000000..41e4d08 --- /dev/null +++ b/BaseFormLibrary.sln @@ -0,0 +1,37 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28010.2036 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BaseFormLibrary", "BaseFormLibrary\BaseFormLibrary.csproj", "{4D05FD1F-ADB5-468C-8092-6F986B3B5853}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InheritanceTest", "InheritanceTest\InheritanceTest.csproj", "{7D0417BA-ADE1-4818-85B8-731A4BF32D2D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InheritanceTest1", "InheritanceTest1\InheritanceTest1.csproj", "{A98EF0F3-FE00-4C1D-84AD-C8A97B54ED0E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4D05FD1F-ADB5-468C-8092-6F986B3B5853}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4D05FD1F-ADB5-468C-8092-6F986B3B5853}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4D05FD1F-ADB5-468C-8092-6F986B3B5853}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4D05FD1F-ADB5-468C-8092-6F986B3B5853}.Release|Any CPU.Build.0 = Release|Any CPU + {7D0417BA-ADE1-4818-85B8-731A4BF32D2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7D0417BA-ADE1-4818-85B8-731A4BF32D2D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7D0417BA-ADE1-4818-85B8-731A4BF32D2D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7D0417BA-ADE1-4818-85B8-731A4BF32D2D}.Release|Any CPU.Build.0 = Release|Any CPU + {A98EF0F3-FE00-4C1D-84AD-C8A97B54ED0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A98EF0F3-FE00-4C1D-84AD-C8A97B54ED0E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A98EF0F3-FE00-4C1D-84AD-C8A97B54ED0E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A98EF0F3-FE00-4C1D-84AD-C8A97B54ED0E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FFCF561F-F20B-42E5-B1AF-396F7C2A181D} + EndGlobalSection +EndGlobal diff --git a/BaseFormLibrary/App.config b/BaseFormLibrary/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/BaseFormLibrary/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/BaseFormLibrary/BaseFormLibrary.csproj b/BaseFormLibrary/BaseFormLibrary.csproj new file mode 100644 index 0000000..312068e --- /dev/null +++ b/BaseFormLibrary/BaseFormLibrary.csproj @@ -0,0 +1,86 @@ + + + + + Debug + AnyCPU + {4D05FD1F-ADB5-468C-8092-6F986B3B5853} + Library + BaseFormLibrary + BaseFormLibrary + v4.6.1 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/BaseFormLibrary/Form1.Designer.cs b/BaseFormLibrary/Form1.Designer.cs new file mode 100644 index 0000000..f96c618 --- /dev/null +++ b/BaseFormLibrary/Form1.Designer.cs @@ -0,0 +1,74 @@ +namespace BaseFormLibrary +{ + partial class Form1 + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + this.btnProtected = new System.Windows.Forms.Button(); + this.btnPrivate = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // btnProtected + // + this.btnProtected.Location = new System.Drawing.Point(13, 415); + this.btnProtected.Name = "btnProtected"; + this.btnProtected.Size = new System.Drawing.Size(168, 23); + this.btnProtected.TabIndex = 0; + this.btnProtected.Text = "Say Hello"; + this.btnProtected.UseVisualStyleBackColor = true; + this.btnProtected.Click += new System.EventHandler(this.btnProtected_Click); + // + // btnPrivate + // + this.btnPrivate.Location = new System.Drawing.Point(615, 415); + this.btnPrivate.Name = "btnPrivate"; + this.btnPrivate.Size = new System.Drawing.Size(173, 23); + this.btnPrivate.TabIndex = 1; + this.btnPrivate.Text = "Say Goodbye"; + this.btnPrivate.UseVisualStyleBackColor = true; + this.btnPrivate.Click += new System.EventHandler(this.btnPrivate_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.btnPrivate); + this.Controls.Add(this.btnProtected); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button btnPrivate; + protected System.Windows.Forms.Button btnProtected; + } +} + diff --git a/BaseFormLibrary/Form1.cs b/BaseFormLibrary/Form1.cs new file mode 100644 index 0000000..1e2ed1e --- /dev/null +++ b/BaseFormLibrary/Form1.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace BaseFormLibrary +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void btnProtected_Click(object sender, EventArgs e) + { + MessageBox.Show("Hello, World!"); + } + + private void btnPrivate_Click(object sender, EventArgs e) + { + MessageBox.Show("Goodbye!"); + } + } +} diff --git a/BaseFormLibrary/Form1.resx b/BaseFormLibrary/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/BaseFormLibrary/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/BaseFormLibrary/Program.cs b/BaseFormLibrary/Program.cs new file mode 100644 index 0000000..76f325c --- /dev/null +++ b/BaseFormLibrary/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace BaseFormLibrary +{ + static class Program + { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/BaseFormLibrary/Properties/AssemblyInfo.cs b/BaseFormLibrary/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b2c37e3 --- /dev/null +++ b/BaseFormLibrary/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("BaseFormLibrary")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("BaseFormLibrary")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("4d05fd1f-adb5-468c-8092-6f986b3b5853")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/BaseFormLibrary/Properties/Resources.Designer.cs b/BaseFormLibrary/Properties/Resources.Designer.cs new file mode 100644 index 0000000..34c7c83 --- /dev/null +++ b/BaseFormLibrary/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion: 4.0.30319.42000 +// +// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn +// der Code neu generiert wird. +// +//------------------------------------------------------------------------------ + +namespace BaseFormLibrary.Properties +{ + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse + // über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BaseFormLibrary.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/BaseFormLibrary/Properties/Resources.resx b/BaseFormLibrary/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/BaseFormLibrary/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/BaseFormLibrary/Properties/Settings.Designer.cs b/BaseFormLibrary/Properties/Settings.Designer.cs new file mode 100644 index 0000000..e330065 --- /dev/null +++ b/BaseFormLibrary/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BaseFormLibrary.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/BaseFormLibrary/Properties/Settings.settings b/BaseFormLibrary/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/BaseFormLibrary/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/InheritanceTest/App.config b/InheritanceTest/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/InheritanceTest/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/InheritanceTest/Form1.Designer.cs b/InheritanceTest/Form1.Designer.cs new file mode 100644 index 0000000..0554e91 --- /dev/null +++ b/InheritanceTest/Form1.Designer.cs @@ -0,0 +1,40 @@ +namespace InheritanceTest +{ + partial class Form1 + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion + } +} + diff --git a/InheritanceTest/Form1.cs b/InheritanceTest/Form1.cs new file mode 100644 index 0000000..cf7e8e5 --- /dev/null +++ b/InheritanceTest/Form1.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace InheritanceTest +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} diff --git a/InheritanceTest/Form2.Designer.cs b/InheritanceTest/Form2.Designer.cs new file mode 100644 index 0000000..af1ad63 --- /dev/null +++ b/InheritanceTest/Form2.Designer.cs @@ -0,0 +1,50 @@ +namespace InheritanceTest +{ + partial class Form2 + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + this.SuspendLayout(); + // + // btnProtected + // + this.btnProtected.Location = new System.Drawing.Point(13, 267); + this.btnProtected.Size = new System.Drawing.Size(272, 171); + this.btnProtected.Text = "Say Hello again"; + // + // Form2 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.ClientSize = new System.Drawing.Size(800, 450); + this.Name = "Form2"; + this.ResumeLayout(false); + + } + + #endregion + } +} diff --git a/InheritanceTest/Form2.cs b/InheritanceTest/Form2.cs new file mode 100644 index 0000000..2fbaab7 --- /dev/null +++ b/InheritanceTest/Form2.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace InheritanceTest +{ + public partial class Form2 : BaseFormLibrary.Form1 + { + public Form2() + { + InitializeComponent(); + } + } +} diff --git a/InheritanceTest/Form2.resx b/InheritanceTest/Form2.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/InheritanceTest/Form2.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/InheritanceTest/InheritanceTest.csproj b/InheritanceTest/InheritanceTest.csproj new file mode 100644 index 0000000..5e648ef --- /dev/null +++ b/InheritanceTest/InheritanceTest.csproj @@ -0,0 +1,95 @@ + + + + + Debug + AnyCPU + {7D0417BA-ADE1-4818-85B8-731A4BF32D2D} + WinExe + InheritanceTest + InheritanceTest + v4.6.1 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + Form + + + Form2.cs + + + + + Form2.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + {4D05FD1F-ADB5-468C-8092-6F986B3B5853} + BaseFormLibrary + + + + \ No newline at end of file diff --git a/InheritanceTest/Program.cs b/InheritanceTest/Program.cs new file mode 100644 index 0000000..5abddb2 --- /dev/null +++ b/InheritanceTest/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace InheritanceTest +{ + static class Program + { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/InheritanceTest/Properties/AssemblyInfo.cs b/InheritanceTest/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..566a6db --- /dev/null +++ b/InheritanceTest/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("InheritanceTest")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("InheritanceTest")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("7d0417ba-ade1-4818-85b8-731a4bf32d2d")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/InheritanceTest/Properties/Resources.Designer.cs b/InheritanceTest/Properties/Resources.Designer.cs new file mode 100644 index 0000000..dab4d0b --- /dev/null +++ b/InheritanceTest/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion: 4.0.30319.42000 +// +// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn +// der Code neu generiert wird. +// +//------------------------------------------------------------------------------ + +namespace InheritanceTest.Properties +{ + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse + // über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("InheritanceTest.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/InheritanceTest/Properties/Resources.resx b/InheritanceTest/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/InheritanceTest/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/InheritanceTest/Properties/Settings.Designer.cs b/InheritanceTest/Properties/Settings.Designer.cs new file mode 100644 index 0000000..9b710e3 --- /dev/null +++ b/InheritanceTest/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace InheritanceTest.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/InheritanceTest/Properties/Settings.settings b/InheritanceTest/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/InheritanceTest/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/InheritanceTest1/App.config b/InheritanceTest1/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/InheritanceTest1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/InheritanceTest1/Form2.Designer.cs b/InheritanceTest1/Form2.Designer.cs new file mode 100644 index 0000000..e2efcd9 --- /dev/null +++ b/InheritanceTest1/Form2.Designer.cs @@ -0,0 +1,49 @@ +namespace InheritanceTest1 +{ + partial class Form2 + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + this.SuspendLayout(); + // + // btnProtected + // + this.btnProtected.Location = new System.Drawing.Point(13, 315); + this.btnProtected.Size = new System.Drawing.Size(168, 123); + // + // Form2 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.ClientSize = new System.Drawing.Size(800, 450); + this.Name = "Form2"; + this.ResumeLayout(false); + + } + + #endregion + } +} diff --git a/InheritanceTest1/Form2.cs b/InheritanceTest1/Form2.cs new file mode 100644 index 0000000..caba298 --- /dev/null +++ b/InheritanceTest1/Form2.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace InheritanceTest1 +{ + public partial class Form2 : BaseFormLibrary.Form1 + { + public Form2() + { + InitializeComponent(); + } + } +} diff --git a/InheritanceTest1/Form2.resx b/InheritanceTest1/Form2.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/InheritanceTest1/Form2.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/InheritanceTest1/InheritanceTest1.csproj b/InheritanceTest1/InheritanceTest1.csproj new file mode 100644 index 0000000..1eb83ed --- /dev/null +++ b/InheritanceTest1/InheritanceTest1.csproj @@ -0,0 +1,119 @@ + + + + + Debug + AnyCPU + {A98EF0F3-FE00-4C1D-84AD-C8A97B54ED0E} + WinExe + InheritanceTest1 + InheritanceTest1 + v4.6.1 + 512 + true + true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + InheritanceTest1.Program + + + + + + + + + + + + + + + + + Form + + + Form2.cs + + + + + Form2.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + {4D05FD1F-ADB5-468C-8092-6F986B3B5853} + BaseFormLibrary + + + + + False + Microsoft .NET Framework 4.6.1 %28x86 und x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + + \ No newline at end of file diff --git a/InheritanceTest1/Program.cs b/InheritanceTest1/Program.cs new file mode 100644 index 0000000..b14f497 --- /dev/null +++ b/InheritanceTest1/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace InheritanceTest1 +{ + static class Program + { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form2()); + } + } +} diff --git a/InheritanceTest1/Properties/AssemblyInfo.cs b/InheritanceTest1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..579d21e --- /dev/null +++ b/InheritanceTest1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("InheritanceTest1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("InheritanceTest1")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("a98ef0f3-fe00-4c1d-84ad-c8a97b54ed0e")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/InheritanceTest1/Properties/Resources.Designer.cs b/InheritanceTest1/Properties/Resources.Designer.cs new file mode 100644 index 0000000..573bf79 --- /dev/null +++ b/InheritanceTest1/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion: 4.0.30319.42000 +// +// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn +// der Code neu generiert wird. +// +//------------------------------------------------------------------------------ + +namespace InheritanceTest1.Properties +{ + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse + // über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("InheritanceTest1.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/InheritanceTest1/Properties/Resources.resx b/InheritanceTest1/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/InheritanceTest1/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/InheritanceTest1/Properties/Settings.Designer.cs b/InheritanceTest1/Properties/Settings.Designer.cs new file mode 100644 index 0000000..b3dbbde --- /dev/null +++ b/InheritanceTest1/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace InheritanceTest1.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/InheritanceTest1/Properties/Settings.settings b/InheritanceTest1/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/InheritanceTest1/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + +