commit 7b1890eaaa507a2de2157ce98cd319a8599f8b25 Author: Eugen Höglinger Date: Wed Feb 26 15:14:38 2020 +0100 Projekt neu angelegt. 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/Daten/Construction.png b/Daten/Construction.png new file mode 100644 index 0000000..0914ebc Binary files /dev/null and b/Daten/Construction.png differ diff --git a/Daten/Email.png b/Daten/Email.png new file mode 100644 index 0000000..6224ae0 Binary files /dev/null and b/Daten/Email.png differ diff --git a/Daten/Error.png b/Daten/Error.png new file mode 100644 index 0000000..500eb96 Binary files /dev/null and b/Daten/Error.png differ diff --git a/Daten/Information.png b/Daten/Information.png new file mode 100644 index 0000000..6c532b2 Binary files /dev/null and b/Daten/Information.png differ diff --git a/Daten/Instruction.png b/Daten/Instruction.png new file mode 100644 index 0000000..844188f Binary files /dev/null and b/Daten/Instruction.png differ diff --git a/Daten/Question.png b/Daten/Question.png new file mode 100644 index 0000000..edfb8bd Binary files /dev/null and b/Daten/Question.png differ diff --git a/Daten/Telephone.png b/Daten/Telephone.png new file mode 100644 index 0000000..31327bb Binary files /dev/null and b/Daten/Telephone.png differ diff --git a/Daten/Tips.png b/Daten/Tips.png new file mode 100644 index 0000000..a42695d Binary files /dev/null and b/Daten/Tips.png differ diff --git a/Daten/Warning.png b/Daten/Warning.png new file mode 100644 index 0000000..dd4990d Binary files /dev/null and b/Daten/Warning.png differ diff --git a/Test_EmbededPicture.sln b/Test_EmbededPicture.sln new file mode 100644 index 0000000..16bfe38 --- /dev/null +++ b/Test_EmbededPicture.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28010.2026 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_EmbededPicture", "Test_EmbededPicture\Test_EmbededPicture.csproj", "{3FAF3BF6-D67F-4A43-B50A-7E97C6927EA2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3FAF3BF6-D67F-4A43-B50A-7E97C6927EA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3FAF3BF6-D67F-4A43-B50A-7E97C6927EA2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3FAF3BF6-D67F-4A43-B50A-7E97C6927EA2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3FAF3BF6-D67F-4A43-B50A-7E97C6927EA2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8C51C7A3-FFD7-4A86-BC95-8476DFAE7D6C} + EndGlobalSection +EndGlobal diff --git a/Test_EmbededPicture/App.config b/Test_EmbededPicture/App.config new file mode 100644 index 0000000..74ade9d --- /dev/null +++ b/Test_EmbededPicture/App.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/Test_EmbededPicture/Form1.Designer.cs b/Test_EmbededPicture/Form1.Designer.cs new file mode 100644 index 0000000..72abba0 --- /dev/null +++ b/Test_EmbededPicture/Form1.Designer.cs @@ -0,0 +1,61 @@ +namespace Test_EmbededPicture +{ + 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.pictureBoxIcon = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxIcon)).BeginInit(); + this.SuspendLayout(); + // + // pictureBoxIcon + // + this.pictureBoxIcon.Location = new System.Drawing.Point(13, 13); + this.pictureBoxIcon.Name = "pictureBoxIcon"; + this.pictureBoxIcon.Size = new System.Drawing.Size(32, 32); + this.pictureBoxIcon.TabIndex = 0; + this.pictureBoxIcon.TabStop = false; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(392, 169); + this.Controls.Add(this.pictureBoxIcon); + this.Name = "Form1"; + this.Text = "Form1"; + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxIcon)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBoxIcon; + } +} + diff --git a/Test_EmbededPicture/Form1.cs b/Test_EmbededPicture/Form1.cs new file mode 100644 index 0000000..159ec97 --- /dev/null +++ b/Test_EmbededPicture/Form1.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Reflection; +using System.Resources; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Test_EmbededPicture +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + + pictureBoxIcon.Image = Properties.Resources.Information; + } + } +} diff --git a/Test_EmbededPicture/Form1.resx b/Test_EmbededPicture/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Test_EmbededPicture/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/Test_EmbededPicture/Program.cs b/Test_EmbededPicture/Program.cs new file mode 100644 index 0000000..6ac0e6d --- /dev/null +++ b/Test_EmbededPicture/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Test_EmbededPicture +{ + 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/Test_EmbededPicture/Properties/AssemblyInfo.cs b/Test_EmbededPicture/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..195ff8e --- /dev/null +++ b/Test_EmbededPicture/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("Test_EmbededPicture")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Test_EmbededPicture")] +[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("3faf3bf6-d67f-4a43-b50a-7e97c6927ea2")] + +// 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/Test_EmbededPicture/Properties/Resources.Designer.cs b/Test_EmbededPicture/Properties/Resources.Designer.cs new file mode 100644 index 0000000..847269c --- /dev/null +++ b/Test_EmbededPicture/Properties/Resources.Designer.cs @@ -0,0 +1,153 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace Test_EmbededPicture.Properties { + using System; + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert + // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] + [global::System.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 (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test_EmbededPicture.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, 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; + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Construction { + get { + object obj = ResourceManager.GetObject("Construction", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Email { + get { + object obj = ResourceManager.GetObject("Email", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Error { + get { + object obj = ResourceManager.GetObject("Error", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Information { + get { + object obj = ResourceManager.GetObject("Information", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Instruction { + get { + object obj = ResourceManager.GetObject("Instruction", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Question { + get { + object obj = ResourceManager.GetObject("Question", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Telephone { + get { + object obj = ResourceManager.GetObject("Telephone", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Tips { + get { + object obj = ResourceManager.GetObject("Tips", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Warning { + get { + object obj = ResourceManager.GetObject("Warning", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/Test_EmbededPicture/Properties/Resources.resx b/Test_EmbededPicture/Properties/Resources.resx new file mode 100644 index 0000000..c965568 --- /dev/null +++ b/Test_EmbededPicture/Properties/Resources.resx @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + ..\Resources\Construction.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Email.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Error.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Information.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Instruction.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Question.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Telephone.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Tips.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Warning.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/Test_EmbededPicture/Properties/Settings.Designer.cs b/Test_EmbededPicture/Properties/Settings.Designer.cs new file mode 100644 index 0000000..931da3b --- /dev/null +++ b/Test_EmbededPicture/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace Test_EmbededPicture.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.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/Test_EmbededPicture/Properties/Settings.settings b/Test_EmbededPicture/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Test_EmbededPicture/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Test_EmbededPicture/Resources/Construction.png b/Test_EmbededPicture/Resources/Construction.png new file mode 100644 index 0000000..0914ebc Binary files /dev/null and b/Test_EmbededPicture/Resources/Construction.png differ diff --git a/Test_EmbededPicture/Resources/Email.png b/Test_EmbededPicture/Resources/Email.png new file mode 100644 index 0000000..6224ae0 Binary files /dev/null and b/Test_EmbededPicture/Resources/Email.png differ diff --git a/Test_EmbededPicture/Resources/Error.png b/Test_EmbededPicture/Resources/Error.png new file mode 100644 index 0000000..500eb96 Binary files /dev/null and b/Test_EmbededPicture/Resources/Error.png differ diff --git a/Test_EmbededPicture/Resources/Information.png b/Test_EmbededPicture/Resources/Information.png new file mode 100644 index 0000000..6c532b2 Binary files /dev/null and b/Test_EmbededPicture/Resources/Information.png differ diff --git a/Test_EmbededPicture/Resources/Instruction.png b/Test_EmbededPicture/Resources/Instruction.png new file mode 100644 index 0000000..844188f Binary files /dev/null and b/Test_EmbededPicture/Resources/Instruction.png differ diff --git a/Test_EmbededPicture/Resources/Question.png b/Test_EmbededPicture/Resources/Question.png new file mode 100644 index 0000000..edfb8bd Binary files /dev/null and b/Test_EmbededPicture/Resources/Question.png differ diff --git a/Test_EmbededPicture/Resources/Telephone.png b/Test_EmbededPicture/Resources/Telephone.png new file mode 100644 index 0000000..31327bb Binary files /dev/null and b/Test_EmbededPicture/Resources/Telephone.png differ diff --git a/Test_EmbededPicture/Resources/Tips.png b/Test_EmbededPicture/Resources/Tips.png new file mode 100644 index 0000000..a42695d Binary files /dev/null and b/Test_EmbededPicture/Resources/Tips.png differ diff --git a/Test_EmbededPicture/Resources/Warning.png b/Test_EmbededPicture/Resources/Warning.png new file mode 100644 index 0000000..dd4990d Binary files /dev/null and b/Test_EmbededPicture/Resources/Warning.png differ diff --git a/Test_EmbededPicture/Test_EmbededPicture.csproj b/Test_EmbededPicture/Test_EmbededPicture.csproj new file mode 100644 index 0000000..fd3b2d8 --- /dev/null +++ b/Test_EmbededPicture/Test_EmbededPicture.csproj @@ -0,0 +1,112 @@ + + + + + Debug + AnyCPU + {3FAF3BF6-D67F-4A43-B50A-7E97C6927EA2} + WinExe + Test_EmbededPicture + Test_EmbededPicture + v4.0 + 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 + True + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file