From 99ef5f067e335a0f4c09b37eb17b6af0a51c1d4e Mon Sep 17 00:00:00 2001 From: Klaus Merzbach <me@merzbach.com> Date: Thu, 30 Jan 2020 15:41:34 +0100 Subject: [PATCH] Settingsform erstellt --- Wetterstation/Form1.Designer.cs | 43 ++- Wetterstation/Program.cs | 3 +- .../Properties/Resources.Designer.cs | 10 + Wetterstation/Properties/Resources.resx | 11 +- Wetterstation/Resources/Systemknopf.png | Bin 0 -> 5872 bytes Wetterstation/Settings.Designer.cs | 269 +++++++++++++++++- Wetterstation/Settings.cs | 13 +- Wetterstation/Wetterstation.csproj | 3 + 8 files changed, 320 insertions(+), 32 deletions(-) create mode 100644 Wetterstation/Resources/Systemknopf.png diff --git a/Wetterstation/Form1.Designer.cs b/Wetterstation/Form1.Designer.cs index 49e1249..55341fb 100644 --- a/Wetterstation/Form1.Designer.cs +++ b/Wetterstation/Form1.Designer.cs @@ -36,10 +36,10 @@ namespace Wetterstation /// </summary> private void InitializeComponent() { - System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea5 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); - System.Windows.Forms.DataVisualization.Charting.Legend legend5 = new System.Windows.Forms.DataVisualization.Charting.Legend(); - System.Windows.Forms.DataVisualization.Charting.Series series5 = new System.Windows.Forms.DataVisualization.Charting.Series(); - System.Windows.Forms.DataVisualization.Charting.Title title5 = new System.Windows.Forms.DataVisualization.Charting.Title(); + System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); + System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); + System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.Title title2 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.lbTextInnentemp = new System.Windows.Forms.Label(); this.lbTextAussentemp = new System.Windows.Forms.Label(); this.lbTextWindSpeed = new System.Windows.Forms.Label(); @@ -75,6 +75,7 @@ namespace Wetterstation this.lbHintergrund = new System.Windows.Forms.Label(); this.lbCity = new System.Windows.Forms.Label(); this.picTg1 = new System.Windows.Forms.PictureBox(); + this.btSystemKnopf = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picTg2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picTg3)).BeginInit(); @@ -477,22 +478,22 @@ namespace Wetterstation // chart1 // this.chart1.Anchor = System.Windows.Forms.AnchorStyles.None; - chartArea5.Name = "ChartArea1"; - this.chart1.ChartAreas.Add(chartArea5); - legend5.Name = "Legend1"; - this.chart1.Legends.Add(legend5); + chartArea2.Name = "ChartArea1"; + this.chart1.ChartAreas.Add(chartArea2); + legend2.Name = "Legend1"; + this.chart1.Legends.Add(legend2); this.chart1.Location = new System.Drawing.Point(28, 546); this.chart1.Name = "chart1"; this.chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Excel; - series5.ChartArea = "ChartArea1"; - series5.Legend = "Legend1"; - series5.Name = "Series1"; - this.chart1.Series.Add(series5); + series2.ChartArea = "ChartArea1"; + series2.Legend = "Legend1"; + series2.Name = "Series1"; + this.chart1.Series.Add(series2); this.chart1.Size = new System.Drawing.Size(743, 107); this.chart1.TabIndex = 41; this.chart1.Text = "chTendenz"; - title5.Name = "Title1"; - this.chart1.Titles.Add(title5); + title2.Name = "Title1"; + this.chart1.Titles.Add(title2); // // lbHintergrund // @@ -526,12 +527,25 @@ namespace Wetterstation this.picTg1.TabIndex = 44; this.picTg1.TabStop = false; // + // btSystemKnopf + // + this.btSystemKnopf.BackColor = System.Drawing.Color.Transparent; + this.btSystemKnopf.BackgroundImage = global::Wetterstation.Properties.Resources.Systemknopf; + this.btSystemKnopf.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btSystemKnopf.Location = new System.Drawing.Point(917, 576); + this.btSystemKnopf.Name = "btSystemKnopf"; + this.btSystemKnopf.Size = new System.Drawing.Size(50, 50); + this.btSystemKnopf.TabIndex = 46; + this.btSystemKnopf.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.btSystemKnopf.UseVisualStyleBackColor = false; + // // Hintergrund // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackgroundImage = global::Wetterstation.Properties.Resources.Strand; this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.btSystemKnopf); this.Controls.Add(this.picTg1); this.Controls.Add(this.lbWT1); this.Controls.Add(this.lbWt2); @@ -619,6 +633,7 @@ namespace Wetterstation private Label lbHintergrund; private Label lbCity; private PictureBox picTg1; + private Button btSystemKnopf; } } diff --git a/Wetterstation/Program.cs b/Wetterstation/Program.cs index 704b24d..234acdd 100644 --- a/Wetterstation/Program.cs +++ b/Wetterstation/Program.cs @@ -16,7 +16,8 @@ namespace Wetterstation { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Hintergrund()); + // Application.Run(new Hintergrund()); + Application.Run(new Settings()); } } } diff --git a/Wetterstation/Properties/Resources.Designer.cs b/Wetterstation/Properties/Resources.Designer.cs index 62a6ebf..0aeec61 100644 --- a/Wetterstation/Properties/Resources.Designer.cs +++ b/Wetterstation/Properties/Resources.Designer.cs @@ -179,5 +179,15 @@ namespace Wetterstation.Properties { return ((System.Drawing.Bitmap)(obj)); } } + + /// <summary> + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap Systemknopf { + get { + object obj = ResourceManager.GetObject("Systemknopf", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } diff --git a/Wetterstation/Properties/Resources.resx b/Wetterstation/Properties/Resources.resx index 7d64d59..9555125 100644 --- a/Wetterstation/Properties/Resources.resx +++ b/Wetterstation/Properties/Resources.resx @@ -118,8 +118,8 @@ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> - <data name="earth" type="System.Resources.ResXFileRef, System.Windows.Forms"> - <value>..\Resources\earth.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + <data name="03n_small" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\03n_small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="Kompassrose" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\Kompassrose.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> @@ -139,8 +139,8 @@ <data name="13n_small" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\13n_small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> - <data name="03n_small" type="System.Resources.ResXFileRef, System.Windows.Forms"> - <value>..\Resources\03n_small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + <data name="earth" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\earth.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="02d_small" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\02d_small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> @@ -154,4 +154,7 @@ <data name="Strand" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\Strand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> + <data name="Systemknopf" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\Systemknopf.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> </root> \ No newline at end of file diff --git a/Wetterstation/Resources/Systemknopf.png b/Wetterstation/Resources/Systemknopf.png new file mode 100644 index 0000000000000000000000000000000000000000..43af7fe473039e92861a30763ba298949c0cf3d1 GIT binary patch literal 5872 zcmV<M77yu(P)<h;3K|Lk000e1NJLTq001!n001%w1^@s6^$0Vv0004nX+uL$Nkc;* zaB^>EX>4Tx04R}tkv&MmP!xqvQ>7vm2Rn#}2B}UKL`58>ibb$c+6t{Yn7s54nlvOS zE{=k0!NH%!s)LKOt`4q(Aov5~<mja6A|>9J6k5c1;qgAsyXWxUeSlCeGu7;v094H~ zlCh|m$*zilSNJf5AVx4OF;kDH7Sr&ouY2mIx{L5E@4i2)N6DEC@QK88OgAjz4dR(i zOXs{#9AZUDAwDM_H|T=Ik6f2se&bwlSm2o<Bb}Tl4iSrmHkR9%6%CbmnmDYe8s!Ta zmle)ioYiubHSft^7|dxaDX!BRL<~!aBLNXIswklh3lZ8iQcNW2JnG>eaQq2!$>b`5 zkz)ZBsE`~#_#gb9t(l*ibd!Qnp!3DHKSqJTF3_mi_V=-EH%<WmGjOG~{FOQ|`$>AO zrG<}x-fiIGx~0i`z~v6m|D;QX<Vb#6LOu_?pV2pEfxcUyd(E9&^BkuSK$>Q?d;=UD z0%HZrUiWx+SNq)l?P<>M2bdgkw%?gYJ^%m!24YJ`L;(K){{a7>y{D4^000SaNLh0L z04^f{04^f|c%?sf00007bV*G`2jl@B3^*DuKt{~~000?uMObu0Z*6U5Zgc=ca%Ew3 zWn>_CX>@2HM@dakSAh-}000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UjcjIoX!6@) zJLOFC{?=lIu{gjvy8*=V@-o$G^|>$%AKblr_d<6cI|u?iuh|mQS|jG?=R1hB)*UeI zUbeNCGiS~e@;v|C(9qCluD$l!Li+*ho9+L%=KPw7*J{3ZpLc0r8DoAs48z~N;f5QO zl#+6}OsQ1r>?mm8Z;V0A&CPX|1iOK>cNet#d9T0zI?lP<fyal3hu<<hJdBj`sx909 z*Bu4jzLlmaOG`_{ar{yc1fN)3TzvVCJMN&}U@R7k9Uti4#$m0!0-_y-+8b4rQYfWJ z)3h^$5X{WX$a=m0K4Z*h`}_M33=R&`-lX#X1EN-|QLooY)AV>4hDQp8!ZW*e?Xp4$ z+BvMfIi<~*w(xDmiP_oNHA|S?`--&I9m}+V<ay3>&ppT9y?bSnBzNX{{$b#ON~JQ` z&Y*41c7L?io$W_imJvk}X__ueDZd$p;g@~iKlaQs&)7#Ed4wPcI@D=9a5v@KH0<o{ zSP!DJ{ibCZt(!5ty<Moi@2M@&)YMdG)0WoyPObF;YwaHA+*V*f2oX5va_8I%Fe`*O zTPPHc`@Vn7_x&FwNs{m0y_+Bi2!fzPo2zZsT0f^~fBqMmX*u8F+nV+O0000<MNUMn GLSTZMd4H?` literal 0 HcmV?d00001 diff --git a/Wetterstation/Settings.Designer.cs b/Wetterstation/Settings.Designer.cs index d54c618..00ad189 100644 --- a/Wetterstation/Settings.Designer.cs +++ b/Wetterstation/Settings.Designer.cs @@ -28,24 +28,252 @@ /// </summary> private void InitializeComponent() { - this.label1 = new System.Windows.Forms.Label(); + this.lbSettingsHost = new System.Windows.Forms.Label(); + this.tbSettingsHost = new System.Windows.Forms.TextBox(); + this.lbSettingsPort = new System.Windows.Forms.Label(); + this.tbSettingsPort = new System.Windows.Forms.TextBox(); + this.lbSettingsClient = new System.Windows.Forms.Label(); + this.tbSettingsClient = new System.Windows.Forms.TextBox(); + this.tbSettingsUser = new System.Windows.Forms.TextBox(); + this.lbSettingsUser = new System.Windows.Forms.Label(); + this.lbSettingsPasswort = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.lbSettingsTopic = new System.Windows.Forms.Label(); + this.tbSettingsTopic = new System.Windows.Forms.TextBox(); + this.lbStettingsFullTopic = new System.Windows.Forms.Label(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.lbSettingsOrt = new System.Windows.Forms.Label(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.lbSettingsLand = new System.Windows.Forms.Label(); + this.tbSettingsLand = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // - // label1 + // lbSettingsHost // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(13, 13); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(93, 17); - this.label1.TabIndex = 0; - this.label1.Text = "Einstellungen"; + this.lbSettingsHost.AutoSize = true; + this.lbSettingsHost.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsHost.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsHost.ForeColor = System.Drawing.Color.White; + this.lbSettingsHost.Location = new System.Drawing.Point(20, 34); + this.lbSettingsHost.Name = "lbSettingsHost"; + this.lbSettingsHost.Size = new System.Drawing.Size(55, 19); + this.lbSettingsHost.TabIndex = 0; + this.lbSettingsHost.Text = "Host()"; + // + // tbSettingsHost + // + this.tbSettingsHost.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsHost.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsHost.Location = new System.Drawing.Point(7, 55); + this.tbSettingsHost.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsHost.Name = "tbSettingsHost"; + this.tbSettingsHost.Size = new System.Drawing.Size(300, 30); + this.tbSettingsHost.TabIndex = 4; + // + // lbSettingsPort + // + this.lbSettingsPort.AutoSize = true; + this.lbSettingsPort.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsPort.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsPort.ForeColor = System.Drawing.Color.White; + this.lbSettingsPort.Location = new System.Drawing.Point(20, 98); + this.lbSettingsPort.Name = "lbSettingsPort"; + this.lbSettingsPort.Size = new System.Drawing.Size(91, 19); + this.lbSettingsPort.TabIndex = 5; + this.lbSettingsPort.Text = "Port (1883)"; + // + // tbSettingsPort + // + this.tbSettingsPort.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsPort.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsPort.Location = new System.Drawing.Point(7, 117); + this.tbSettingsPort.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsPort.Name = "tbSettingsPort"; + this.tbSettingsPort.Size = new System.Drawing.Size(300, 30); + this.tbSettingsPort.TabIndex = 6; + // + // lbSettingsClient + // + this.lbSettingsClient.AutoSize = true; + this.lbSettingsClient.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsClient.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsClient.ForeColor = System.Drawing.Color.White; + this.lbSettingsClient.Location = new System.Drawing.Point(20, 163); + this.lbSettingsClient.Name = "lbSettingsClient"; + this.lbSettingsClient.Size = new System.Drawing.Size(173, 19); + this.lbSettingsClient.TabIndex = 7; + this.lbSettingsClient.Text = "Client (DVES 06236C)"; + // + // tbSettingsClient + // + this.tbSettingsClient.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsClient.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsClient.Location = new System.Drawing.Point(8, 182); + this.tbSettingsClient.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsClient.Name = "tbSettingsClient"; + this.tbSettingsClient.Size = new System.Drawing.Size(300, 30); + this.tbSettingsClient.TabIndex = 8; + // + // tbSettingsUser + // + this.tbSettingsUser.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsUser.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsUser.Location = new System.Drawing.Point(8, 248); + this.tbSettingsUser.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsUser.Name = "tbSettingsUser"; + this.tbSettingsUser.Size = new System.Drawing.Size(300, 30); + this.tbSettingsUser.TabIndex = 9; + // + // lbSettingsUser + // + this.lbSettingsUser.AutoSize = true; + this.lbSettingsUser.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsUser.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsUser.ForeColor = System.Drawing.Color.White; + this.lbSettingsUser.Location = new System.Drawing.Point(20, 227); + this.lbSettingsUser.Name = "lbSettingsUser"; + this.lbSettingsUser.Size = new System.Drawing.Size(144, 19); + this.lbSettingsUser.TabIndex = 10; + this.lbSettingsUser.Text = "User (DVES User)"; + // + // lbSettingsPasswort + // + this.lbSettingsPasswort.AutoSize = true; + this.lbSettingsPasswort.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsPasswort.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsPasswort.ForeColor = System.Drawing.Color.White; + this.lbSettingsPasswort.Location = new System.Drawing.Point(20, 294); + this.lbSettingsPasswort.Name = "lbSettingsPasswort"; + this.lbSettingsPasswort.Size = new System.Drawing.Size(99, 19); + this.lbSettingsPasswort.TabIndex = 11; + this.lbSettingsPasswort.Text = "Password #"; + // + // textBox1 + // + this.textBox1.Anchor = System.Windows.Forms.AnchorStyles.None; + this.textBox1.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox1.Location = new System.Drawing.Point(7, 314); + this.textBox1.MinimumSize = new System.Drawing.Size(300, 30); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(300, 30); + this.textBox1.TabIndex = 12; + // + // lbSettingsTopic + // + this.lbSettingsTopic.AutoSize = true; + this.lbSettingsTopic.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsTopic.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsTopic.ForeColor = System.Drawing.Color.White; + this.lbSettingsTopic.Location = new System.Drawing.Point(20, 367); + this.lbSettingsTopic.Name = "lbSettingsTopic"; + this.lbSettingsTopic.Size = new System.Drawing.Size(251, 19); + this.lbSettingsTopic.TabIndex = 13; + this.lbSettingsTopic.Text = "Topic = %topic% (wetterstation)"; + // + // tbSettingsTopic + // + this.tbSettingsTopic.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsTopic.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsTopic.Location = new System.Drawing.Point(7, 386); + this.tbSettingsTopic.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsTopic.Name = "tbSettingsTopic"; + this.tbSettingsTopic.Size = new System.Drawing.Size(300, 30); + this.tbSettingsTopic.TabIndex = 14; + // + // lbStettingsFullTopic + // + this.lbStettingsFullTopic.AutoSize = true; + this.lbStettingsFullTopic.BackColor = System.Drawing.Color.Transparent; + this.lbStettingsFullTopic.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbStettingsFullTopic.ForeColor = System.Drawing.Color.White; + this.lbStettingsFullTopic.Location = new System.Drawing.Point(19, 444); + this.lbStettingsFullTopic.Name = "lbStettingsFullTopic"; + this.lbStettingsFullTopic.Size = new System.Drawing.Size(250, 19); + this.lbStettingsFullTopic.TabIndex = 15; + this.lbStettingsFullTopic.Text = "Full Topic (%prefix%/%topic%/)"; + // + // textBox2 + // + this.textBox2.Anchor = System.Windows.Forms.AnchorStyles.None; + this.textBox2.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox2.Location = new System.Drawing.Point(6, 462); + this.textBox2.MinimumSize = new System.Drawing.Size(300, 30); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(300, 30); + this.textBox2.TabIndex = 16; + this.textBox2.TextChanged += new System.EventHandler(this.TextBox2_TextChanged); + // + // lbSettingsOrt + // + this.lbSettingsOrt.AutoSize = true; + this.lbSettingsOrt.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsOrt.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsOrt.ForeColor = System.Drawing.Color.White; + this.lbSettingsOrt.Location = new System.Drawing.Point(18, 520); + this.lbSettingsOrt.Name = "lbSettingsOrt"; + this.lbSettingsOrt.Size = new System.Drawing.Size(91, 19); + this.lbSettingsOrt.TabIndex = 17; + this.lbSettingsOrt.Text = "Stadt / PLZ"; + // + // textBox3 + // + this.textBox3.Anchor = System.Windows.Forms.AnchorStyles.None; + this.textBox3.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox3.Location = new System.Drawing.Point(8, 539); + this.textBox3.MinimumSize = new System.Drawing.Size(300, 30); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(300, 30); + this.textBox3.TabIndex = 18; + // + // lbSettingsLand + // + this.lbSettingsLand.AutoSize = true; + this.lbSettingsLand.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsLand.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsLand.ForeColor = System.Drawing.Color.White; + this.lbSettingsLand.Location = new System.Drawing.Point(25, 590); + this.lbSettingsLand.Name = "lbSettingsLand"; + this.lbSettingsLand.Size = new System.Drawing.Size(168, 19); + this.lbSettingsLand.TabIndex = 19; + this.lbSettingsLand.Text = "Länderkennung (DE)"; + this.lbSettingsLand.Click += new System.EventHandler(this.Label1_Click); + // + // tbSettingsLand + // + this.tbSettingsLand.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsLand.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsLand.Location = new System.Drawing.Point(13, 612); + this.tbSettingsLand.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsLand.Name = "tbSettingsLand"; + this.tbSettingsLand.Size = new System.Drawing.Size(300, 30); + this.tbSettingsLand.TabIndex = 20; // // Settings // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + 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.label1); + this.BackColor = System.Drawing.Color.White; + this.BackgroundImage = global::Wetterstation.Properties.Resources.earth; + this.ClientSize = new System.Drawing.Size(568, 697); + this.Controls.Add(this.tbSettingsLand); + this.Controls.Add(this.lbSettingsLand); + this.Controls.Add(this.textBox3); + this.Controls.Add(this.lbSettingsOrt); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.lbStettingsFullTopic); + this.Controls.Add(this.tbSettingsTopic); + this.Controls.Add(this.lbSettingsTopic); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.lbSettingsPasswort); + this.Controls.Add(this.lbSettingsUser); + this.Controls.Add(this.tbSettingsUser); + this.Controls.Add(this.tbSettingsClient); + this.Controls.Add(this.lbSettingsClient); + this.Controls.Add(this.tbSettingsPort); + this.Controls.Add(this.lbSettingsPort); + this.Controls.Add(this.tbSettingsHost); + this.Controls.Add(this.lbSettingsHost); + this.Margin = new System.Windows.Forms.Padding(2); this.Name = "Settings"; this.Text = "Settings"; this.ResumeLayout(false); @@ -55,6 +283,23 @@ #endregion - private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label lbSettingsHost; + private System.Windows.Forms.TextBox tbSettingsHost; + private System.Windows.Forms.Label lbSettingsPort; + private System.Windows.Forms.TextBox tbSettingsPort; + private System.Windows.Forms.Label lbSettingsClient; + private System.Windows.Forms.TextBox tbSettingsClient; + private System.Windows.Forms.TextBox tbSettingsUser; + private System.Windows.Forms.Label lbSettingsUser; + private System.Windows.Forms.Label lbSettingsPasswort; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Label lbSettingsTopic; + private System.Windows.Forms.TextBox tbSettingsTopic; + private System.Windows.Forms.Label lbStettingsFullTopic; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Label lbSettingsOrt; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label lbSettingsLand; + private System.Windows.Forms.TextBox tbSettingsLand; } } \ No newline at end of file diff --git a/Wetterstation/Settings.cs b/Wetterstation/Settings.cs index 508c405..037f27e 100644 --- a/Wetterstation/Settings.cs +++ b/Wetterstation/Settings.cs @@ -16,5 +16,16 @@ namespace Wetterstation { InitializeComponent(); } + + private void TextBox2_TextChanged(object sender, EventArgs e) + { + + } + + private void Label1_Click(object sender, EventArgs e) + { + + } } -} + } + diff --git a/Wetterstation/Wetterstation.csproj b/Wetterstation/Wetterstation.csproj index 0958e3f..cb99cce 100644 --- a/Wetterstation/Wetterstation.csproj +++ b/Wetterstation/Wetterstation.csproj @@ -126,5 +126,8 @@ <ItemGroup> <None Include="Resources\Strand.png" /> </ItemGroup> + <ItemGroup> + <None Include="Resources\Systemknopf.png" /> + </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> </Project> \ No newline at end of file -- GitLab