diff --git a/Wetterstation/Form1.Designer.cs b/Wetterstation/Form1.Designer.cs index 894774c5b890e295bde9ba14febfda606cae5d59..725fc8cecf94e31d0a10bdd285e006e052d3f028 100644 --- a/Wetterstation/Form1.Designer.cs +++ b/Wetterstation/Form1.Designer.cs @@ -95,9 +95,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(168, 21); + this.lbTextInnentemp.Location = new System.Drawing.Point(224, 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"; // @@ -107,9 +108,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"; // @@ -119,9 +121,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(618, 25); + this.lbTextWindSpeed.Location = new System.Drawing.Point(824, 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"; // @@ -131,9 +134,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"; // @@ -143,9 +147,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"; // @@ -153,11 +158,13 @@ namespace Wetterstation // this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.None; this.pictureBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.pictureBox1.BackgroundImage = global::Wetterstation.Properties.Resources.WindRose_neu; - this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.pictureBox1.Location = new System.Drawing.Point(870, 48); + this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.pictureBox1.Image = global::Wetterstation.Properties.Resources.WindRose_neu; + this.pictureBox1.Location = new System.Drawing.Point(1160, 59); + this.pictureBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(89, 90); + this.pictureBox1.Size = new System.Drawing.Size(120, 120); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.TabIndex = 10; this.pictureBox1.TabStop = false; // @@ -167,9 +174,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(124, 43); + this.lbInnenTemp.Location = new System.Drawing.Point(165, 53); + this.lbInnenTemp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbInnenTemp.Name = "lbInnenTemp"; - this.lbInnenTemp.Size = new System.Drawing.Size(211, 75); + this.lbInnenTemp.Size = new System.Drawing.Size(262, 93); this.lbInnenTemp.TabIndex = 13; this.lbInnenTemp.Text = "NA C°"; // @@ -180,9 +188,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(124, 148); + this.lbAussenTemp.Location = new System.Drawing.Point(165, 182); + this.lbAussenTemp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbAussenTemp.Name = "lbAussenTemp"; - this.lbAussenTemp.Size = new System.Drawing.Size(211, 75); + this.lbAussenTemp.Size = new System.Drawing.Size(262, 93); this.lbAussenTemp.TabIndex = 15; this.lbAussenTemp.Text = "NA °C"; // @@ -192,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(657, 46); + this.lbWindSpeed.Location = new System.Drawing.Point(876, 57); + this.lbWindSpeed.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbWindSpeed.Name = "lbWindSpeed"; - this.lbWindSpeed.Size = new System.Drawing.Size(87, 29); + this.lbWindSpeed.Size = new System.Drawing.Size(108, 35); this.lbWindSpeed.TabIndex = 16; this.lbWindSpeed.Text = "NA ms"; // @@ -204,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(409, 46); + this.lbLuftFeuchtInnen.Location = new System.Drawing.Point(545, 57); + this.lbLuftFeuchtInnen.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbLuftFeuchtInnen.Name = "lbLuftFeuchtInnen"; - this.lbLuftFeuchtInnen.Size = new System.Drawing.Size(145, 56); + this.lbLuftFeuchtInnen.Size = new System.Drawing.Size(180, 70); this.lbLuftFeuchtInnen.TabIndex = 17; this.lbLuftFeuchtInnen.Text = "NA %"; // @@ -216,9 +227,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(896, 151); + this.lbWindricht.Location = new System.Drawing.Point(1195, 186); + this.lbWindricht.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbWindricht.Name = "lbWindricht"; - this.lbWindricht.Size = new System.Drawing.Size(39, 24); + this.lbWindricht.Size = new System.Drawing.Size(54, 32); this.lbWindricht.TabIndex = 18; this.lbWindricht.Text = "NA"; // @@ -228,9 +240,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(814, 656); + this.lbUhr.Location = new System.Drawing.Point(1085, 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 = "00:00:00"; // @@ -240,9 +253,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(804, 691); + this.lbDatum.Location = new System.Drawing.Point(1072, 850); + 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 = "01.01.1970"; // @@ -252,9 +266,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"; // @@ -264,9 +279,10 @@ namespace Wetterstation this.lbForecastDay1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastDay1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastDay1.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbForecastDay1.Location = new System.Drawing.Point(127, 238); + this.lbForecastDay1.Location = new System.Drawing.Point(169, 293); + this.lbForecastDay1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbForecastDay1.Name = "lbForecastDay1"; - this.lbForecastDay1.Size = new System.Drawing.Size(48, 47); + this.lbForecastDay1.Size = new System.Drawing.Size(64, 58); this.lbForecastDay1.TabIndex = 27; this.lbForecastDay1.Text = "NA"; this.lbForecastDay1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -274,9 +290,10 @@ namespace Wetterstation // lbForecastImage2 // this.lbForecastImage2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.lbForecastImage2.Location = new System.Drawing.Point(177, 271); + this.lbForecastImage2.Location = new System.Drawing.Point(236, 334); + this.lbForecastImage2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.lbForecastImage2.Name = "lbForecastImage2"; - this.lbForecastImage2.Size = new System.Drawing.Size(53, 55); + this.lbForecastImage2.Size = new System.Drawing.Size(71, 68); this.lbForecastImage2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.lbForecastImage2.TabIndex = 29; this.lbForecastImage2.TabStop = false; @@ -284,9 +301,10 @@ namespace Wetterstation // lbForecastImage3 // this.lbForecastImage3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.lbForecastImage3.Location = new System.Drawing.Point(230, 271); + this.lbForecastImage3.Location = new System.Drawing.Point(307, 334); + this.lbForecastImage3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.lbForecastImage3.Name = "lbForecastImage3"; - this.lbForecastImage3.Size = new System.Drawing.Size(53, 55); + this.lbForecastImage3.Size = new System.Drawing.Size(71, 68); this.lbForecastImage3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.lbForecastImage3.TabIndex = 30; this.lbForecastImage3.TabStop = false; @@ -294,9 +312,10 @@ namespace Wetterstation // lbForecastImage4 // this.lbForecastImage4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.lbForecastImage4.Location = new System.Drawing.Point(282, 271); + this.lbForecastImage4.Location = new System.Drawing.Point(376, 334); + this.lbForecastImage4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.lbForecastImage4.Name = "lbForecastImage4"; - this.lbForecastImage4.Size = new System.Drawing.Size(53, 55); + this.lbForecastImage4.Size = new System.Drawing.Size(71, 68); this.lbForecastImage4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.lbForecastImage4.TabIndex = 31; this.lbForecastImage4.TabStop = false; @@ -304,9 +323,10 @@ namespace Wetterstation // lbForecastImage5 // this.lbForecastImage5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.lbForecastImage5.Location = new System.Drawing.Point(331, 271); + this.lbForecastImage5.Location = new System.Drawing.Point(441, 334); + this.lbForecastImage5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.lbForecastImage5.Name = "lbForecastImage5"; - this.lbForecastImage5.Size = new System.Drawing.Size(53, 55); + this.lbForecastImage5.Size = new System.Drawing.Size(71, 68); this.lbForecastImage5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.lbForecastImage5.TabIndex = 32; this.lbForecastImage5.TabStop = false; @@ -317,9 +337,10 @@ namespace Wetterstation this.lbForecastDay2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastDay2.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastDay2.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbForecastDay2.Location = new System.Drawing.Point(179, 238); + this.lbForecastDay2.Location = new System.Drawing.Point(239, 293); + this.lbForecastDay2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbForecastDay2.Name = "lbForecastDay2"; - this.lbForecastDay2.Size = new System.Drawing.Size(48, 47); + this.lbForecastDay2.Size = new System.Drawing.Size(64, 58); this.lbForecastDay2.TabIndex = 33; this.lbForecastDay2.Text = "NA"; this.lbForecastDay2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -330,9 +351,10 @@ namespace Wetterstation this.lbForecastDay3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastDay3.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastDay3.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbForecastDay3.Location = new System.Drawing.Point(234, 238); + this.lbForecastDay3.Location = new System.Drawing.Point(312, 293); + this.lbForecastDay3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbForecastDay3.Name = "lbForecastDay3"; - this.lbForecastDay3.Size = new System.Drawing.Size(48, 47); + this.lbForecastDay3.Size = new System.Drawing.Size(64, 58); this.lbForecastDay3.TabIndex = 34; this.lbForecastDay3.Text = "NA"; this.lbForecastDay3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -343,9 +365,10 @@ namespace Wetterstation this.lbForecastDay4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastDay4.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastDay4.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbForecastDay4.Location = new System.Drawing.Point(282, 238); + this.lbForecastDay4.Location = new System.Drawing.Point(376, 293); + this.lbForecastDay4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbForecastDay4.Name = "lbForecastDay4"; - this.lbForecastDay4.Size = new System.Drawing.Size(48, 47); + this.lbForecastDay4.Size = new System.Drawing.Size(64, 58); this.lbForecastDay4.TabIndex = 35; this.lbForecastDay4.Text = "NA"; this.lbForecastDay4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -356,9 +379,10 @@ namespace Wetterstation this.lbForecastDay5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastDay5.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastDay5.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbForecastDay5.Location = new System.Drawing.Point(333, 238); + this.lbForecastDay5.Location = new System.Drawing.Point(444, 293); + this.lbForecastDay5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbForecastDay5.Name = "lbForecastDay5"; - this.lbForecastDay5.Size = new System.Drawing.Size(48, 47); + this.lbForecastDay5.Size = new System.Drawing.Size(64, 58); this.lbForecastDay5.TabIndex = 36; this.lbForecastDay5.Text = "NA"; this.lbForecastDay5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -369,9 +393,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(409, 151); + this.lbLuftfeuchtAussen.Location = new System.Drawing.Point(545, 186); + this.lbLuftfeuchtAussen.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbLuftfeuchtAussen.Name = "lbLuftfeuchtAussen"; - this.lbLuftfeuchtAussen.Size = new System.Drawing.Size(145, 56); + this.lbLuftfeuchtAussen.Size = new System.Drawing.Size(180, 70); this.lbLuftfeuchtAussen.TabIndex = 37; this.lbLuftfeuchtAussen.Text = "NA %"; // @@ -381,9 +406,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"; // @@ -393,9 +419,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(656, 88); + this.lbTextLuftdruck.Location = new System.Drawing.Point(875, 108); + 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"; // @@ -405,9 +432,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(630, 108); + this.lbLuftdruck.Location = new System.Drawing.Point(840, 133); + this.lbLuftdruck.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbLuftdruck.Name = "lbLuftdruck"; - this.lbLuftdruck.Size = new System.Drawing.Size(97, 29); + this.lbLuftdruck.Size = new System.Drawing.Size(120, 35); this.lbLuftdruck.TabIndex = 40; this.lbLuftdruck.Text = "NA hPa"; // @@ -415,9 +443,10 @@ namespace Wetterstation // this.lbHintergrund.Anchor = System.Windows.Forms.AnchorStyles.None; this.lbHintergrund.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((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, 354); + this.lbHintergrund.Size = new System.Drawing.Size(1312, 436); this.lbHintergrund.TabIndex = 42; // // lbCity @@ -425,9 +454,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(1, 661); + this.lbCity.Location = new System.Drawing.Point(1, 814); + 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 = "Ort: NA"; this.lbCity.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -436,9 +466,10 @@ namespace Wetterstation // this.lbForecastImage1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastImage1.InitialImage = global::Wetterstation.Properties.Resources._01d_2x; - this.lbForecastImage1.Location = new System.Drawing.Point(124, 271); + this.lbForecastImage1.Location = new System.Drawing.Point(165, 334); + this.lbForecastImage1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.lbForecastImage1.Name = "lbForecastImage1"; - this.lbForecastImage1.Size = new System.Drawing.Size(53, 55); + this.lbForecastImage1.Size = new System.Drawing.Size(71, 68); this.lbForecastImage1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.lbForecastImage1.TabIndex = 44; this.lbForecastImage1.TabStop = false; @@ -448,9 +479,10 @@ namespace Wetterstation this.btSystemKnopf.BackColor = System.Drawing.Color.Transparent; this.btSystemKnopf.BackgroundImage = global::Wetterstation.Properties.Resources.Zahnrad12; this.btSystemKnopf.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.btSystemKnopf.Location = new System.Drawing.Point(968, 688); + this.btSystemKnopf.Location = new System.Drawing.Point(1291, 847); + this.btSystemKnopf.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btSystemKnopf.Name = "btSystemKnopf"; - this.btSystemKnopf.Size = new System.Drawing.Size(30, 30); + this.btSystemKnopf.Size = new System.Drawing.Size(40, 37); this.btSystemKnopf.TabIndex = 46; this.btSystemKnopf.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.btSystemKnopf.UseVisualStyleBackColor = false; @@ -462,9 +494,10 @@ namespace Wetterstation this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.label1.Location = new System.Drawing.Point(477, 291); + this.label1.Location = new System.Drawing.Point(636, 358); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(33, 13); + this.label1.Size = new System.Drawing.Size(41, 17); this.label1.TabIndex = 47; this.label1.Text = "max."; // @@ -474,9 +507,10 @@ namespace Wetterstation this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.label2.Location = new System.Drawing.Point(479, 313); + this.label2.Location = new System.Drawing.Point(639, 385); + this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(30, 13); + this.label2.Size = new System.Drawing.Size(38, 17); this.label2.TabIndex = 48; this.label2.Text = "min."; // @@ -486,9 +520,10 @@ namespace Wetterstation this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.label4.Location = new System.Drawing.Point(526, 271); + this.label4.Location = new System.Drawing.Point(701, 334); + this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(39, 13); + this.label4.Size = new System.Drawing.Size(48, 17); this.label4.TabIndex = 49; this.label4.Text = "Innen"; // @@ -498,9 +533,10 @@ namespace Wetterstation this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.label3.Location = new System.Drawing.Point(583, 271); + this.label3.Location = new System.Drawing.Point(777, 334); + this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(48, 13); + this.label3.Size = new System.Drawing.Size(61, 17); this.label3.TabIndex = 50; this.label3.Text = "Aussen"; // @@ -510,9 +546,10 @@ namespace Wetterstation this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.label5.Location = new System.Drawing.Point(523, 291); + this.label5.Location = new System.Drawing.Point(697, 358); + this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(41, 13); + this.label5.Size = new System.Drawing.Size(51, 17); this.label5.TabIndex = 51; this.label5.Text = "NA C°"; // @@ -522,9 +559,10 @@ namespace Wetterstation this.lbTempMax.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbTempMax.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbTempMax.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbTempMax.Location = new System.Drawing.Point(590, 291); + this.lbTempMax.Location = new System.Drawing.Point(787, 358); + this.lbTempMax.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbTempMax.Name = "lbTempMax"; - this.lbTempMax.Size = new System.Drawing.Size(41, 13); + this.lbTempMax.Size = new System.Drawing.Size(51, 17); this.lbTempMax.TabIndex = 52; this.lbTempMax.Text = "NA C°"; // @@ -534,9 +572,10 @@ namespace Wetterstation this.lbTempMin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbTempMin.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbTempMin.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbTempMin.Location = new System.Drawing.Point(590, 313); + this.lbTempMin.Location = new System.Drawing.Point(787, 385); + this.lbTempMin.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbTempMin.Name = "lbTempMin"; - this.lbTempMin.Size = new System.Drawing.Size(41, 13); + this.lbTempMin.Size = new System.Drawing.Size(51, 17); this.lbTempMin.TabIndex = 54; this.lbTempMin.Text = "NA C°"; // @@ -546,9 +585,10 @@ namespace Wetterstation this.label8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label8.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.label8.Location = new System.Drawing.Point(524, 313); + this.label8.Location = new System.Drawing.Point(699, 385); + this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(41, 13); + this.label8.Size = new System.Drawing.Size(51, 17); this.label8.TabIndex = 53; this.label8.Text = "NA C°"; // @@ -558,10 +598,9 @@ namespace Wetterstation this.lbForecastTemp1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastTemp1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastTemp1.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbForecastTemp1.Location = new System.Drawing.Point(139, 330); - this.lbForecastTemp1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lbForecastTemp1.Location = new System.Drawing.Point(185, 406); this.lbForecastTemp1.Name = "lbForecastTemp1"; - this.lbForecastTemp1.Size = new System.Drawing.Size(41, 13); + this.lbForecastTemp1.Size = new System.Drawing.Size(51, 17); this.lbForecastTemp1.TabIndex = 55; this.lbForecastTemp1.Text = "NA °C"; // @@ -571,10 +610,9 @@ namespace Wetterstation this.lbForecastTemp2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastTemp2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastTemp2.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbForecastTemp2.Location = new System.Drawing.Point(192, 330); - this.lbForecastTemp2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lbForecastTemp2.Location = new System.Drawing.Point(256, 406); this.lbForecastTemp2.Name = "lbForecastTemp2"; - this.lbForecastTemp2.Size = new System.Drawing.Size(41, 13); + this.lbForecastTemp2.Size = new System.Drawing.Size(51, 17); this.lbForecastTemp2.TabIndex = 56; this.lbForecastTemp2.Text = "NA °C"; // @@ -584,10 +622,9 @@ namespace Wetterstation this.lbForecastTemp3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastTemp3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastTemp3.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbForecastTemp3.Location = new System.Drawing.Point(244, 330); - this.lbForecastTemp3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lbForecastTemp3.Location = new System.Drawing.Point(325, 406); this.lbForecastTemp3.Name = "lbForecastTemp3"; - this.lbForecastTemp3.Size = new System.Drawing.Size(41, 13); + this.lbForecastTemp3.Size = new System.Drawing.Size(51, 17); this.lbForecastTemp3.TabIndex = 57; this.lbForecastTemp3.Text = "NA °C"; // @@ -597,10 +634,9 @@ namespace Wetterstation this.lbForecastTemp4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastTemp4.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastTemp4.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbForecastTemp4.Location = new System.Drawing.Point(292, 330); - this.lbForecastTemp4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lbForecastTemp4.Location = new System.Drawing.Point(389, 406); this.lbForecastTemp4.Name = "lbForecastTemp4"; - this.lbForecastTemp4.Size = new System.Drawing.Size(41, 13); + this.lbForecastTemp4.Size = new System.Drawing.Size(51, 17); this.lbForecastTemp4.TabIndex = 58; this.lbForecastTemp4.Text = "NA °C"; // @@ -610,29 +646,28 @@ namespace Wetterstation this.lbForecastTemp5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastTemp5.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastTemp5.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbForecastTemp5.Location = new System.Drawing.Point(346, 330); - this.lbForecastTemp5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lbForecastTemp5.Location = new System.Drawing.Point(461, 406); this.lbForecastTemp5.Name = "lbForecastTemp5"; - this.lbForecastTemp5.Size = new System.Drawing.Size(41, 13); + this.lbForecastTemp5.Size = new System.Drawing.Size(51, 17); this.lbForecastTemp5.TabIndex = 59; this.lbForecastTemp5.Text = "NA °C"; // // cartesianChart1 // - this.cartesianChart1.Location = new System.Drawing.Point(14, 390); - this.cartesianChart1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.cartesianChart1.Location = new System.Drawing.Point(19, 480); + this.cartesianChart1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.cartesianChart1.Name = "cartesianChart1"; - this.cartesianChart1.Size = new System.Drawing.Size(982, 252); + this.cartesianChart1.Size = new System.Drawing.Size(1309, 310); this.cartesianChart1.TabIndex = 60; this.cartesianChart1.Text = "cartesianChart1"; // // 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.saturn; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.ClientSize = new System.Drawing.Size(1008, 729); + this.ClientSize = new System.Drawing.Size(1344, 897); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.cartesianChart1); this.Controls.Add(this.lbForecastTemp5); @@ -679,6 +714,7 @@ namespace Wetterstation 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"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Hintergrund_FormClosed); diff --git a/Wetterstation/Form1.cs b/Wetterstation/Form1.cs index 2e7112191794ee49c5e3370d08b8d63614772eec..c0badb3c10301a13c6904b1fbb681ed53f2547d2 100644 --- a/Wetterstation/Form1.cs +++ b/Wetterstation/Form1.cs @@ -145,10 +145,29 @@ namespace Wetterstation lbWindSpeed.Invoke(new Action(() => { lbWindSpeed.Text = weatherData.windSpeed + " ms"; })); lbWindricht.Invoke(new Action(() => { lbWindricht.Text = weatherData.windDeg + " °"; })); lbLuftdruck.Invoke(new Action(() => { lbLuftdruck.Text = weatherData.pressure + " mbar"; })); + pictureBox1.Invoke(new Action(() => { + pictureBox1.Image = RotateImage((Bitmap)global::Wetterstation.Properties.Resources.ResourceManager.GetObject("WindRose_neu"), (int)weatherData.windDeg); + })); } catch (Exception ignored) { } } + private Bitmap RotateImage(Bitmap bmp, float angle) + { + float height = bmp.Height; + float width = bmp.Width; + int hypotenuse = System.Convert.ToInt32(System.Math.Floor(Math.Sqrt(height * height + width * width))); + Bitmap rotatedImage = new Bitmap(hypotenuse, hypotenuse); + using (Graphics g = Graphics.FromImage(rotatedImage)) + { + g.TranslateTransform((float)rotatedImage.Width / 2, (float)rotatedImage.Height / 2); //set the rotation point as the center into the matrix + g.RotateTransform(angle); //rotate + g.TranslateTransform(-(float)rotatedImage.Width / 2, -(float)rotatedImage.Height / 2); //restore rotation point into the matrix + g.DrawImage(bmp, (hypotenuse - width) / 2, (hypotenuse - height) / 2, width, height); + } + return rotatedImage; + } + public void updateFormForecast(String message) { Console.WriteLine("Entered updateFormForecast");