diff --git a/Wetterstation/Form1.Designer.cs b/Wetterstation/Form1.Designer.cs index b99c62cc924f446a1a806714bd99d23840e6cb90..a1e3dfe310993095dc5475fdedf05c6d95de5b51 100644 --- a/Wetterstation/Form1.Designer.cs +++ b/Wetterstation/Form1.Designer.cs @@ -91,9 +91,10 @@ namespace Wetterstation this.lbTextInnentemp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbTextInnentemp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbTextInnentemp.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbTextInnentemp.Location = new System.Drawing.Point(160, 21); + this.lbTextInnentemp.Location = new System.Drawing.Point(213, 26); + this.lbTextInnentemp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbTextInnentemp.Name = "lbTextInnentemp"; - this.lbTextInnentemp.Size = new System.Drawing.Size(163, 24); + this.lbTextInnentemp.Size = new System.Drawing.Size(203, 29); this.lbTextInnentemp.TabIndex = 0; this.lbTextInnentemp.Text = "Innentemperatur"; // @@ -103,9 +104,10 @@ namespace Wetterstation this.lbTextAussentemp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbTextAussentemp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbTextAussentemp.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbTextAussentemp.Location = new System.Drawing.Point(152, 124); + this.lbTextAussentemp.Location = new System.Drawing.Point(203, 153); + this.lbTextAussentemp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbTextAussentemp.Name = "lbTextAussentemp"; - this.lbTextAussentemp.Size = new System.Drawing.Size(180, 24); + this.lbTextAussentemp.Size = new System.Drawing.Size(224, 29); this.lbTextAussentemp.TabIndex = 1; this.lbTextAussentemp.Text = "Aussentemperatur"; // @@ -115,9 +117,10 @@ namespace Wetterstation this.lbTextWindSpeed.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbTextWindSpeed.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbTextWindSpeed.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbTextWindSpeed.Location = new System.Drawing.Point(582, 25); + this.lbTextWindSpeed.Location = new System.Drawing.Point(776, 31); + this.lbTextWindSpeed.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbTextWindSpeed.Name = "lbTextWindSpeed"; - this.lbTextWindSpeed.Size = new System.Drawing.Size(165, 18); + this.lbTextWindSpeed.Size = new System.Drawing.Size(208, 24); this.lbTextWindSpeed.TabIndex = 2; this.lbTextWindSpeed.Text = "Windgeschwindigkeit"; this.lbTextWindSpeed.Click += new System.EventHandler(this.Windgeschwindigkeit_Click); @@ -128,9 +131,10 @@ namespace Wetterstation this.lbTextLuftfeuchtInnen.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbTextLuftfeuchtInnen.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbTextLuftfeuchtInnen.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbTextLuftfeuchtInnen.Location = new System.Drawing.Point(402, 21); + this.lbTextLuftfeuchtInnen.Location = new System.Drawing.Point(536, 26); + this.lbTextLuftfeuchtInnen.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbTextLuftfeuchtInnen.Name = "lbTextLuftfeuchtInnen"; - this.lbTextLuftfeuchtInnen.Size = new System.Drawing.Size(149, 24); + this.lbTextLuftfeuchtInnen.Size = new System.Drawing.Size(189, 29); this.lbTextLuftfeuchtInnen.TabIndex = 3; this.lbTextLuftfeuchtInnen.Text = "Luftfeuchtigkeit"; this.lbTextLuftfeuchtInnen.Click += new System.EventHandler(this.LbTextLuftfeucht_Click); @@ -141,9 +145,10 @@ namespace Wetterstation this.Windrichtung.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.Windrichtung.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Windrichtung.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.Windrichtung.Location = new System.Drawing.Point(850, 21); + this.Windrichtung.Location = new System.Drawing.Point(1133, 26); + this.Windrichtung.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.Windrichtung.Name = "Windrichtung"; - this.Windrichtung.Size = new System.Drawing.Size(134, 24); + this.Windrichtung.Size = new System.Drawing.Size(165, 29); this.Windrichtung.TabIndex = 4; this.Windrichtung.Text = "Windrichtung"; // @@ -151,11 +156,12 @@ namespace Wetterstation // this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.None; this.pictureBox1.BackColor = System.Drawing.Color.Transparent; - this.pictureBox1.BackgroundImage = global::Wetterstation.Properties.Resources.Kompassrose2; - this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.pictureBox1.Location = new System.Drawing.Point(871, 48); + this.pictureBox1.BackgroundImage = global::Wetterstation.Properties.Resources.Kompassrose; + this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.pictureBox1.Location = new System.Drawing.Point(1161, 59); + this.pictureBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(90, 90); + this.pictureBox1.Size = new System.Drawing.Size(119, 111); this.pictureBox1.TabIndex = 10; this.pictureBox1.TabStop = false; this.pictureBox1.Click += new System.EventHandler(this.PictureBox1_Click); @@ -166,9 +172,10 @@ namespace Wetterstation this.lbInnenTemp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbInnenTemp.Font = new System.Drawing.Font("Arial", 48F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbInnenTemp.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbInnenTemp.Location = new System.Drawing.Point(133, 44); + this.lbInnenTemp.Location = new System.Drawing.Point(177, 54); + this.lbInnenTemp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbInnenTemp.Name = "lbInnenTemp"; - this.lbInnenTemp.Size = new System.Drawing.Size(248, 75); + this.lbInnenTemp.Size = new System.Drawing.Size(306, 93); this.lbInnenTemp.TabIndex = 13; this.lbInnenTemp.Text = "23,3 C°"; this.lbInnenTemp.BackColorChanged += new System.EventHandler(this.HierInnen_BackColorChanged); @@ -180,9 +187,10 @@ namespace Wetterstation this.lbAussenTemp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbAussenTemp.Font = new System.Drawing.Font("Arial", 48F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbAussenTemp.ForeColor = System.Drawing.Color.White; - this.lbAussenTemp.Location = new System.Drawing.Point(132, 151); + this.lbAussenTemp.Location = new System.Drawing.Point(176, 186); + this.lbAussenTemp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbAussenTemp.Name = "lbAussenTemp"; - this.lbAussenTemp.Size = new System.Drawing.Size(248, 75); + this.lbAussenTemp.Size = new System.Drawing.Size(306, 93); this.lbAussenTemp.TabIndex = 15; this.lbAussenTemp.Text = "25,7 C°"; this.lbAussenTemp.Click += new System.EventHandler(this.HierAussen_Click); @@ -193,9 +201,10 @@ namespace Wetterstation this.lbWindSpeed.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbWindSpeed.Font = new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbWindSpeed.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbWindSpeed.Location = new System.Drawing.Point(610, 45); + this.lbWindSpeed.Location = new System.Drawing.Point(813, 55); + this.lbWindSpeed.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbWindSpeed.Name = "lbWindSpeed"; - this.lbWindSpeed.Size = new System.Drawing.Size(113, 29); + this.lbWindSpeed.Size = new System.Drawing.Size(142, 35); this.lbWindSpeed.TabIndex = 16; this.lbWindSpeed.Text = "12 m/sec"; // @@ -205,9 +214,10 @@ namespace Wetterstation this.lbLuftFeuchtInnen.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbLuftFeuchtInnen.Font = new System.Drawing.Font("Arial", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbLuftFeuchtInnen.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbLuftFeuchtInnen.Location = new System.Drawing.Point(410, 51); + this.lbLuftFeuchtInnen.Location = new System.Drawing.Point(547, 63); + this.lbLuftFeuchtInnen.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbLuftFeuchtInnen.Name = "lbLuftFeuchtInnen"; - this.lbLuftFeuchtInnen.Size = new System.Drawing.Size(133, 56); + this.lbLuftFeuchtInnen.Size = new System.Drawing.Size(164, 70); this.lbLuftFeuchtInnen.TabIndex = 17; this.lbLuftFeuchtInnen.Text = "36 %"; this.lbLuftFeuchtInnen.Click += new System.EventHandler(this.LbLuftFeuchtInnen_Click); @@ -218,9 +228,10 @@ namespace Wetterstation this.lbWindricht.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbWindricht.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbWindricht.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbWindricht.Location = new System.Drawing.Point(889, 162); + this.lbWindricht.Location = new System.Drawing.Point(1185, 199); + this.lbWindricht.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbWindricht.Name = "lbWindricht"; - this.lbWindricht.Size = new System.Drawing.Size(50, 24); + this.lbWindricht.Size = new System.Drawing.Size(67, 32); this.lbWindricht.TabIndex = 18; this.lbWindricht.Text = "Süd"; // @@ -230,9 +241,10 @@ namespace Wetterstation this.lbUhr.BackColor = System.Drawing.Color.Transparent; this.lbUhr.Font = new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbUhr.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbUhr.Location = new System.Drawing.Point(891, 656); + this.lbUhr.Location = new System.Drawing.Point(1188, 807); + this.lbUhr.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbUhr.Name = "lbUhr"; - this.lbUhr.Size = new System.Drawing.Size(105, 29); + this.lbUhr.Size = new System.Drawing.Size(137, 35); this.lbUhr.TabIndex = 19; this.lbUhr.Text = "22:56:12"; this.lbUhr.Click += new System.EventHandler(this.HierUhr_Click); @@ -243,9 +255,10 @@ namespace Wetterstation this.lbDatum.BackColor = System.Drawing.Color.Transparent; this.lbDatum.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbDatum.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbDatum.Location = new System.Drawing.Point(878, 696); + this.lbDatum.Location = new System.Drawing.Point(1171, 857); + this.lbDatum.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbDatum.Name = "lbDatum"; - this.lbDatum.Size = new System.Drawing.Size(118, 24); + this.lbDatum.Size = new System.Drawing.Size(151, 32); this.lbDatum.TabIndex = 20; this.lbDatum.Text = "24.12.1872"; this.lbDatum.Click += new System.EventHandler(this.HierDatum_Click); @@ -257,9 +270,10 @@ namespace Wetterstation this.LED_N.AutoSize = true; this.LED_N.BackColor = System.Drawing.Color.Transparent; this.LED_N.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(75)))), ((int)(((byte)(70)))), ((int)(((byte)(90))))); - this.LED_N.Location = new System.Drawing.Point(914, 306); + this.LED_N.Location = new System.Drawing.Point(1219, 377); + this.LED_N.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.LED_N.Name = "LED_N"; - this.LED_N.Size = new System.Drawing.Size(54, 13); + this.LED_N.Size = new System.Drawing.Size(70, 17); this.LED_N.TabIndex = 21; this.LED_N.Text = "LED Nord"; this.LED_N.Click += new System.EventHandler(this.LED_Click); @@ -271,9 +285,10 @@ namespace Wetterstation this.LED_O.AutoSize = true; this.LED_O.BackColor = System.Drawing.Color.Transparent; this.LED_O.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(75)))), ((int)(((byte)(70)))), ((int)(((byte)(90))))); - this.LED_O.Location = new System.Drawing.Point(914, 339); + this.LED_O.Location = new System.Drawing.Point(1219, 417); + this.LED_O.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.LED_O.Name = "LED_O"; - this.LED_O.Size = new System.Drawing.Size(47, 13); + this.LED_O.Size = new System.Drawing.Size(61, 17); this.LED_O.TabIndex = 22; this.LED_O.Text = "LED Ost"; this.LED_O.Click += new System.EventHandler(this.Label1_Click); @@ -285,9 +300,10 @@ namespace Wetterstation this.LED_S.AutoSize = true; this.LED_S.BackColor = System.Drawing.Color.Transparent; this.LED_S.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(75)))), ((int)(((byte)(70)))), ((int)(((byte)(90))))); - this.LED_S.Location = new System.Drawing.Point(914, 369); + this.LED_S.Location = new System.Drawing.Point(1219, 454); + this.LED_S.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.LED_S.Name = "LED_S"; - this.LED_S.Size = new System.Drawing.Size(56, 13); + this.LED_S.Size = new System.Drawing.Size(72, 17); this.LED_S.TabIndex = 23; this.LED_S.Text = "LED Sued"; this.LED_S.Click += new System.EventHandler(this.LED_S_Click); @@ -299,9 +315,10 @@ namespace Wetterstation this.LED_W.AutoSize = true; this.LED_W.BackColor = System.Drawing.Color.Transparent; this.LED_W.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(75)))), ((int)(((byte)(70)))), ((int)(((byte)(90))))); - this.LED_W.Location = new System.Drawing.Point(914, 396); + this.LED_W.Location = new System.Drawing.Point(1219, 487); + this.LED_W.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.LED_W.Name = "LED_W"; - this.LED_W.Size = new System.Drawing.Size(56, 13); + this.LED_W.Size = new System.Drawing.Size(71, 17); this.LED_W.TabIndex = 24; this.LED_W.Text = "LED West"; this.LED_W.Click += new System.EventHandler(this.LED_W_Click); @@ -312,9 +329,10 @@ namespace Wetterstation this.lbTextTendenz.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbTextTendenz.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbTextTendenz.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbTextTendenz.Location = new System.Drawing.Point(36, 26); + this.lbTextTendenz.Location = new System.Drawing.Point(48, 32); + this.lbTextTendenz.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbTextTendenz.Name = "lbTextTendenz"; - this.lbTextTendenz.Size = new System.Drawing.Size(68, 16); + this.lbTextTendenz.Size = new System.Drawing.Size(80, 20); this.lbTextTendenz.TabIndex = 25; this.lbTextTendenz.Text = "Tendenz"; // @@ -324,9 +342,10 @@ namespace Wetterstation this.lbWT1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbWT1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbWT1.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbWT1.Location = new System.Drawing.Point(127, 238); + this.lbWT1.Location = new System.Drawing.Point(169, 293); + this.lbWT1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbWT1.Name = "lbWT1"; - this.lbWT1.Size = new System.Drawing.Size(48, 47); + this.lbWT1.Size = new System.Drawing.Size(64, 58); this.lbWT1.TabIndex = 27; this.lbWT1.Text = "MO"; this.lbWT1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -334,10 +353,10 @@ namespace Wetterstation // picTg2 // this.picTg2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.picTg2.BackgroundImage = global::Wetterstation.Properties.Resources._02d_small; - this.picTg2.Location = new System.Drawing.Point(177, 271); + this.picTg2.Location = new System.Drawing.Point(236, 334); + this.picTg2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.picTg2.Name = "picTg2"; - this.picTg2.Size = new System.Drawing.Size(53, 44); + this.picTg2.Size = new System.Drawing.Size(71, 54); this.picTg2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.picTg2.TabIndex = 29; this.picTg2.TabStop = false; @@ -346,10 +365,10 @@ namespace Wetterstation // picTg3 // this.picTg3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.picTg3.BackgroundImage = global::Wetterstation.Properties.Resources._03n_small; - this.picTg3.Location = new System.Drawing.Point(230, 271); + this.picTg3.Location = new System.Drawing.Point(307, 334); + this.picTg3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.picTg3.Name = "picTg3"; - this.picTg3.Size = new System.Drawing.Size(53, 44); + this.picTg3.Size = new System.Drawing.Size(71, 54); this.picTg3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.picTg3.TabIndex = 30; this.picTg3.TabStop = false; @@ -357,10 +376,10 @@ namespace Wetterstation // picTg4 // this.picTg4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.picTg4.BackgroundImage = global::Wetterstation.Properties.Resources._02d_small; - this.picTg4.Location = new System.Drawing.Point(282, 271); + this.picTg4.Location = new System.Drawing.Point(376, 334); + this.picTg4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.picTg4.Name = "picTg4"; - this.picTg4.Size = new System.Drawing.Size(53, 44); + this.picTg4.Size = new System.Drawing.Size(71, 54); this.picTg4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.picTg4.TabIndex = 31; this.picTg4.TabStop = false; @@ -368,10 +387,10 @@ namespace Wetterstation // picTg5 // this.picTg5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.picTg5.BackgroundImage = global::Wetterstation.Properties.Resources._11d_small; - this.picTg5.Location = new System.Drawing.Point(331, 271); + this.picTg5.Location = new System.Drawing.Point(441, 334); + this.picTg5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.picTg5.Name = "picTg5"; - this.picTg5.Size = new System.Drawing.Size(53, 44); + this.picTg5.Size = new System.Drawing.Size(71, 54); this.picTg5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.picTg5.TabIndex = 32; this.picTg5.TabStop = false; @@ -382,9 +401,10 @@ namespace Wetterstation this.lbWt2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbWt2.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbWt2.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbWt2.Location = new System.Drawing.Point(179, 238); + this.lbWt2.Location = new System.Drawing.Point(239, 293); + this.lbWt2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbWt2.Name = "lbWt2"; - this.lbWt2.Size = new System.Drawing.Size(48, 47); + this.lbWt2.Size = new System.Drawing.Size(64, 58); this.lbWt2.TabIndex = 33; this.lbWt2.Text = "DI"; this.lbWt2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -395,9 +415,10 @@ namespace Wetterstation this.lbWt3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbWt3.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbWt3.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbWt3.Location = new System.Drawing.Point(234, 238); + this.lbWt3.Location = new System.Drawing.Point(312, 293); + this.lbWt3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbWt3.Name = "lbWt3"; - this.lbWt3.Size = new System.Drawing.Size(48, 47); + this.lbWt3.Size = new System.Drawing.Size(64, 58); this.lbWt3.TabIndex = 34; this.lbWt3.Text = "Mi"; this.lbWt3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -408,9 +429,10 @@ namespace Wetterstation this.lbWt4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbWt4.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbWt4.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbWt4.Location = new System.Drawing.Point(282, 238); + this.lbWt4.Location = new System.Drawing.Point(376, 293); + this.lbWt4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbWt4.Name = "lbWt4"; - this.lbWt4.Size = new System.Drawing.Size(48, 47); + this.lbWt4.Size = new System.Drawing.Size(64, 58); this.lbWt4.TabIndex = 35; this.lbWt4.Text = "DO"; this.lbWt4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -421,9 +443,10 @@ namespace Wetterstation this.lbWt5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbWt5.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbWt5.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbWt5.Location = new System.Drawing.Point(333, 238); + this.lbWt5.Location = new System.Drawing.Point(444, 293); + this.lbWt5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbWt5.Name = "lbWt5"; - this.lbWt5.Size = new System.Drawing.Size(48, 47); + this.lbWt5.Size = new System.Drawing.Size(64, 58); this.lbWt5.TabIndex = 36; this.lbWt5.Text = "FR"; this.lbWt5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -434,9 +457,10 @@ namespace Wetterstation this.lbLuftfeuchtAussen.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbLuftfeuchtAussen.Font = new System.Drawing.Font("Arial", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbLuftfeuchtAussen.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbLuftfeuchtAussen.Location = new System.Drawing.Point(412, 159); + this.lbLuftfeuchtAussen.Location = new System.Drawing.Point(549, 196); + this.lbLuftfeuchtAussen.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbLuftfeuchtAussen.Name = "lbLuftfeuchtAussen"; - this.lbLuftfeuchtAussen.Size = new System.Drawing.Size(133, 56); + this.lbLuftfeuchtAussen.Size = new System.Drawing.Size(164, 70); this.lbLuftfeuchtAussen.TabIndex = 37; this.lbLuftfeuchtAussen.Text = "36 %"; this.lbLuftfeuchtAussen.Click += new System.EventHandler(this.LbLuftfeuchtAussen_Click); @@ -447,9 +471,10 @@ namespace Wetterstation this.lbTextLuftfeuchtAussen.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbTextLuftfeuchtAussen.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbTextLuftfeuchtAussen.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbTextLuftfeuchtAussen.Location = new System.Drawing.Point(402, 124); + this.lbTextLuftfeuchtAussen.Location = new System.Drawing.Point(536, 153); + this.lbTextLuftfeuchtAussen.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbTextLuftfeuchtAussen.Name = "lbTextLuftfeuchtAussen"; - this.lbTextLuftfeuchtAussen.Size = new System.Drawing.Size(149, 24); + this.lbTextLuftfeuchtAussen.Size = new System.Drawing.Size(189, 29); this.lbTextLuftfeuchtAussen.TabIndex = 38; this.lbTextLuftfeuchtAussen.Text = "Luftfeuchtigkeit"; // @@ -459,9 +484,10 @@ namespace Wetterstation this.lbTextLuftdruck.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbTextLuftdruck.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbTextLuftdruck.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbTextLuftdruck.Location = new System.Drawing.Point(623, 86); + this.lbTextLuftdruck.Location = new System.Drawing.Point(831, 106); + this.lbTextLuftdruck.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbTextLuftdruck.Name = "lbTextLuftdruck"; - this.lbTextLuftdruck.Size = new System.Drawing.Size(85, 20); + this.lbTextLuftdruck.Size = new System.Drawing.Size(101, 25); this.lbTextLuftdruck.TabIndex = 39; this.lbTextLuftdruck.Text = "Luftdruck"; // @@ -471,9 +497,10 @@ namespace Wetterstation this.lbLuftdruck.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbLuftdruck.Font = new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbLuftdruck.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbLuftdruck.Location = new System.Drawing.Point(615, 107); + this.lbLuftdruck.Location = new System.Drawing.Point(820, 132); + this.lbLuftdruck.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbLuftdruck.Name = "lbLuftdruck"; - this.lbLuftdruck.Size = new System.Drawing.Size(103, 29); + this.lbLuftdruck.Size = new System.Drawing.Size(129, 35); this.lbLuftdruck.TabIndex = 40; this.lbLuftdruck.Text = "999 hPa"; // @@ -484,14 +511,15 @@ namespace Wetterstation this.chart1.ChartAreas.Add(chartArea2); legend2.Name = "Legend1"; this.chart1.Legends.Add(legend2); - this.chart1.Location = new System.Drawing.Point(28, 546); + this.chart1.Location = new System.Drawing.Point(37, 672); + this.chart1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.chart1.Name = "chart1"; this.chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Excel; 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.Size = new System.Drawing.Size(991, 132); this.chart1.TabIndex = 41; this.chart1.Text = "chTendenz"; title2.Name = "Title1"; @@ -501,9 +529,10 @@ namespace Wetterstation // this.lbHintergrund.Anchor = System.Windows.Forms.AnchorStyles.None; this.lbHintergrund.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.lbHintergrund.Location = new System.Drawing.Point(12, 18); + this.lbHintergrund.Location = new System.Drawing.Point(16, 22); + this.lbHintergrund.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbHintergrund.Name = "lbHintergrund"; - this.lbHintergrund.Size = new System.Drawing.Size(984, 301); + this.lbHintergrund.Size = new System.Drawing.Size(1312, 370); this.lbHintergrund.TabIndex = 42; // // lbCity @@ -511,9 +540,10 @@ namespace Wetterstation this.lbCity.BackColor = System.Drawing.Color.Transparent; this.lbCity.Font = new System.Drawing.Font("Arial Black", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbCity.ForeColor = System.Drawing.Color.White; - this.lbCity.Location = new System.Drawing.Point(0, 656); + this.lbCity.Location = new System.Drawing.Point(0, 807); + this.lbCity.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbCity.Name = "lbCity"; - this.lbCity.Size = new System.Drawing.Size(1007, 50); + this.lbCity.Size = new System.Drawing.Size(1343, 62); this.lbCity.TabIndex = 43; this.lbCity.Text = "Marienhausen"; this.lbCity.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -521,10 +551,10 @@ namespace Wetterstation // picTg1 // this.picTg1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.picTg1.BackgroundImage = global::Wetterstation.Properties.Resources._11d_small; - this.picTg1.Location = new System.Drawing.Point(124, 271); + this.picTg1.Location = new System.Drawing.Point(165, 334); + this.picTg1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.picTg1.Name = "picTg1"; - this.picTg1.Size = new System.Drawing.Size(53, 44); + this.picTg1.Size = new System.Drawing.Size(71, 54); this.picTg1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.picTg1.TabIndex = 44; this.picTg1.TabStop = false; @@ -534,19 +564,21 @@ namespace Wetterstation 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.Location = new System.Drawing.Point(1223, 709); + this.btSystemKnopf.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btSystemKnopf.Name = "btSystemKnopf"; - this.btSystemKnopf.Size = new System.Drawing.Size(50, 50); + this.btSystemKnopf.Size = new System.Drawing.Size(67, 62); 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.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackgroundImage = global::Wetterstation.Properties.Resources.Strand; - this.ClientSize = new System.Drawing.Size(1008, 729); + this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.ClientSize = new System.Drawing.Size(1344, 897); this.Controls.Add(this.btSystemKnopf); this.Controls.Add(this.picTg1); this.Controls.Add(this.lbWT1); @@ -583,6 +615,8 @@ namespace Wetterstation this.Controls.Add(this.pictureBox1); this.Controls.Add(this.lbHintergrund); this.Controls.Add(this.lbCity); + this.DoubleBuffered = true; + this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.Name = "Hintergrund"; this.Text = "Wetterstation C++ Kurs Alfatraining Dozent Karol Lassota"; this.Load += new System.EventHandler(this.Hintergrund_Load); diff --git a/Wetterstation/Properties/Resources.Designer.cs b/Wetterstation/Properties/Resources.Designer.cs index 0aeec6171c10cec788ea10e3d09eaf9531b74053..cc75caa7c03cda60c21b599846afdef3f07ecf63 100644 --- a/Wetterstation/Properties/Resources.Designer.cs +++ b/Wetterstation/Properties/Resources.Designer.cs @@ -60,46 +60,6 @@ namespace Wetterstation.Properties { } } - /// <summary> - /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. - /// </summary> - internal static System.Drawing.Bitmap _02d_small { - get { - object obj = ResourceManager.GetObject("02d_small", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// <summary> - /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. - /// </summary> - internal static System.Drawing.Bitmap _03n_small { - get { - object obj = ResourceManager.GetObject("03n_small", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// <summary> - /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. - /// </summary> - internal static System.Drawing.Bitmap _11d_small { - get { - object obj = ResourceManager.GetObject("11d_small", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// <summary> - /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. - /// </summary> - internal static System.Drawing.Bitmap _13n_small { - get { - object obj = ResourceManager.GetObject("13n_small", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - /// <summary> /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. /// </summary> @@ -120,16 +80,6 @@ namespace Wetterstation.Properties { } } - /// <summary> - /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. - /// </summary> - internal static System.Drawing.Bitmap histogramm { - get { - object obj = ResourceManager.GetObject("histogramm", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - /// <summary> /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. /// </summary> @@ -140,26 +90,6 @@ namespace Wetterstation.Properties { } } - /// <summary> - /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. - /// </summary> - internal static System.Drawing.Bitmap Kompassrose1 { - get { - object obj = ResourceManager.GetObject("Kompassrose1", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// <summary> - /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. - /// </summary> - internal static System.Drawing.Bitmap Kompassrose2 { - get { - object obj = ResourceManager.GetObject("Kompassrose2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - /// <summary> /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. /// </summary> diff --git a/Wetterstation/Properties/Resources.resx b/Wetterstation/Properties/Resources.resx index 9555125c6b5e8c9f41d9886fe07c611e8081e0c3..06f98e70157392d279047b926f7efe0193d24986 100644 --- a/Wetterstation/Properties/Resources.resx +++ b/Wetterstation/Properties/Resources.resx @@ -118,39 +118,18 @@ <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="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> </data> <data name="saturn" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\saturn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> - <data name="Kompassrose2" type="System.Resources.ResXFileRef, System.Windows.Forms"> - <value>..\Resources\Kompassrose1.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> - </data> - <data name="Kompassrose1" type="System.Resources.ResXFileRef, System.Windows.Forms"> - <value>..\Resources\Kompassrose.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> - </data> - <data name="histogramm" type="System.Resources.ResXFileRef, System.Windows.Forms"> - <value>..\Resources\histogramm.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> - </data> - <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="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> - </data> <data name="Bild_Dennis_Formatiert" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\Bild_Dennis_Formatiert.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> - <data name="11d_small" type="System.Resources.ResXFileRef, System.Windows.Forms"> - <value>..\Resources\11d_small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> - </data> <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> diff --git a/Wetterstation/Resources/Kompassrose.gif b/Wetterstation/Resources/Kompassrose.gif deleted file mode 100644 index 4208dff54a8710533ece5e33fc5a2640b9c58af3..0000000000000000000000000000000000000000 Binary files a/Wetterstation/Resources/Kompassrose.gif and /dev/null differ diff --git a/Wetterstation/Resources/Kompassrose1.gif b/Wetterstation/Resources/Kompassrose1.gif deleted file mode 100644 index b63dbeb85f9290845a633026decc8000cd0bea32..0000000000000000000000000000000000000000 Binary files a/Wetterstation/Resources/Kompassrose1.gif and /dev/null differ diff --git a/Wetterstation/Resources/histogramm.png b/Wetterstation/Resources/histogramm.png deleted file mode 100644 index 3ae0b847a4634d860adbff1c3047804e0d5fafea..0000000000000000000000000000000000000000 Binary files a/Wetterstation/Resources/histogramm.png and /dev/null differ diff --git a/Wetterstation/Settings.Designer.cs b/Wetterstation/Settings.Designer.cs index 00ad189e28eec3749f0c7ef1219953735b28235d..fbc46c3a2054bf2fabef43534f0b14c9c16da19e 100644 --- a/Wetterstation/Settings.Designer.cs +++ b/Wetterstation/Settings.Designer.cs @@ -46,6 +46,7 @@ this.textBox3 = new System.Windows.Forms.TextBox(); this.lbSettingsLand = new System.Windows.Forms.Label(); this.tbSettingsLand = new System.Windows.Forms.TextBox(); + this.lblFrontendId = new System.Windows.Forms.Label(); this.SuspendLayout(); // // lbSettingsHost @@ -54,9 +55,10 @@ 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.Location = new System.Drawing.Point(31, 70); + this.lbSettingsHost.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbSettingsHost.Name = "lbSettingsHost"; - this.lbSettingsHost.Size = new System.Drawing.Size(55, 19); + this.lbSettingsHost.Size = new System.Drawing.Size(68, 24); this.lbSettingsHost.TabIndex = 0; this.lbSettingsHost.Text = "Host()"; // @@ -64,10 +66,11 @@ // 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.Location = new System.Drawing.Point(13, 96); + this.tbSettingsHost.Margin = new System.Windows.Forms.Padding(4); + this.tbSettingsHost.MinimumSize = new System.Drawing.Size(399, 30); this.tbSettingsHost.Name = "tbSettingsHost"; - this.tbSettingsHost.Size = new System.Drawing.Size(300, 30); + this.tbSettingsHost.Size = new System.Drawing.Size(399, 35); this.tbSettingsHost.TabIndex = 4; // // lbSettingsPort @@ -76,9 +79,10 @@ 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.Location = new System.Drawing.Point(31, 149); + this.lbSettingsPort.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbSettingsPort.Name = "lbSettingsPort"; - this.lbSettingsPort.Size = new System.Drawing.Size(91, 19); + this.lbSettingsPort.Size = new System.Drawing.Size(114, 24); this.lbSettingsPort.TabIndex = 5; this.lbSettingsPort.Text = "Port (1883)"; // @@ -86,10 +90,11 @@ // 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.Location = new System.Drawing.Point(13, 172); + this.tbSettingsPort.Margin = new System.Windows.Forms.Padding(4); + this.tbSettingsPort.MinimumSize = new System.Drawing.Size(399, 30); this.tbSettingsPort.Name = "tbSettingsPort"; - this.tbSettingsPort.Size = new System.Drawing.Size(300, 30); + this.tbSettingsPort.Size = new System.Drawing.Size(399, 35); this.tbSettingsPort.TabIndex = 6; // // lbSettingsClient @@ -98,9 +103,10 @@ 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.Location = new System.Drawing.Point(31, 229); + this.lbSettingsClient.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbSettingsClient.Name = "lbSettingsClient"; - this.lbSettingsClient.Size = new System.Drawing.Size(173, 19); + this.lbSettingsClient.Size = new System.Drawing.Size(212, 24); this.lbSettingsClient.TabIndex = 7; this.lbSettingsClient.Text = "Client (DVES 06236C)"; // @@ -108,20 +114,22 @@ // 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.Location = new System.Drawing.Point(15, 252); + this.tbSettingsClient.Margin = new System.Windows.Forms.Padding(4); + this.tbSettingsClient.MinimumSize = new System.Drawing.Size(399, 30); this.tbSettingsClient.Name = "tbSettingsClient"; - this.tbSettingsClient.Size = new System.Drawing.Size(300, 30); + this.tbSettingsClient.Size = new System.Drawing.Size(399, 35); 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.Location = new System.Drawing.Point(15, 333); + this.tbSettingsUser.Margin = new System.Windows.Forms.Padding(4); + this.tbSettingsUser.MinimumSize = new System.Drawing.Size(399, 30); this.tbSettingsUser.Name = "tbSettingsUser"; - this.tbSettingsUser.Size = new System.Drawing.Size(300, 30); + this.tbSettingsUser.Size = new System.Drawing.Size(399, 35); this.tbSettingsUser.TabIndex = 9; // // lbSettingsUser @@ -130,9 +138,10 @@ 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.Location = new System.Drawing.Point(31, 307); + this.lbSettingsUser.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbSettingsUser.Name = "lbSettingsUser"; - this.lbSettingsUser.Size = new System.Drawing.Size(144, 19); + this.lbSettingsUser.Size = new System.Drawing.Size(177, 24); this.lbSettingsUser.TabIndex = 10; this.lbSettingsUser.Text = "User (DVES User)"; // @@ -142,9 +151,10 @@ 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.Location = new System.Drawing.Point(31, 390); + this.lbSettingsPasswort.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbSettingsPasswort.Name = "lbSettingsPasswort"; - this.lbSettingsPasswort.Size = new System.Drawing.Size(99, 19); + this.lbSettingsPasswort.Size = new System.Drawing.Size(120, 24); this.lbSettingsPasswort.TabIndex = 11; this.lbSettingsPasswort.Text = "Password #"; // @@ -152,10 +162,11 @@ // 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.Location = new System.Drawing.Point(13, 414); + this.textBox1.Margin = new System.Windows.Forms.Padding(4); + this.textBox1.MinimumSize = new System.Drawing.Size(399, 30); this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(300, 30); + this.textBox1.Size = new System.Drawing.Size(399, 35); this.textBox1.TabIndex = 12; // // lbSettingsTopic @@ -164,9 +175,10 @@ 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.Location = new System.Drawing.Point(31, 480); + this.lbSettingsTopic.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbSettingsTopic.Name = "lbSettingsTopic"; - this.lbSettingsTopic.Size = new System.Drawing.Size(251, 19); + this.lbSettingsTopic.Size = new System.Drawing.Size(311, 24); this.lbSettingsTopic.TabIndex = 13; this.lbSettingsTopic.Text = "Topic = %topic% (wetterstation)"; // @@ -174,10 +186,11 @@ // 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.Location = new System.Drawing.Point(13, 503); + this.tbSettingsTopic.Margin = new System.Windows.Forms.Padding(4); + this.tbSettingsTopic.MinimumSize = new System.Drawing.Size(399, 30); this.tbSettingsTopic.Name = "tbSettingsTopic"; - this.tbSettingsTopic.Size = new System.Drawing.Size(300, 30); + this.tbSettingsTopic.Size = new System.Drawing.Size(399, 35); this.tbSettingsTopic.TabIndex = 14; // // lbStettingsFullTopic @@ -186,9 +199,10 @@ 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.Location = new System.Drawing.Point(29, 574); + this.lbStettingsFullTopic.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbStettingsFullTopic.Name = "lbStettingsFullTopic"; - this.lbStettingsFullTopic.Size = new System.Drawing.Size(250, 19); + this.lbStettingsFullTopic.Size = new System.Drawing.Size(303, 24); this.lbStettingsFullTopic.TabIndex = 15; this.lbStettingsFullTopic.Text = "Full Topic (%prefix%/%topic%/)"; // @@ -196,10 +210,11 @@ // 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.Location = new System.Drawing.Point(12, 597); + this.textBox2.Margin = new System.Windows.Forms.Padding(4); + this.textBox2.MinimumSize = new System.Drawing.Size(399, 30); this.textBox2.Name = "textBox2"; - this.textBox2.Size = new System.Drawing.Size(300, 30); + this.textBox2.Size = new System.Drawing.Size(399, 35); this.textBox2.TabIndex = 16; this.textBox2.TextChanged += new System.EventHandler(this.TextBox2_TextChanged); // @@ -209,9 +224,10 @@ 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.Location = new System.Drawing.Point(28, 668); + this.lbSettingsOrt.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbSettingsOrt.Name = "lbSettingsOrt"; - this.lbSettingsOrt.Size = new System.Drawing.Size(91, 19); + this.lbSettingsOrt.Size = new System.Drawing.Size(114, 24); this.lbSettingsOrt.TabIndex = 17; this.lbSettingsOrt.Text = "Stadt / PLZ"; // @@ -219,10 +235,11 @@ // 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.Location = new System.Drawing.Point(15, 691); + this.textBox3.Margin = new System.Windows.Forms.Padding(4); + this.textBox3.MinimumSize = new System.Drawing.Size(399, 30); this.textBox3.Name = "textBox3"; - this.textBox3.Size = new System.Drawing.Size(300, 30); + this.textBox3.Size = new System.Drawing.Size(399, 35); this.textBox3.TabIndex = 18; // // lbSettingsLand @@ -231,9 +248,10 @@ 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.Location = new System.Drawing.Point(37, 754); + this.lbSettingsLand.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbSettingsLand.Name = "lbSettingsLand"; - this.lbSettingsLand.Size = new System.Drawing.Size(168, 19); + this.lbSettingsLand.Size = new System.Drawing.Size(205, 24); this.lbSettingsLand.TabIndex = 19; this.lbSettingsLand.Text = "Länderkennung (DE)"; this.lbSettingsLand.Click += new System.EventHandler(this.Label1_Click); @@ -242,19 +260,33 @@ // 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.Location = new System.Drawing.Point(21, 781); + this.tbSettingsLand.Margin = new System.Windows.Forms.Padding(4); + this.tbSettingsLand.MinimumSize = new System.Drawing.Size(399, 30); this.tbSettingsLand.Name = "tbSettingsLand"; - this.tbSettingsLand.Size = new System.Drawing.Size(300, 30); + this.tbSettingsLand.Size = new System.Drawing.Size(399, 35); this.tbSettingsLand.TabIndex = 20; // + // lblFrontendId + // + this.lblFrontendId.AutoSize = true; + this.lblFrontendId.BackColor = System.Drawing.Color.Transparent; + this.lblFrontendId.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblFrontendId.ForeColor = System.Drawing.Color.White; + this.lblFrontendId.Location = new System.Drawing.Point(31, 29); + this.lblFrontendId.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblFrontendId.Name = "lblFrontendId"; + this.lblFrontendId.Size = new System.Drawing.Size(126, 24); + this.lblFrontendId.TabIndex = 21; + this.lblFrontendId.Text = "Frontend Id:"; + // // Settings // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.White; - this.BackgroundImage = global::Wetterstation.Properties.Resources.earth; - this.ClientSize = new System.Drawing.Size(568, 697); + this.BackColor = System.Drawing.SystemColors.ScrollBar; + this.ClientSize = new System.Drawing.Size(757, 858); + this.Controls.Add(this.lblFrontendId); this.Controls.Add(this.tbSettingsLand); this.Controls.Add(this.lbSettingsLand); this.Controls.Add(this.textBox3); @@ -273,7 +305,7 @@ this.Controls.Add(this.lbSettingsPort); this.Controls.Add(this.tbSettingsHost); this.Controls.Add(this.lbSettingsHost); - this.Margin = new System.Windows.Forms.Padding(2); + this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.Name = "Settings"; this.Text = "Settings"; this.ResumeLayout(false); @@ -301,5 +333,6 @@ private System.Windows.Forms.TextBox textBox3; private System.Windows.Forms.Label lbSettingsLand; private System.Windows.Forms.TextBox tbSettingsLand; + private System.Windows.Forms.Label lblFrontendId; } } \ No newline at end of file diff --git a/Wetterstation/Settings.cs b/Wetterstation/Settings.cs index 037f27e643808ef70abc46cc4545ca27b4f57c9a..55c03335a7472ba99fa5ef59dd0a5032f2e02ad2 100644 --- a/Wetterstation/Settings.cs +++ b/Wetterstation/Settings.cs @@ -4,6 +4,7 @@ using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; +using System.Management; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; @@ -15,6 +16,7 @@ namespace Wetterstation public Settings() { InitializeComponent(); + generateId(); } private void TextBox2_TextChanged(object sender, EventArgs e) @@ -26,6 +28,25 @@ namespace Wetterstation { } + + private void generateId() { + try { + ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_Processor"); + + foreach (ManagementObject queryObj in searcher.Get()) { + Console.WriteLine("-----------------------------------"); + Console.WriteLine("Win32_Processor instance"); + Console.WriteLine("-----------------------------------"); + Console.WriteLine("Architecture: {0}", queryObj["Architecture"]); + Console.WriteLine("Caption: {0}", queryObj["Caption"]); + Console.WriteLine("Family: {0}", queryObj["Family"]); + Console.WriteLine("ProcessorId: {0}", queryObj["ProcessorId"]); + } + } + catch (ManagementException e) { + MessageBox.Show("An error occurred while querying for WMI data: " + e.Message); + } + } } - } +} diff --git a/Wetterstation/Wetterstation.csproj b/Wetterstation/Wetterstation.csproj index d2a0681acb5006ca2039ab7c73c4bba993aaf4d7..e41427beda6309ad169a20c4e3155d1b0e240552 100644 --- a/Wetterstation/Wetterstation.csproj +++ b/Wetterstation/Wetterstation.csproj @@ -44,6 +44,7 @@ </Reference> <Reference Include="System" /> <Reference Include="System.Core" /> + <Reference Include="System.Management" /> <Reference Include="System.Windows.Forms.DataVisualization" /> <Reference Include="System.Xml.Linq" /> <Reference Include="System.Data.DataSetExtensions" />