From 25abecb8f759d041a9bdc90a0502566613343a72 Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Thu, 6 Sep 2018 20:25:19 +0000 Subject: [PATCH] MqttColoerChange hack init --- MqttColorSetter.sln | 43 ++++ MqttColorSetter/App.config | 6 + MqttColorSetter/Form1.Designer.cs | 201 ++++++++++++++++++ MqttColorSetter/Form1.cs | 58 +++++ MqttColorSetter/Form1.resx | 120 +++++++++++ MqttColorSetter/MqttColorSetter.csproj | 96 +++++++++ MqttColorSetter/Program.cs | 19 ++ MqttColorSetter/Properties/AssemblyInfo.cs | 36 ++++ .../Properties/Resources.Designer.cs | 62 ++++++ MqttColorSetter/Properties/Resources.resx | 117 ++++++++++ .../Properties/Settings.Designer.cs | 26 +++ MqttColorSetter/Properties/Settings.settings | 7 + 12 files changed, 791 insertions(+) create mode 100644 MqttColorSetter.sln create mode 100644 MqttColorSetter/App.config create mode 100644 MqttColorSetter/Form1.Designer.cs create mode 100644 MqttColorSetter/Form1.cs create mode 100644 MqttColorSetter/Form1.resx create mode 100644 MqttColorSetter/MqttColorSetter.csproj create mode 100644 MqttColorSetter/Program.cs create mode 100644 MqttColorSetter/Properties/AssemblyInfo.cs create mode 100644 MqttColorSetter/Properties/Resources.Designer.cs create mode 100644 MqttColorSetter/Properties/Resources.resx create mode 100644 MqttColorSetter/Properties/Settings.Designer.cs create mode 100644 MqttColorSetter/Properties/Settings.settings diff --git a/MqttColorSetter.sln b/MqttColorSetter.sln new file mode 100644 index 0000000..8cc5de0 --- /dev/null +++ b/MqttColorSetter.sln @@ -0,0 +1,43 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27703.2026 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MqttColorSetter", "MqttColorSetter\MqttColorSetter.csproj", "{ABA53690-F674-4B1A-9B3D-F8AB9EB9DB8B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utils-IoT", "..\Utils\IoT\Utils-IoT.csproj", "{B870E4D5-6806-4A0B-B233-8907EEDC5AFC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConnectorDataMqtt", "..\Utils\IoT\Connector\Data\Mqtt\ConnectorDataMqtt.csproj", "{EE6C8F68-ED46-4C1C-ABDD-CFCDF75104F2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "M2Mqtt_4.7.1", "..\Librarys\mqtt\M2Mqtt\M2Mqtt_4.7.1.csproj", "{A11AEF5A-B246-4FE8-8330-06DB73CC8074}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {ABA53690-F674-4B1A-9B3D-F8AB9EB9DB8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ABA53690-F674-4B1A-9B3D-F8AB9EB9DB8B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ABA53690-F674-4B1A-9B3D-F8AB9EB9DB8B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ABA53690-F674-4B1A-9B3D-F8AB9EB9DB8B}.Release|Any CPU.Build.0 = Release|Any CPU + {B870E4D5-6806-4A0B-B233-8907EEDC5AFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B870E4D5-6806-4A0B-B233-8907EEDC5AFC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B870E4D5-6806-4A0B-B233-8907EEDC5AFC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B870E4D5-6806-4A0B-B233-8907EEDC5AFC}.Release|Any CPU.Build.0 = Release|Any CPU + {EE6C8F68-ED46-4C1C-ABDD-CFCDF75104F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EE6C8F68-ED46-4C1C-ABDD-CFCDF75104F2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EE6C8F68-ED46-4C1C-ABDD-CFCDF75104F2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EE6C8F68-ED46-4C1C-ABDD-CFCDF75104F2}.Release|Any CPU.Build.0 = Release|Any CPU + {A11AEF5A-B246-4FE8-8330-06DB73CC8074}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A11AEF5A-B246-4FE8-8330-06DB73CC8074}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A11AEF5A-B246-4FE8-8330-06DB73CC8074}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A11AEF5A-B246-4FE8-8330-06DB73CC8074}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {79D91BAB-C6C1-4CA6-8538-560F923D7918} + EndGlobalSection +EndGlobal diff --git a/MqttColorSetter/App.config b/MqttColorSetter/App.config new file mode 100644 index 0000000..4bba09a --- /dev/null +++ b/MqttColorSetter/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/MqttColorSetter/Form1.Designer.cs b/MqttColorSetter/Form1.Designer.cs new file mode 100644 index 0000000..2be197e --- /dev/null +++ b/MqttColorSetter/Form1.Designer.cs @@ -0,0 +1,201 @@ +using System; + +namespace MqttColorSetter { + 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.ScrollRed = new System.Windows.Forms.TrackBar(); + this.ScrollGreen = new System.Windows.Forms.TrackBar(); + this.ScrollBlue = new System.Windows.Forms.TrackBar(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.label4 = new System.Windows.Forms.Label(); + this.ScrollNice = new System.Windows.Forms.TrackBar(); + this.label5 = new System.Windows.Forms.Label(); + this.ScrollLight = new System.Windows.Forms.TrackBar(); + ((System.ComponentModel.ISupportInitialize)(this.ScrollRed)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.ScrollGreen)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.ScrollBlue)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.ScrollNice)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.ScrollLight)).BeginInit(); + this.SuspendLayout(); + // + // ScrollRed + // + this.ScrollRed.LargeChange = 10; + this.ScrollRed.Location = new System.Drawing.Point(53, 9); + this.ScrollRed.Maximum = 255; + this.ScrollRed.Name = "ScrollRed"; + this.ScrollRed.Size = new System.Drawing.Size(735, 45); + this.ScrollRed.TabIndex = 0; + this.ScrollRed.TickStyle = System.Windows.Forms.TickStyle.Both; + this.ScrollRed.ValueChanged += new System.EventHandler(this.SliderChanged); + this.ScrollRed.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ClickScroll); + // + // ScrollGreen + // + this.ScrollGreen.Location = new System.Drawing.Point(53, 60); + this.ScrollGreen.Maximum = 255; + this.ScrollGreen.Name = "ScrollGreen"; + this.ScrollGreen.Size = new System.Drawing.Size(735, 45); + this.ScrollGreen.TabIndex = 1; + this.ScrollGreen.TickStyle = System.Windows.Forms.TickStyle.Both; + this.ScrollGreen.ValueChanged += new System.EventHandler(this.SliderChanged); + this.ScrollGreen.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ClickScroll); + // + // ScrollBlue + // + this.ScrollBlue.Location = new System.Drawing.Point(53, 111); + this.ScrollBlue.Maximum = 255; + this.ScrollBlue.Name = "ScrollBlue"; + this.ScrollBlue.Size = new System.Drawing.Size(735, 45); + this.ScrollBlue.TabIndex = 2; + this.ScrollBlue.TickStyle = System.Windows.Forms.TickStyle.Both; + this.ScrollBlue.ValueChanged += new System.EventHandler(this.SliderChanged); + this.ScrollBlue.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ClickScroll); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(13, 22); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(27, 13); + this.label1.TabIndex = 3; + this.label1.Text = "Red"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(12, 75); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(36, 13); + this.label2.TabIndex = 4; + this.label2.Text = "Green"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(13, 124); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(28, 13); + this.label3.TabIndex = 5; + this.label3.Text = "Blue"; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(449, 343); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(339, 95); + this.button1.TabIndex = 6; + this.button1.Text = "ALARM"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.Button1Click); + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(13, 175); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(29, 13); + this.label4.TabIndex = 8; + this.label4.Text = "Nice"; + // + // ScrollNice + // + this.ScrollNice.Location = new System.Drawing.Point(53, 162); + this.ScrollNice.Maximum = 255; + this.ScrollNice.Name = "ScrollNice"; + this.ScrollNice.Size = new System.Drawing.Size(735, 45); + this.ScrollNice.TabIndex = 7; + this.ScrollNice.TickStyle = System.Windows.Forms.TickStyle.Both; + this.ScrollNice.ValueChanged += new System.EventHandler(this.NiceChanged); + this.ScrollNice.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ClickScroll); + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(13, 226); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(30, 13); + this.label5.TabIndex = 10; + this.label5.Text = "Light"; + // + // ScrollLight + // + this.ScrollLight.Location = new System.Drawing.Point(53, 213); + this.ScrollLight.Maximum = 255; + this.ScrollLight.Name = "ScrollLight"; + this.ScrollLight.Size = new System.Drawing.Size(735, 45); + this.ScrollLight.TabIndex = 9; + this.ScrollLight.TickStyle = System.Windows.Forms.TickStyle.Both; + this.ScrollLight.ValueChanged += new System.EventHandler(this.LightChanged); + this.ScrollLight.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ClickScroll); + // + // 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.label5); + this.Controls.Add(this.ScrollLight); + this.Controls.Add(this.label4); + this.Controls.Add(this.ScrollNice); + this.Controls.Add(this.button1); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.ScrollBlue); + this.Controls.Add(this.ScrollGreen); + this.Controls.Add(this.ScrollRed); + this.Name = "Form1"; + this.Text = "Form1"; + this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Close); + ((System.ComponentModel.ISupportInitialize)(this.ScrollRed)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.ScrollGreen)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.ScrollBlue)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.ScrollNice)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.ScrollLight)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TrackBar ScrollRed; + private System.Windows.Forms.TrackBar ScrollGreen; + private System.Windows.Forms.TrackBar ScrollBlue; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.TrackBar ScrollNice; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TrackBar ScrollLight; + } +} + diff --git a/MqttColorSetter/Form1.cs b/MqttColorSetter/Form1.cs new file mode 100644 index 0000000..a17b141 --- /dev/null +++ b/MqttColorSetter/Form1.cs @@ -0,0 +1,58 @@ +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 BlubbFish.Utils.IoT.Connector; + +namespace MqttColorSetter { + public partial class Form1 : Form { + private ADataBackend mqtt; + + public Form1() { + InitializeComponent(); + this.mqtt = ABackend.GetInstance(new Dictionary { { "type", "mqtt" }, { "server", "10.100.0.250" },{ "topic", "lightstripe/#;hue/light/#" } }, ABackend.BackendType.Data) as ADataBackend; + } + + private void SliderChanged(Object sender, EventArgs e) { + String t = "SC" + this.ScrollRed.Value.ToString("D3") + this.ScrollGreen.Value.ToString("D3") + this.ScrollBlue.Value.ToString("D3"); + this.mqtt.Send("lightstripe/1/set", t); + } + + private void NiceChanged(Object sender, EventArgs e) { + String t = "NI" + this.ScrollNice.Value.ToString("D3"); + this.mqtt.Send("lightstripe/1/set", t); + } + private void LightChanged(Object sender, EventArgs e) { + String t = "{\"Brightness\":" + this.ScrollLight.Value.ToString() + "}"; + this.mqtt.Send("hue/light/1/set", t); + } + + private void Close(Object sender, FormClosedEventArgs e) { + if(this.mqtt != null) { + this.mqtt.Dispose(); + } + this.Dispose(true); + } + + private void ClickScroll(Object sender, MouseEventArgs e) { + TrackBar trac = sender as TrackBar; + Double val = ((Double)(e.X-12) / (trac.Width-24)) * (trac.Maximum - trac.Minimum); + if(val > trac.Maximum) { + val = trac.Maximum; + } + if(val < trac.Minimum) { + val = trac.Minimum; + } + trac.Value = Convert.ToInt32(val); + } + + private void Button1Click(Object sender, EventArgs e) { + this.mqtt.Send("lightstripe/1/set", "AL"); + } + } +} diff --git a/MqttColorSetter/Form1.resx b/MqttColorSetter/Form1.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/MqttColorSetter/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/MqttColorSetter/MqttColorSetter.csproj b/MqttColorSetter/MqttColorSetter.csproj new file mode 100644 index 0000000..45608d1 --- /dev/null +++ b/MqttColorSetter/MqttColorSetter.csproj @@ -0,0 +1,96 @@ + + + + + Debug + AnyCPU + {ABA53690-F674-4B1A-9B3D-F8AB9EB9DB8B} + WinExe + MqttColorSetter + MqttColorSetter + v4.7.1 + 512 + 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 + + + + + + + + {a11aef5a-b246-4fe8-8330-06db73cc8074} + M2Mqtt_4.7.1 + + + {ee6c8f68-ed46-4c1c-abdd-cfcdf75104f2} + ConnectorDataMqtt + + + {b870e4d5-6806-4a0b-b233-8907eedc5afc} + Utils-IoT + + + + \ No newline at end of file diff --git a/MqttColorSetter/Program.cs b/MqttColorSetter/Program.cs new file mode 100644 index 0000000..0d34e10 --- /dev/null +++ b/MqttColorSetter/Program.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace MqttColorSetter { + 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/MqttColorSetter/Properties/AssemblyInfo.cs b/MqttColorSetter/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..dbeaa70 --- /dev/null +++ b/MqttColorSetter/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("MqttColorSetter")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("MqttColorSetter")] +[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("aba53690-f674-4b1a-9b3d-f8ab9eb9db8b")] + +// 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/MqttColorSetter/Properties/Resources.Designer.cs b/MqttColorSetter/Properties/Resources.Designer.cs new file mode 100644 index 0000000..afccb50 --- /dev/null +++ b/MqttColorSetter/Properties/Resources.Designer.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// 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 MqttColorSetter.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("MqttColorSetter.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/MqttColorSetter/Properties/Resources.resx b/MqttColorSetter/Properties/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/MqttColorSetter/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/MqttColorSetter/Properties/Settings.Designer.cs b/MqttColorSetter/Properties/Settings.Designer.cs new file mode 100644 index 0000000..ce637e7 --- /dev/null +++ b/MqttColorSetter/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 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 MqttColorSetter.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/MqttColorSetter/Properties/Settings.settings b/MqttColorSetter/Properties/Settings.settings new file mode 100644 index 0000000..abf36c5 --- /dev/null +++ b/MqttColorSetter/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + +