From 527504e587d5d2512762e3a21a4d79b4a7baf63c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eugen=20H=C3=B6glinger?= Date: Wed, 26 Feb 2020 15:23:13 +0100 Subject: [PATCH] Projekt neu angelegt. --- .gitignore | 32 +++++ CustomMessageBox/Class1.cs | 58 +++++++++ CustomMessageBox/CustomMessageBox.csproj | 54 ++++++++ CustomMessageBox/Properties/AssemblyInfo.cs | 36 ++++++ OwnMessageBox/OwnMessageBox.Designer.cs | 112 ++++++++++++++++ OwnMessageBox/OwnMessageBox.cs | 81 ++++++++++++ OwnMessageBox/OwnMessageBox.csproj | 60 +++++++++ OwnMessageBox/OwnMessageBox.resx | 120 ++++++++++++++++++ OwnMessageBox/Properties/AssemblyInfo.cs | 36 ++++++ Test_OwnMessageBox.sln | 37 ++++++ Test_OwnMessageBox/App.config | 6 + Test_OwnMessageBox/Form1.Designer.cs | 40 ++++++ Test_OwnMessageBox/Form1.cs | 24 ++++ Test_OwnMessageBox/Program.cs | 22 ++++ Test_OwnMessageBox/Properties/AssemblyInfo.cs | 36 ++++++ .../Properties/Resources.Designer.cs | 71 +++++++++++ Test_OwnMessageBox/Properties/Resources.resx | 117 +++++++++++++++++ .../Properties/Settings.Designer.cs | 30 +++++ .../Properties/Settings.settings | 7 + Test_OwnMessageBox/Test_OwnMessageBox.csproj | 86 +++++++++++++ 20 files changed, 1065 insertions(+) create mode 100644 .gitignore create mode 100644 CustomMessageBox/Class1.cs create mode 100644 CustomMessageBox/CustomMessageBox.csproj create mode 100644 CustomMessageBox/Properties/AssemblyInfo.cs create mode 100644 OwnMessageBox/OwnMessageBox.Designer.cs create mode 100644 OwnMessageBox/OwnMessageBox.cs create mode 100644 OwnMessageBox/OwnMessageBox.csproj create mode 100644 OwnMessageBox/OwnMessageBox.resx create mode 100644 OwnMessageBox/Properties/AssemblyInfo.cs create mode 100644 Test_OwnMessageBox.sln create mode 100644 Test_OwnMessageBox/App.config create mode 100644 Test_OwnMessageBox/Form1.Designer.cs create mode 100644 Test_OwnMessageBox/Form1.cs create mode 100644 Test_OwnMessageBox/Program.cs create mode 100644 Test_OwnMessageBox/Properties/AssemblyInfo.cs create mode 100644 Test_OwnMessageBox/Properties/Resources.Designer.cs create mode 100644 Test_OwnMessageBox/Properties/Resources.resx create mode 100644 Test_OwnMessageBox/Properties/Settings.Designer.cs create mode 100644 Test_OwnMessageBox/Properties/Settings.settings create mode 100644 Test_OwnMessageBox/Test_OwnMessageBox.csproj 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/CustomMessageBox/Class1.cs b/CustomMessageBox/Class1.cs new file mode 100644 index 0000000..a55bbc8 --- /dev/null +++ b/CustomMessageBox/Class1.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace CustomMessageBox +{ + public static class CustomMessageBox + { + private string text, title; + private MessageBoxButtons buttons; + private System.Drawing.Image img; + private DialogResult result; + private Form form; + + public static DialogResult Show(string mText, string mTitle, MessageBoxButtons mButtons, System.Drawing.Image mImg, Form mForm) + { + text = mText; + title = mTitle; + buttons = mButtons; + img = mImg; + form = mForm; + form.ShowDialog(); + return result; + } + + public static void GetMessage(Control mTextControl, Control mTitleControl, Control mImgControl, Control btYes, Control btNo) + { + mTextControl.Text = text; + mTitleControl.Text = title; + if (buttons != MessageBoxButtons.YesNo) + { + btYes.Visible = false; + btNo.Text = "OK"; + } + btYes.Click += new EventHandler(Yes); + btNo.Click += new EventHandler(No); + mImgControl.BackgroundImageLayout = ImageLayout.Center; + mImgControl.BackgroundImage = img; + result = DialogResult.Abort; + } + + private static void Yes(object sender, EventArgs e) + { + result = DialogResult.Yes; + form.Close(); + } + + private static void No(object sender, EventArgs e) + { + result = DialogResult.No; + form.Close(); + } + + } +} diff --git a/CustomMessageBox/CustomMessageBox.csproj b/CustomMessageBox/CustomMessageBox.csproj new file mode 100644 index 0000000..d1182ab --- /dev/null +++ b/CustomMessageBox/CustomMessageBox.csproj @@ -0,0 +1,54 @@ + + + + + Debug + AnyCPU + {612B1017-0A60-401F-98D9-AC5C5AAA032E} + Library + Properties + CustomMessageBox + CustomMessageBox + v4.6.1 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + {4b928b03-9439-4e33-9ac1-5ef0fa2c4587} + OwnMessageBox + + + + \ No newline at end of file diff --git a/CustomMessageBox/Properties/AssemblyInfo.cs b/CustomMessageBox/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f98ece0 --- /dev/null +++ b/CustomMessageBox/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("CustomMessageBox")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CustomMessageBox")] +[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("612b1017-0a60-401f-98d9-ac5c5aaa032e")] + +// 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, +// indem Sie "*" wie unten gezeigt eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/OwnMessageBox/OwnMessageBox.Designer.cs b/OwnMessageBox/OwnMessageBox.Designer.cs new file mode 100644 index 0000000..10f5976 --- /dev/null +++ b/OwnMessageBox/OwnMessageBox.Designer.cs @@ -0,0 +1,112 @@ +namespace OwnMessageBoxes +{ + partial class OwnMessageBox + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.buttonYes = new System.Windows.Forms.Button(); + this.buttonNo = new System.Windows.Forms.Button(); + this.labelText = new System.Windows.Forms.Label(); + this.labelTitle = new System.Windows.Forms.Label(); + this.pictureBoxImage = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxImage)).BeginInit(); + this.SuspendLayout(); + // + // buttonYes + // + this.buttonYes.Location = new System.Drawing.Point(13, 415); + this.buttonYes.Name = "buttonYes"; + this.buttonYes.Size = new System.Drawing.Size(75, 23); + this.buttonYes.TabIndex = 0; + this.buttonYes.Text = "Yes"; + this.buttonYes.UseVisualStyleBackColor = true; + this.buttonYes.Click += new System.EventHandler(this.buttonYes_Click); + // + // buttonNo + // + this.buttonNo.Location = new System.Drawing.Point(713, 415); + this.buttonNo.Name = "buttonNo"; + this.buttonNo.Size = new System.Drawing.Size(75, 23); + this.buttonNo.TabIndex = 1; + this.buttonNo.Text = "No"; + this.buttonNo.UseVisualStyleBackColor = true; + this.buttonNo.Click += new System.EventHandler(this.buttonNo_Click); + // + // labelText + // + this.labelText.AutoSize = true; + this.labelText.Location = new System.Drawing.Point(13, 188); + this.labelText.Name = "labelText"; + this.labelText.Size = new System.Drawing.Size(28, 13); + this.labelText.TabIndex = 2; + this.labelText.Text = "Text"; + // + // labelTitle + // + this.labelTitle.AutoSize = true; + this.labelTitle.Location = new System.Drawing.Point(16, 13); + this.labelTitle.Name = "labelTitle"; + this.labelTitle.Size = new System.Drawing.Size(27, 13); + this.labelTitle.TabIndex = 3; + this.labelTitle.Text = "Title"; + // + // pictureBoxImage + // + this.pictureBoxImage.Location = new System.Drawing.Point(432, 142); + this.pictureBoxImage.Name = "pictureBoxImage"; + this.pictureBoxImage.Size = new System.Drawing.Size(100, 50); + this.pictureBoxImage.TabIndex = 4; + this.pictureBoxImage.TabStop = false; + // + // OwnMessageBox + // + 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.pictureBoxImage); + this.Controls.Add(this.labelTitle); + this.Controls.Add(this.labelText); + this.Controls.Add(this.buttonNo); + this.Controls.Add(this.buttonYes); + this.Name = "OwnMessageBox"; + this.Text = "OwnMessageBox"; + this.Load += new System.EventHandler(this.OwnMessageBox_Load); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxImage)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button buttonYes; + private System.Windows.Forms.Button buttonNo; + private System.Windows.Forms.Label labelText; + private System.Windows.Forms.Label labelTitle; + private System.Windows.Forms.PictureBox pictureBoxImage; + } +} \ No newline at end of file diff --git a/OwnMessageBox/OwnMessageBox.cs b/OwnMessageBox/OwnMessageBox.cs new file mode 100644 index 0000000..7815598 --- /dev/null +++ b/OwnMessageBox/OwnMessageBox.cs @@ -0,0 +1,81 @@ +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 OwnMessageBoxes +{ + public partial class OwnMessageBox : Form + { + private static string text, title; + private static MessageBoxButtons buttons; + private static System.Drawing.Image img; + private static DialogResult result; + private static Form form; + + private OwnMessageBox() + { + InitializeComponent(); + } + + private void OwnMessageBox_Load(object sender, EventArgs e) + { + OwnMessageBox.GetMessage(labelText, labelTitle, pictureBoxImage, buttonYes, buttonNo); + } + + private void buttonYes_Click(object sender, EventArgs e) + { + + } + + private void buttonNo_Click(object sender, EventArgs e) + { + + } + + public static DialogResult Show(string mText, string mTitle, MessageBoxButtons mButtons, System.Drawing.Image mImg, Form mForm) + { + text = mText; + title = mTitle; + buttons = mButtons; + img = mImg; + form = mForm; + form.ShowDialog(); + return result; + } + + public static void GetMessage(Control mTextControl, Control mTitleControl, Control mImgControl, Control btYes, Control btNo) + { + mTextControl.Text = text; + mTitleControl.Text = title; + if (buttons != MessageBoxButtons.YesNo) + { + btYes.Visible = false; + btNo.Text = "OK"; + } + btYes.Click += new EventHandler(Yes); + btNo.Click += new EventHandler(No); + mImgControl.BackgroundImageLayout = ImageLayout.Center; + mImgControl.BackgroundImage = img; + result = DialogResult.Abort; + } + + private static void Yes(object sender, EventArgs e) + { + result = DialogResult.Yes; + form.Close(); + } + + private static void No(object sender, EventArgs e) + { + result = DialogResult.No; + form.Close(); + } + + } +} diff --git a/OwnMessageBox/OwnMessageBox.csproj b/OwnMessageBox/OwnMessageBox.csproj new file mode 100644 index 0000000..e2a6779 --- /dev/null +++ b/OwnMessageBox/OwnMessageBox.csproj @@ -0,0 +1,60 @@ + + + + + Debug + AnyCPU + {4B928B03-9439-4E33-9AC1-5EF0FA2C4587} + Library + Properties + OwnMessageBox + OwnMessageBox + v4.6.1 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + Form + + + OwnMessageBox.cs + + + + + + OwnMessageBox.cs + + + + \ No newline at end of file diff --git a/OwnMessageBox/OwnMessageBox.resx b/OwnMessageBox/OwnMessageBox.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/OwnMessageBox/OwnMessageBox.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/OwnMessageBox/Properties/AssemblyInfo.cs b/OwnMessageBox/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..8180e31 --- /dev/null +++ b/OwnMessageBox/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("OwnMessageBox")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("OwnMessageBox")] +[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("4b928b03-9439-4e33-9ac1-5ef0fa2c4587")] + +// 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, +// indem Sie "*" wie unten gezeigt eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Test_OwnMessageBox.sln b/Test_OwnMessageBox.sln new file mode 100644 index 0000000..1667b23 --- /dev/null +++ b/Test_OwnMessageBox.sln @@ -0,0 +1,37 @@ + +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_OwnMessageBox", "Test_OwnMessageBox\Test_OwnMessageBox.csproj", "{2F7B5D32-1A85-4617-9872-626576F89628}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OwnMessageBox", "OwnMessageBox\OwnMessageBox.csproj", "{4B928B03-9439-4E33-9AC1-5EF0FA2C4587}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomMessageBox", "CustomMessageBox\CustomMessageBox.csproj", "{612B1017-0A60-401F-98D9-AC5C5AAA032E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2F7B5D32-1A85-4617-9872-626576F89628}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2F7B5D32-1A85-4617-9872-626576F89628}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2F7B5D32-1A85-4617-9872-626576F89628}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2F7B5D32-1A85-4617-9872-626576F89628}.Release|Any CPU.Build.0 = Release|Any CPU + {4B928B03-9439-4E33-9AC1-5EF0FA2C4587}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4B928B03-9439-4E33-9AC1-5EF0FA2C4587}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4B928B03-9439-4E33-9AC1-5EF0FA2C4587}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4B928B03-9439-4E33-9AC1-5EF0FA2C4587}.Release|Any CPU.Build.0 = Release|Any CPU + {612B1017-0A60-401F-98D9-AC5C5AAA032E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {612B1017-0A60-401F-98D9-AC5C5AAA032E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {612B1017-0A60-401F-98D9-AC5C5AAA032E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {612B1017-0A60-401F-98D9-AC5C5AAA032E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5BDB2D55-C181-4977-8CAC-2E3D4369C680} + EndGlobalSection +EndGlobal diff --git a/Test_OwnMessageBox/App.config b/Test_OwnMessageBox/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/Test_OwnMessageBox/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Test_OwnMessageBox/Form1.Designer.cs b/Test_OwnMessageBox/Form1.Designer.cs new file mode 100644 index 0000000..45a7b59 --- /dev/null +++ b/Test_OwnMessageBox/Form1.Designer.cs @@ -0,0 +1,40 @@ +namespace Test_OwnMessageBox +{ + 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/Test_OwnMessageBox/Form1.cs b/Test_OwnMessageBox/Form1.cs new file mode 100644 index 0000000..0876d2c --- /dev/null +++ b/Test_OwnMessageBox/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.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using OwnMessageBoxes; + +namespace Test_OwnMessageBox +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + + OwnMessageBox omb = new OwnMessageBox(); + OwnMessageBox.Show("Mitteilungstext", "Titel", MessageBoxButtons.OK, SystemIcons.Information, new OwnMessageBox()); + } + } +} diff --git a/Test_OwnMessageBox/Program.cs b/Test_OwnMessageBox/Program.cs new file mode 100644 index 0000000..2f455a3 --- /dev/null +++ b/Test_OwnMessageBox/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_OwnMessageBox +{ + 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_OwnMessageBox/Properties/AssemblyInfo.cs b/Test_OwnMessageBox/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..bad8043 --- /dev/null +++ b/Test_OwnMessageBox/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_OwnMessageBox")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Test_OwnMessageBox")] +[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("2f7b5d32-1a85-4617-9872-626576f89628")] + +// 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_OwnMessageBox/Properties/Resources.Designer.cs b/Test_OwnMessageBox/Properties/Resources.Designer.cs new file mode 100644 index 0000000..b86d2a7 --- /dev/null +++ b/Test_OwnMessageBox/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 Test_OwnMessageBox.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("Test_OwnMessageBox.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/Test_OwnMessageBox/Properties/Resources.resx b/Test_OwnMessageBox/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Test_OwnMessageBox/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/Test_OwnMessageBox/Properties/Settings.Designer.cs b/Test_OwnMessageBox/Properties/Settings.Designer.cs new file mode 100644 index 0000000..b008854 --- /dev/null +++ b/Test_OwnMessageBox/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 Test_OwnMessageBox.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/Test_OwnMessageBox/Properties/Settings.settings b/Test_OwnMessageBox/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Test_OwnMessageBox/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Test_OwnMessageBox/Test_OwnMessageBox.csproj b/Test_OwnMessageBox/Test_OwnMessageBox.csproj new file mode 100644 index 0000000..2cf8536 --- /dev/null +++ b/Test_OwnMessageBox/Test_OwnMessageBox.csproj @@ -0,0 +1,86 @@ + + + + + Debug + AnyCPU + {2F7B5D32-1A85-4617-9872-626576F89628} + WinExe + Test_OwnMessageBox + Test_OwnMessageBox + 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 + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + {612b1017-0a60-401f-98d9-ac5c5aaa032e} + CustomMessageBox + + + + \ No newline at end of file