diff --git a/Wetterstation/Form1.Designer.cs b/Wetterstation/Form1.Designer.cs index a1e3dfe310993095dc5475fdedf05c6d95de5b51..fb941e23ac510915100d8e331552c422c4a06172 100644 --- a/Wetterstation/Form1.Designer.cs +++ b/Wetterstation/Form1.Designer.cs @@ -36,10 +36,10 @@ namespace Wetterstation /// </summary> private void InitializeComponent() { - System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); - System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); - System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); - System.Windows.Forms.DataVisualization.Charting.Title title2 = new System.Windows.Forms.DataVisualization.Charting.Title(); + System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea3 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); + System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); + System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.Title title3 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.lbTextInnentemp = new System.Windows.Forms.Label(); this.lbTextAussentemp = new System.Windows.Forms.Label(); this.lbTextWindSpeed = new System.Windows.Forms.Label(); @@ -53,10 +53,6 @@ namespace Wetterstation this.lbWindricht = new System.Windows.Forms.Label(); this.lbUhr = new System.Windows.Forms.Label(); this.lbDatum = new System.Windows.Forms.Label(); - this.LED_N = new System.Windows.Forms.Label(); - this.LED_O = new System.Windows.Forms.Label(); - this.LED_S = new System.Windows.Forms.Label(); - this.LED_W = new System.Windows.Forms.Label(); this.lbTextTendenz = new System.Windows.Forms.Label(); this.lbWT1 = new System.Windows.Forms.Label(); this.picTg2 = new System.Windows.Forms.PictureBox(); @@ -76,6 +72,16 @@ namespace Wetterstation this.lbCity = new System.Windows.Forms.Label(); this.picTg1 = new System.Windows.Forms.PictureBox(); this.btSystemKnopf = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picTg2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picTg3)).BeginInit(); @@ -91,10 +97,9 @@ 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(213, 26); - this.lbTextInnentemp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbTextInnentemp.Location = new System.Drawing.Point(160, 21); this.lbTextInnentemp.Name = "lbTextInnentemp"; - this.lbTextInnentemp.Size = new System.Drawing.Size(203, 29); + this.lbTextInnentemp.Size = new System.Drawing.Size(163, 24); this.lbTextInnentemp.TabIndex = 0; this.lbTextInnentemp.Text = "Innentemperatur"; // @@ -104,10 +109,9 @@ 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(203, 153); - this.lbTextAussentemp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbTextAussentemp.Location = new System.Drawing.Point(152, 124); this.lbTextAussentemp.Name = "lbTextAussentemp"; - this.lbTextAussentemp.Size = new System.Drawing.Size(224, 29); + this.lbTextAussentemp.Size = new System.Drawing.Size(180, 24); this.lbTextAussentemp.TabIndex = 1; this.lbTextAussentemp.Text = "Aussentemperatur"; // @@ -117,10 +121,9 @@ 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(776, 31); - this.lbTextWindSpeed.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbTextWindSpeed.Location = new System.Drawing.Point(582, 25); this.lbTextWindSpeed.Name = "lbTextWindSpeed"; - this.lbTextWindSpeed.Size = new System.Drawing.Size(208, 24); + this.lbTextWindSpeed.Size = new System.Drawing.Size(165, 18); this.lbTextWindSpeed.TabIndex = 2; this.lbTextWindSpeed.Text = "Windgeschwindigkeit"; this.lbTextWindSpeed.Click += new System.EventHandler(this.Windgeschwindigkeit_Click); @@ -131,10 +134,9 @@ 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(536, 26); - this.lbTextLuftfeuchtInnen.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbTextLuftfeuchtInnen.Location = new System.Drawing.Point(402, 21); this.lbTextLuftfeuchtInnen.Name = "lbTextLuftfeuchtInnen"; - this.lbTextLuftfeuchtInnen.Size = new System.Drawing.Size(189, 29); + this.lbTextLuftfeuchtInnen.Size = new System.Drawing.Size(149, 24); this.lbTextLuftfeuchtInnen.TabIndex = 3; this.lbTextLuftfeuchtInnen.Text = "Luftfeuchtigkeit"; this.lbTextLuftfeuchtInnen.Click += new System.EventHandler(this.LbTextLuftfeucht_Click); @@ -145,10 +147,9 @@ 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(1133, 26); - this.Windrichtung.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Windrichtung.Location = new System.Drawing.Point(850, 21); this.Windrichtung.Name = "Windrichtung"; - this.Windrichtung.Size = new System.Drawing.Size(165, 29); + this.Windrichtung.Size = new System.Drawing.Size(134, 24); this.Windrichtung.TabIndex = 4; this.Windrichtung.Text = "Windrichtung"; // @@ -158,10 +159,9 @@ namespace Wetterstation this.pictureBox1.BackColor = System.Drawing.Color.Transparent; 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.Location = new System.Drawing.Point(871, 48); this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(119, 111); + this.pictureBox1.Size = new System.Drawing.Size(89, 90); this.pictureBox1.TabIndex = 10; this.pictureBox1.TabStop = false; this.pictureBox1.Click += new System.EventHandler(this.PictureBox1_Click); @@ -172,10 +172,9 @@ 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(177, 54); - this.lbInnenTemp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbInnenTemp.Location = new System.Drawing.Point(133, 44); this.lbInnenTemp.Name = "lbInnenTemp"; - this.lbInnenTemp.Size = new System.Drawing.Size(306, 93); + this.lbInnenTemp.Size = new System.Drawing.Size(248, 75); this.lbInnenTemp.TabIndex = 13; this.lbInnenTemp.Text = "23,3 C°"; this.lbInnenTemp.BackColorChanged += new System.EventHandler(this.HierInnen_BackColorChanged); @@ -187,10 +186,9 @@ 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(176, 186); - this.lbAussenTemp.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbAussenTemp.Location = new System.Drawing.Point(132, 151); this.lbAussenTemp.Name = "lbAussenTemp"; - this.lbAussenTemp.Size = new System.Drawing.Size(306, 93); + this.lbAussenTemp.Size = new System.Drawing.Size(248, 75); this.lbAussenTemp.TabIndex = 15; this.lbAussenTemp.Text = "25,7 C°"; this.lbAussenTemp.Click += new System.EventHandler(this.HierAussen_Click); @@ -201,10 +199,9 @@ 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(813, 55); - this.lbWindSpeed.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbWindSpeed.Location = new System.Drawing.Point(610, 45); this.lbWindSpeed.Name = "lbWindSpeed"; - this.lbWindSpeed.Size = new System.Drawing.Size(142, 35); + this.lbWindSpeed.Size = new System.Drawing.Size(113, 29); this.lbWindSpeed.TabIndex = 16; this.lbWindSpeed.Text = "12 m/sec"; // @@ -214,10 +211,9 @@ 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(547, 63); - this.lbLuftFeuchtInnen.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbLuftFeuchtInnen.Location = new System.Drawing.Point(410, 51); this.lbLuftFeuchtInnen.Name = "lbLuftFeuchtInnen"; - this.lbLuftFeuchtInnen.Size = new System.Drawing.Size(164, 70); + this.lbLuftFeuchtInnen.Size = new System.Drawing.Size(133, 56); this.lbLuftFeuchtInnen.TabIndex = 17; this.lbLuftFeuchtInnen.Text = "36 %"; this.lbLuftFeuchtInnen.Click += new System.EventHandler(this.LbLuftFeuchtInnen_Click); @@ -228,10 +224,9 @@ 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(1185, 199); - this.lbWindricht.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbWindricht.Location = new System.Drawing.Point(889, 162); this.lbWindricht.Name = "lbWindricht"; - this.lbWindricht.Size = new System.Drawing.Size(67, 32); + this.lbWindricht.Size = new System.Drawing.Size(50, 24); this.lbWindricht.TabIndex = 18; this.lbWindricht.Text = "Süd"; // @@ -241,10 +236,9 @@ 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(1188, 807); - this.lbUhr.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbUhr.Location = new System.Drawing.Point(817, 656); this.lbUhr.Name = "lbUhr"; - this.lbUhr.Size = new System.Drawing.Size(137, 35); + this.lbUhr.Size = new System.Drawing.Size(105, 29); this.lbUhr.TabIndex = 19; this.lbUhr.Text = "22:56:12"; this.lbUhr.Click += new System.EventHandler(this.HierUhr_Click); @@ -255,84 +249,22 @@ 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(1171, 857); - this.lbDatum.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbDatum.Location = new System.Drawing.Point(804, 696); this.lbDatum.Name = "lbDatum"; - this.lbDatum.Size = new System.Drawing.Size(151, 32); + this.lbDatum.Size = new System.Drawing.Size(118, 24); this.lbDatum.TabIndex = 20; this.lbDatum.Text = "24.12.1872"; this.lbDatum.Click += new System.EventHandler(this.HierDatum_Click); // - // LED_N - // - this.LED_N.AllowDrop = true; - this.LED_N.AutoEllipsis = true; - 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(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(70, 17); - this.LED_N.TabIndex = 21; - this.LED_N.Text = "LED Nord"; - this.LED_N.Click += new System.EventHandler(this.LED_Click); - // - // LED_O - // - this.LED_O.AllowDrop = true; - this.LED_O.AutoEllipsis = true; - 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(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(61, 17); - this.LED_O.TabIndex = 22; - this.LED_O.Text = "LED Ost"; - this.LED_O.Click += new System.EventHandler(this.Label1_Click); - // - // LED_S - // - this.LED_S.AllowDrop = true; - this.LED_S.AutoEllipsis = true; - 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(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(72, 17); - this.LED_S.TabIndex = 23; - this.LED_S.Text = "LED Sued"; - this.LED_S.Click += new System.EventHandler(this.LED_S_Click); - // - // LED_W - // - this.LED_W.AllowDrop = true; - this.LED_W.AutoEllipsis = true; - 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(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(71, 17); - this.LED_W.TabIndex = 24; - this.LED_W.Text = "LED West"; - this.LED_W.Click += new System.EventHandler(this.LED_W_Click); - // // lbTextTendenz // this.lbTextTendenz.AutoSize = true; 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(48, 32); - this.lbTextTendenz.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbTextTendenz.Location = new System.Drawing.Point(36, 26); this.lbTextTendenz.Name = "lbTextTendenz"; - this.lbTextTendenz.Size = new System.Drawing.Size(80, 20); + this.lbTextTendenz.Size = new System.Drawing.Size(68, 16); this.lbTextTendenz.TabIndex = 25; this.lbTextTendenz.Text = "Tendenz"; // @@ -342,10 +274,9 @@ 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(169, 293); - this.lbWT1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbWT1.Location = new System.Drawing.Point(127, 238); this.lbWT1.Name = "lbWT1"; - this.lbWT1.Size = new System.Drawing.Size(64, 58); + this.lbWT1.Size = new System.Drawing.Size(48, 47); this.lbWT1.TabIndex = 27; this.lbWT1.Text = "MO"; this.lbWT1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -353,10 +284,9 @@ namespace Wetterstation // picTg2 // this.picTg2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.picTg2.Location = new System.Drawing.Point(236, 334); - this.picTg2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.picTg2.Location = new System.Drawing.Point(177, 271); this.picTg2.Name = "picTg2"; - this.picTg2.Size = new System.Drawing.Size(71, 54); + this.picTg2.Size = new System.Drawing.Size(53, 44); this.picTg2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.picTg2.TabIndex = 29; this.picTg2.TabStop = false; @@ -365,10 +295,9 @@ namespace Wetterstation // picTg3 // this.picTg3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.picTg3.Location = new System.Drawing.Point(307, 334); - this.picTg3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.picTg3.Location = new System.Drawing.Point(230, 271); this.picTg3.Name = "picTg3"; - this.picTg3.Size = new System.Drawing.Size(71, 54); + this.picTg3.Size = new System.Drawing.Size(53, 44); this.picTg3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.picTg3.TabIndex = 30; this.picTg3.TabStop = false; @@ -376,10 +305,9 @@ namespace Wetterstation // picTg4 // this.picTg4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.picTg4.Location = new System.Drawing.Point(376, 334); - this.picTg4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.picTg4.Location = new System.Drawing.Point(282, 271); this.picTg4.Name = "picTg4"; - this.picTg4.Size = new System.Drawing.Size(71, 54); + this.picTg4.Size = new System.Drawing.Size(53, 44); this.picTg4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.picTg4.TabIndex = 31; this.picTg4.TabStop = false; @@ -387,10 +315,9 @@ namespace Wetterstation // picTg5 // this.picTg5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.picTg5.Location = new System.Drawing.Point(441, 334); - this.picTg5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.picTg5.Location = new System.Drawing.Point(331, 271); this.picTg5.Name = "picTg5"; - this.picTg5.Size = new System.Drawing.Size(71, 54); + this.picTg5.Size = new System.Drawing.Size(53, 44); this.picTg5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.picTg5.TabIndex = 32; this.picTg5.TabStop = false; @@ -401,10 +328,9 @@ 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(239, 293); - this.lbWt2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbWt2.Location = new System.Drawing.Point(179, 238); this.lbWt2.Name = "lbWt2"; - this.lbWt2.Size = new System.Drawing.Size(64, 58); + this.lbWt2.Size = new System.Drawing.Size(48, 47); this.lbWt2.TabIndex = 33; this.lbWt2.Text = "DI"; this.lbWt2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -415,10 +341,9 @@ 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(312, 293); - this.lbWt3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbWt3.Location = new System.Drawing.Point(234, 238); this.lbWt3.Name = "lbWt3"; - this.lbWt3.Size = new System.Drawing.Size(64, 58); + this.lbWt3.Size = new System.Drawing.Size(48, 47); this.lbWt3.TabIndex = 34; this.lbWt3.Text = "Mi"; this.lbWt3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -429,10 +354,9 @@ 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(376, 293); - this.lbWt4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbWt4.Location = new System.Drawing.Point(282, 238); this.lbWt4.Name = "lbWt4"; - this.lbWt4.Size = new System.Drawing.Size(64, 58); + this.lbWt4.Size = new System.Drawing.Size(48, 47); this.lbWt4.TabIndex = 35; this.lbWt4.Text = "DO"; this.lbWt4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -443,10 +367,9 @@ 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(444, 293); - this.lbWt5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbWt5.Location = new System.Drawing.Point(333, 238); this.lbWt5.Name = "lbWt5"; - this.lbWt5.Size = new System.Drawing.Size(64, 58); + this.lbWt5.Size = new System.Drawing.Size(48, 47); this.lbWt5.TabIndex = 36; this.lbWt5.Text = "FR"; this.lbWt5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -457,10 +380,9 @@ 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(549, 196); - this.lbLuftfeuchtAussen.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbLuftfeuchtAussen.Location = new System.Drawing.Point(412, 159); this.lbLuftfeuchtAussen.Name = "lbLuftfeuchtAussen"; - this.lbLuftfeuchtAussen.Size = new System.Drawing.Size(164, 70); + this.lbLuftfeuchtAussen.Size = new System.Drawing.Size(133, 56); this.lbLuftfeuchtAussen.TabIndex = 37; this.lbLuftfeuchtAussen.Text = "36 %"; this.lbLuftfeuchtAussen.Click += new System.EventHandler(this.LbLuftfeuchtAussen_Click); @@ -471,10 +393,9 @@ 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(536, 153); - this.lbTextLuftfeuchtAussen.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbTextLuftfeuchtAussen.Location = new System.Drawing.Point(402, 124); this.lbTextLuftfeuchtAussen.Name = "lbTextLuftfeuchtAussen"; - this.lbTextLuftfeuchtAussen.Size = new System.Drawing.Size(189, 29); + this.lbTextLuftfeuchtAussen.Size = new System.Drawing.Size(149, 24); this.lbTextLuftfeuchtAussen.TabIndex = 38; this.lbTextLuftfeuchtAussen.Text = "Luftfeuchtigkeit"; // @@ -484,10 +405,9 @@ 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(831, 106); - this.lbTextLuftdruck.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbTextLuftdruck.Location = new System.Drawing.Point(623, 86); this.lbTextLuftdruck.Name = "lbTextLuftdruck"; - this.lbTextLuftdruck.Size = new System.Drawing.Size(101, 25); + this.lbTextLuftdruck.Size = new System.Drawing.Size(85, 20); this.lbTextLuftdruck.TabIndex = 39; this.lbTextLuftdruck.Text = "Luftdruck"; // @@ -497,42 +417,39 @@ 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(820, 132); - this.lbLuftdruck.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbLuftdruck.Location = new System.Drawing.Point(615, 107); this.lbLuftdruck.Name = "lbLuftdruck"; - this.lbLuftdruck.Size = new System.Drawing.Size(129, 35); + this.lbLuftdruck.Size = new System.Drawing.Size(103, 29); this.lbLuftdruck.TabIndex = 40; this.lbLuftdruck.Text = "999 hPa"; // // chart1 // this.chart1.Anchor = System.Windows.Forms.AnchorStyles.None; - chartArea2.Name = "ChartArea1"; - this.chart1.ChartAreas.Add(chartArea2); - legend2.Name = "Legend1"; - this.chart1.Legends.Add(legend2); - this.chart1.Location = new System.Drawing.Point(37, 672); - this.chart1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + chartArea3.Name = "ChartArea1"; + this.chart1.ChartAreas.Add(chartArea3); + legend3.Name = "Legend1"; + this.chart1.Legends.Add(legend3); + this.chart1.Location = new System.Drawing.Point(28, 546); 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(991, 132); + series3.ChartArea = "ChartArea1"; + series3.Legend = "Legend1"; + series3.Name = "Series1"; + this.chart1.Series.Add(series3); + this.chart1.Size = new System.Drawing.Size(743, 107); this.chart1.TabIndex = 41; this.chart1.Text = "chTendenz"; - title2.Name = "Title1"; - this.chart1.Titles.Add(title2); + title3.Name = "Title1"; + this.chart1.Titles.Add(title3); // // lbHintergrund // 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(16, 22); - this.lbHintergrund.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + 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.Name = "lbHintergrund"; - this.lbHintergrund.Size = new System.Drawing.Size(1312, 370); + this.lbHintergrund.Size = new System.Drawing.Size(984, 301); this.lbHintergrund.TabIndex = 42; // // lbCity @@ -540,10 +457,9 @@ 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, 807); - this.lbCity.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbCity.Location = new System.Drawing.Point(0, 656); this.lbCity.Name = "lbCity"; - this.lbCity.Size = new System.Drawing.Size(1343, 62); + this.lbCity.Size = new System.Drawing.Size(1007, 50); this.lbCity.TabIndex = 43; this.lbCity.Text = "Marienhausen"; this.lbCity.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -551,10 +467,9 @@ namespace Wetterstation // picTg1 // this.picTg1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.picTg1.Location = new System.Drawing.Point(165, 334); - this.picTg1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.picTg1.Location = new System.Drawing.Point(124, 271); this.picTg1.Name = "picTg1"; - this.picTg1.Size = new System.Drawing.Size(71, 54); + this.picTg1.Size = new System.Drawing.Size(53, 44); this.picTg1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.picTg1.TabIndex = 44; this.picTg1.TabStop = false; @@ -562,23 +477,123 @@ namespace Wetterstation // btSystemKnopf // this.btSystemKnopf.BackColor = System.Drawing.Color.Transparent; - this.btSystemKnopf.BackgroundImage = global::Wetterstation.Properties.Resources.Systemknopf; - this.btSystemKnopf.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.btSystemKnopf.Location = new System.Drawing.Point(1223, 709); - this.btSystemKnopf.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.btSystemKnopf.BackgroundImage = global::Wetterstation.Properties.Resources.Zahnrad12; + this.btSystemKnopf.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.btSystemKnopf.Location = new System.Drawing.Point(966, 687); this.btSystemKnopf.Name = "btSystemKnopf"; - this.btSystemKnopf.Size = new System.Drawing.Size(67, 62); + this.btSystemKnopf.Size = new System.Drawing.Size(30, 30); this.btSystemKnopf.TabIndex = 46; this.btSystemKnopf.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.btSystemKnopf.UseVisualStyleBackColor = false; + this.btSystemKnopf.Click += new System.EventHandler(this.BtSystemKnopf_Click); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(75, 493); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(29, 13); + this.label1.TabIndex = 47; + this.label1.Text = "max."; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(75, 515); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(26, 13); + this.label2.TabIndex = 48; + this.label2.Text = "min."; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(122, 474); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(34, 13); + this.label4.TabIndex = 49; + this.label4.Text = "Innen"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(215, 474); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(42, 13); + this.label3.TabIndex = 50; + this.label3.Text = "Aussen"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(121, 493); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(72, 13); + this.label5.TabIndex = 51; + this.label5.Text = "12,4 C° 17:45"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(211, 493); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(72, 13); + this.label6.TabIndex = 52; + this.label6.Text = "2,4 C° 22:67h"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(211, 515); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(72, 13); + this.label7.TabIndex = 54; + this.label7.Text = "2,4 C° 22:67h"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(121, 515); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(72, 13); + this.label8.TabIndex = 53; + this.label8.Text = "12,4 C° 17:45"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(243, 225); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(72, 13); + this.label9.TabIndex = 56; + this.label9.Text = "2,4 C° 22:67h"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(153, 225); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(72, 13); + this.label10.TabIndex = 55; + this.label10.Text = "12,4 C° 17:45"; // // Hintergrund // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackgroundImage = global::Wetterstation.Properties.Resources.Strand; + this.BackgroundImage = global::Wetterstation.Properties.Resources.Bild_Dennis_Formatiert; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.ClientSize = new System.Drawing.Size(1344, 897); + this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.label9); + this.Controls.Add(this.label10); + this.Controls.Add(this.label7); + this.Controls.Add(this.label8); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.label3); + this.Controls.Add(this.label4); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); this.Controls.Add(this.btSystemKnopf); this.Controls.Add(this.picTg1); this.Controls.Add(this.lbWT1); @@ -597,10 +612,6 @@ namespace Wetterstation this.Controls.Add(this.picTg3); this.Controls.Add(this.picTg2); this.Controls.Add(this.lbTextTendenz); - this.Controls.Add(this.LED_W); - this.Controls.Add(this.LED_S); - this.Controls.Add(this.LED_O); - this.Controls.Add(this.LED_N); this.Controls.Add(this.lbDatum); this.Controls.Add(this.lbUhr); this.Controls.Add(this.lbWindricht); @@ -616,7 +627,6 @@ 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 C++ Kurs Alfatraining Dozent Karol Lassota"; this.Load += new System.EventHandler(this.Hintergrund_Load); @@ -647,10 +657,6 @@ namespace Wetterstation private System.Windows.Forms.Label lbWindricht; private System.Windows.Forms.Label lbUhr; private System.Windows.Forms.Label lbDatum; - private System.Windows.Forms.Label LED_N; - private System.Windows.Forms.Label LED_O; - private System.Windows.Forms.Label LED_S; - private System.Windows.Forms.Label LED_W; private System.Windows.Forms.Label lbTextTendenz; private Label lbWT1; private PictureBox picTg2; @@ -670,6 +676,16 @@ namespace Wetterstation private Label lbCity; private PictureBox picTg1; private Button btSystemKnopf; + private Label label1; + private Label label2; + private Label label4; + private Label label3; + private Label label5; + private Label label6; + private Label label7; + private Label label8; + private Label label9; + private Label label10; } } diff --git a/Wetterstation/Form1.cs b/Wetterstation/Form1.cs index 0aae0218fa9d455154c33c695e31ad8ee635fae0..94bcd1b613b38dc6a6f0aa4f2b3a9d733b1facac 100644 --- a/Wetterstation/Form1.cs +++ b/Wetterstation/Form1.cs @@ -207,5 +207,13 @@ namespace Wetterstation { } + + private void BtSystemKnopf_Click(object sender, EventArgs e) + { + Form frm = new Settings(); + // abhängig von Form1 + frm.Show(this); + + } } } diff --git a/Wetterstation/Program.cs b/Wetterstation/Program.cs index e5aa54fa40aecb4eee9e7a70ac31b20f7b8a9c02..0254cde137b11896c5f17744a819b64309917ac8 100644 --- a/Wetterstation/Program.cs +++ b/Wetterstation/Program.cs @@ -18,8 +18,8 @@ namespace Wetterstation static void Main() { Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - // Application.Run(new Hintergrund()); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Hintergrund()); Application.Run(new Settings()); } } diff --git a/Wetterstation/Properties/Resources.Designer.cs b/Wetterstation/Properties/Resources.Designer.cs index cc75caa7c03cda60c21b599846afdef3f07ecf63..75646b9e32c99a59972cb42e2200c2c1f5458edd 100644 --- a/Wetterstation/Properties/Resources.Designer.cs +++ b/Wetterstation/Properties/Resources.Designer.cs @@ -119,5 +119,45 @@ namespace Wetterstation.Properties { return ((System.Drawing.Bitmap)(obj)); } } + + /// <summary> + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap Zahnrad { + get { + object obj = ResourceManager.GetObject("Zahnrad", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap Zahnrad1 { + get { + object obj = ResourceManager.GetObject("Zahnrad1", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap Zahnrad11 { + get { + object obj = ResourceManager.GetObject("Zahnrad11", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap Zahnrad12 { + get { + object obj = ResourceManager.GetObject("Zahnrad12", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } diff --git a/Wetterstation/Properties/Resources.resx b/Wetterstation/Properties/Resources.resx index 06f98e70157392d279047b926f7efe0193d24986..3a5128575992cf212cf4a445d97f1a061e4b7577 100644 --- a/Wetterstation/Properties/Resources.resx +++ b/Wetterstation/Properties/Resources.resx @@ -118,22 +118,34 @@ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> + <data name="earth" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\earth.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> <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="earth" type="System.Resources.ResXFileRef, System.Windows.Forms"> - <value>..\Resources\earth.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + <data name="Zahnrad" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\Zahnrad.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="Zahnrad1" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\Zahnrad1.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="Systemknopf" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\Systemknopf.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> <data name="Strand" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\Strand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> - <data name="Systemknopf" type="System.Resources.ResXFileRef, System.Windows.Forms"> - <value>..\Resources\Systemknopf.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + <data name="Zahnrad11" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\Zahnrad11.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="Zahnrad12" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\Zahnrad12.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> </root> \ No newline at end of file diff --git a/Wetterstation/Resources/Zahnrad.png b/Wetterstation/Resources/Zahnrad.png new file mode 100644 index 0000000000000000000000000000000000000000..8805976c734a784b53ed9fc5d72c70af36892441 Binary files /dev/null and b/Wetterstation/Resources/Zahnrad.png differ diff --git a/Wetterstation/Resources/Zahnrad1.png b/Wetterstation/Resources/Zahnrad1.png new file mode 100644 index 0000000000000000000000000000000000000000..2b45ad9814f698a223f1df3b5f7fdb7bad90af2e Binary files /dev/null and b/Wetterstation/Resources/Zahnrad1.png differ diff --git a/Wetterstation/Resources/Zahnrad11.png b/Wetterstation/Resources/Zahnrad11.png new file mode 100644 index 0000000000000000000000000000000000000000..05eefb59fd5fde45b44641cb664732905148cf3d Binary files /dev/null and b/Wetterstation/Resources/Zahnrad11.png differ diff --git a/Wetterstation/Resources/Zahnrad12.png b/Wetterstation/Resources/Zahnrad12.png new file mode 100644 index 0000000000000000000000000000000000000000..05eefb59fd5fde45b44641cb664732905148cf3d Binary files /dev/null and b/Wetterstation/Resources/Zahnrad12.png differ diff --git a/Wetterstation/Settings.Designer.cs b/Wetterstation/Settings.Designer.cs index 4e1b4923b7a644b32e7b3777eaffe62a413cf889..1e4509977fdc39c5f3394b2cc6453a6be852b36e 100644 --- a/Wetterstation/Settings.Designer.cs +++ b/Wetterstation/Settings.Designer.cs @@ -38,220 +38,226 @@ this.lbSettingsUser = new System.Windows.Forms.Label(); this.lbSettingsPasswort = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); - this.lbSettingsTopic = new System.Windows.Forms.Label(); - this.tbSettingsTopic = new System.Windows.Forms.TextBox(); - this.lbStettingsFullTopic = new System.Windows.Forms.Label(); - this.textBox2 = new System.Windows.Forms.TextBox(); + this.lbPlatzhalter1 = new System.Windows.Forms.Label(); + this.tbPlatzhalter1 = new System.Windows.Forms.TextBox(); + this.lbPlatzhalter2 = new System.Windows.Forms.Label(); + this.tbPlatzhalter2 = new System.Windows.Forms.TextBox(); this.lbSettingsOrt = new System.Windows.Forms.Label(); this.textBox3 = new System.Windows.Forms.TextBox(); this.lbSettingsLand = new System.Windows.Forms.Label(); this.tbSettingsLand = new System.Windows.Forms.TextBox(); this.lblFrontendId = new System.Windows.Forms.Label(); + this.btSichern = new System.Windows.Forms.Button(); this.SuspendLayout(); // // lbSettingsHost // + this.lbSettingsHost.Anchor = System.Windows.Forms.AnchorStyles.None; this.lbSettingsHost.AutoSize = true; this.lbSettingsHost.BackColor = System.Drawing.Color.Transparent; - this.lbSettingsHost.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lbSettingsHost.ForeColor = System.Drawing.Color.White; - this.lbSettingsHost.Location = new System.Drawing.Point(31, 70); - this.lbSettingsHost.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbSettingsHost.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsHost.ForeColor = System.Drawing.Color.DarkSlateGray; + this.lbSettingsHost.Location = new System.Drawing.Point(28, 50); this.lbSettingsHost.Name = "lbSettingsHost"; - this.lbSettingsHost.Size = new System.Drawing.Size(68, 24); + this.lbSettingsHost.Size = new System.Drawing.Size(43, 16); this.lbSettingsHost.TabIndex = 0; this.lbSettingsHost.Text = "Host()"; + this.lbSettingsHost.Click += new System.EventHandler(this.LbSettingsHost_Click); // // tbSettingsHost // this.tbSettingsHost.Anchor = System.Windows.Forms.AnchorStyles.None; - this.tbSettingsHost.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tbSettingsHost.Location = new System.Drawing.Point(13, 96); - this.tbSettingsHost.Margin = new System.Windows.Forms.Padding(4); - this.tbSettingsHost.MinimumSize = new System.Drawing.Size(399, 30); + this.tbSettingsHost.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsHost.Location = new System.Drawing.Point(28, 65); + this.tbSettingsHost.MaximumSize = new System.Drawing.Size(300, 25); + this.tbSettingsHost.MinimumSize = new System.Drawing.Size(300, 15); this.tbSettingsHost.Name = "tbSettingsHost"; - this.tbSettingsHost.Size = new System.Drawing.Size(399, 35); + this.tbSettingsHost.Size = new System.Drawing.Size(300, 25); this.tbSettingsHost.TabIndex = 4; + this.tbSettingsHost.TextChanged += new System.EventHandler(this.TbSettingsHost_TextChanged); // // lbSettingsPort // + this.lbSettingsPort.Anchor = System.Windows.Forms.AnchorStyles.None; this.lbSettingsPort.AutoSize = true; this.lbSettingsPort.BackColor = System.Drawing.Color.Transparent; - this.lbSettingsPort.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lbSettingsPort.ForeColor = System.Drawing.Color.White; - this.lbSettingsPort.Location = new System.Drawing.Point(31, 149); - this.lbSettingsPort.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbSettingsPort.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsPort.ForeColor = System.Drawing.Color.DarkSlateGray; + this.lbSettingsPort.Location = new System.Drawing.Point(28, 100); this.lbSettingsPort.Name = "lbSettingsPort"; - this.lbSettingsPort.Size = new System.Drawing.Size(114, 24); + this.lbSettingsPort.Size = new System.Drawing.Size(74, 16); this.lbSettingsPort.TabIndex = 5; this.lbSettingsPort.Text = "Port (1883)"; // // tbSettingsPort // this.tbSettingsPort.Anchor = System.Windows.Forms.AnchorStyles.None; - this.tbSettingsPort.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tbSettingsPort.Location = new System.Drawing.Point(13, 172); - this.tbSettingsPort.Margin = new System.Windows.Forms.Padding(4); - this.tbSettingsPort.MinimumSize = new System.Drawing.Size(399, 30); + this.tbSettingsPort.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsPort.Location = new System.Drawing.Point(28, 115); + this.tbSettingsPort.MaximumSize = new System.Drawing.Size(300, 25); + this.tbSettingsPort.MinimumSize = new System.Drawing.Size(300, 15); this.tbSettingsPort.Name = "tbSettingsPort"; - this.tbSettingsPort.Size = new System.Drawing.Size(399, 35); + this.tbSettingsPort.Size = new System.Drawing.Size(300, 25); this.tbSettingsPort.TabIndex = 6; // // lbSettingsClient // + this.lbSettingsClient.Anchor = System.Windows.Forms.AnchorStyles.None; this.lbSettingsClient.AutoSize = true; this.lbSettingsClient.BackColor = System.Drawing.Color.Transparent; - this.lbSettingsClient.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lbSettingsClient.ForeColor = System.Drawing.Color.White; - this.lbSettingsClient.Location = new System.Drawing.Point(31, 229); - this.lbSettingsClient.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbSettingsClient.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsClient.ForeColor = System.Drawing.Color.DarkSlateGray; + this.lbSettingsClient.Location = new System.Drawing.Point(28, 150); this.lbSettingsClient.Name = "lbSettingsClient"; - this.lbSettingsClient.Size = new System.Drawing.Size(212, 24); + this.lbSettingsClient.Size = new System.Drawing.Size(140, 16); this.lbSettingsClient.TabIndex = 7; this.lbSettingsClient.Text = "Client (DVES 06236C)"; + this.lbSettingsClient.Click += new System.EventHandler(this.LbSettingsClient_Click); // // tbSettingsClient // this.tbSettingsClient.Anchor = System.Windows.Forms.AnchorStyles.None; - this.tbSettingsClient.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tbSettingsClient.Location = new System.Drawing.Point(15, 252); - this.tbSettingsClient.Margin = new System.Windows.Forms.Padding(4); - this.tbSettingsClient.MinimumSize = new System.Drawing.Size(399, 30); + this.tbSettingsClient.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsClient.Location = new System.Drawing.Point(28, 165); + this.tbSettingsClient.MaximumSize = new System.Drawing.Size(300, 25); + this.tbSettingsClient.MinimumSize = new System.Drawing.Size(300, 15); this.tbSettingsClient.Name = "tbSettingsClient"; - this.tbSettingsClient.Size = new System.Drawing.Size(399, 35); + this.tbSettingsClient.Size = new System.Drawing.Size(300, 25); this.tbSettingsClient.TabIndex = 8; + this.tbSettingsClient.TextChanged += new System.EventHandler(this.TbSettingsClient_TextChanged); // // 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(15, 333); - this.tbSettingsUser.Margin = new System.Windows.Forms.Padding(4); - this.tbSettingsUser.MinimumSize = new System.Drawing.Size(399, 30); + this.tbSettingsUser.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsUser.Location = new System.Drawing.Point(28, 215); + this.tbSettingsUser.MaximumSize = new System.Drawing.Size(300, 25); + this.tbSettingsUser.MinimumSize = new System.Drawing.Size(300, 15); this.tbSettingsUser.Name = "tbSettingsUser"; - this.tbSettingsUser.Size = new System.Drawing.Size(399, 35); + this.tbSettingsUser.Size = new System.Drawing.Size(300, 25); this.tbSettingsUser.TabIndex = 9; // // lbSettingsUser // + this.lbSettingsUser.Anchor = System.Windows.Forms.AnchorStyles.None; this.lbSettingsUser.AutoSize = true; this.lbSettingsUser.BackColor = System.Drawing.Color.Transparent; - this.lbSettingsUser.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lbSettingsUser.ForeColor = System.Drawing.Color.White; - this.lbSettingsUser.Location = new System.Drawing.Point(31, 307); - this.lbSettingsUser.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbSettingsUser.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsUser.ForeColor = System.Drawing.Color.DarkSlateGray; + this.lbSettingsUser.Location = new System.Drawing.Point(28, 200); this.lbSettingsUser.Name = "lbSettingsUser"; - this.lbSettingsUser.Size = new System.Drawing.Size(177, 24); + this.lbSettingsUser.Size = new System.Drawing.Size(115, 16); this.lbSettingsUser.TabIndex = 10; this.lbSettingsUser.Text = "User (DVES User)"; + this.lbSettingsUser.Click += new System.EventHandler(this.LbSettingsUser_Click); // // lbSettingsPasswort // + this.lbSettingsPasswort.Anchor = System.Windows.Forms.AnchorStyles.None; this.lbSettingsPasswort.AutoSize = true; this.lbSettingsPasswort.BackColor = System.Drawing.Color.Transparent; - this.lbSettingsPasswort.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lbSettingsPasswort.ForeColor = System.Drawing.Color.White; - this.lbSettingsPasswort.Location = new System.Drawing.Point(31, 390); - this.lbSettingsPasswort.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbSettingsPasswort.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsPasswort.ForeColor = System.Drawing.Color.DarkSlateGray; + this.lbSettingsPasswort.Location = new System.Drawing.Point(28, 250); this.lbSettingsPasswort.Name = "lbSettingsPasswort"; - this.lbSettingsPasswort.Size = new System.Drawing.Size(120, 24); + this.lbSettingsPasswort.Size = new System.Drawing.Size(80, 16); this.lbSettingsPasswort.TabIndex = 11; this.lbSettingsPasswort.Text = "Password #"; // // textBox1 // this.textBox1.Anchor = System.Windows.Forms.AnchorStyles.None; - this.textBox1.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBox1.Location = new System.Drawing.Point(13, 414); - this.textBox1.Margin = new System.Windows.Forms.Padding(4); - this.textBox1.MinimumSize = new System.Drawing.Size(399, 30); + this.textBox1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox1.Location = new System.Drawing.Point(29, 265); + this.textBox1.MaximumSize = new System.Drawing.Size(300, 25); + this.textBox1.MinimumSize = new System.Drawing.Size(300, 15); this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(399, 35); + this.textBox1.Size = new System.Drawing.Size(300, 25); this.textBox1.TabIndex = 12; // - // lbSettingsTopic - // - this.lbSettingsTopic.AutoSize = true; - this.lbSettingsTopic.BackColor = System.Drawing.Color.Transparent; - this.lbSettingsTopic.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lbSettingsTopic.ForeColor = System.Drawing.Color.White; - this.lbSettingsTopic.Location = new System.Drawing.Point(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(311, 24); - this.lbSettingsTopic.TabIndex = 13; - this.lbSettingsTopic.Text = "Topic = %topic% (wetterstation)"; - // - // tbSettingsTopic - // - this.tbSettingsTopic.Anchor = System.Windows.Forms.AnchorStyles.None; - this.tbSettingsTopic.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tbSettingsTopic.Location = new System.Drawing.Point(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(399, 35); - this.tbSettingsTopic.TabIndex = 14; - // - // lbStettingsFullTopic - // - this.lbStettingsFullTopic.AutoSize = true; - this.lbStettingsFullTopic.BackColor = System.Drawing.Color.Transparent; - this.lbStettingsFullTopic.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lbStettingsFullTopic.ForeColor = System.Drawing.Color.White; - this.lbStettingsFullTopic.Location = new System.Drawing.Point(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(303, 24); - this.lbStettingsFullTopic.TabIndex = 15; - this.lbStettingsFullTopic.Text = "Full Topic (%prefix%/%topic%/)"; - // - // textBox2 - // - this.textBox2.Anchor = System.Windows.Forms.AnchorStyles.None; - this.textBox2.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBox2.Location = new System.Drawing.Point(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(399, 35); - this.textBox2.TabIndex = 16; - this.textBox2.TextChanged += new System.EventHandler(this.TextBox2_TextChanged); + // lbPlatzhalter1 + // + this.lbPlatzhalter1.Anchor = System.Windows.Forms.AnchorStyles.None; + this.lbPlatzhalter1.AutoSize = true; + this.lbPlatzhalter1.BackColor = System.Drawing.Color.Transparent; + this.lbPlatzhalter1.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbPlatzhalter1.ForeColor = System.Drawing.Color.DarkSlateGray; + this.lbPlatzhalter1.Location = new System.Drawing.Point(28, 300); + this.lbPlatzhalter1.Name = "lbPlatzhalter1"; + this.lbPlatzhalter1.Size = new System.Drawing.Size(84, 16); + this.lbPlatzhalter1.TabIndex = 13; + this.lbPlatzhalter1.Text = "Platzhalter1"; + // + // tbPlatzhalter1 + // + this.tbPlatzhalter1.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbPlatzhalter1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbPlatzhalter1.Location = new System.Drawing.Point(28, 315); + this.tbPlatzhalter1.MaximumSize = new System.Drawing.Size(300, 25); + this.tbPlatzhalter1.MinimumSize = new System.Drawing.Size(300, 15); + this.tbPlatzhalter1.Name = "tbPlatzhalter1"; + this.tbPlatzhalter1.Size = new System.Drawing.Size(300, 25); + this.tbPlatzhalter1.TabIndex = 14; + // + // lbPlatzhalter2 + // + this.lbPlatzhalter2.Anchor = System.Windows.Forms.AnchorStyles.None; + this.lbPlatzhalter2.AutoSize = true; + this.lbPlatzhalter2.BackColor = System.Drawing.Color.Transparent; + this.lbPlatzhalter2.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbPlatzhalter2.ForeColor = System.Drawing.Color.DarkSlateGray; + this.lbPlatzhalter2.Location = new System.Drawing.Point(28, 350); + this.lbPlatzhalter2.Name = "lbPlatzhalter2"; + this.lbPlatzhalter2.Size = new System.Drawing.Size(84, 16); + this.lbPlatzhalter2.TabIndex = 15; + this.lbPlatzhalter2.Text = "Platzhalter2"; + // + // tbPlatzhalter2 + // + this.tbPlatzhalter2.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbPlatzhalter2.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbPlatzhalter2.Location = new System.Drawing.Point(28, 365); + this.tbPlatzhalter2.MaximumSize = new System.Drawing.Size(300, 25); + this.tbPlatzhalter2.MinimumSize = new System.Drawing.Size(300, 15); + this.tbPlatzhalter2.Name = "tbPlatzhalter2"; + this.tbPlatzhalter2.Size = new System.Drawing.Size(300, 25); + this.tbPlatzhalter2.TabIndex = 16; + this.tbPlatzhalter2.TextChanged += new System.EventHandler(this.TextBox2_TextChanged); // // lbSettingsOrt // + this.lbSettingsOrt.Anchor = System.Windows.Forms.AnchorStyles.None; this.lbSettingsOrt.AutoSize = true; this.lbSettingsOrt.BackColor = System.Drawing.Color.Transparent; - this.lbSettingsOrt.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lbSettingsOrt.ForeColor = System.Drawing.Color.White; - this.lbSettingsOrt.Location = new System.Drawing.Point(28, 668); - this.lbSettingsOrt.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbSettingsOrt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsOrt.ForeColor = System.Drawing.Color.DarkSlateGray; + this.lbSettingsOrt.Location = new System.Drawing.Point(28, 400); this.lbSettingsOrt.Name = "lbSettingsOrt"; - this.lbSettingsOrt.Size = new System.Drawing.Size(114, 24); + this.lbSettingsOrt.Size = new System.Drawing.Size(77, 16); this.lbSettingsOrt.TabIndex = 17; this.lbSettingsOrt.Text = "Stadt / PLZ"; // // textBox3 // this.textBox3.Anchor = System.Windows.Forms.AnchorStyles.None; - this.textBox3.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBox3.Location = new System.Drawing.Point(15, 691); - this.textBox3.Margin = new System.Windows.Forms.Padding(4); - this.textBox3.MinimumSize = new System.Drawing.Size(399, 30); + this.textBox3.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox3.Location = new System.Drawing.Point(28, 415); + this.textBox3.MaximumSize = new System.Drawing.Size(300, 25); + this.textBox3.MinimumSize = new System.Drawing.Size(300, 15); this.textBox3.Name = "textBox3"; - this.textBox3.Size = new System.Drawing.Size(399, 35); + this.textBox3.Size = new System.Drawing.Size(300, 25); this.textBox3.TabIndex = 18; // // lbSettingsLand // + this.lbSettingsLand.Anchor = System.Windows.Forms.AnchorStyles.None; this.lbSettingsLand.AutoSize = true; this.lbSettingsLand.BackColor = System.Drawing.Color.Transparent; - this.lbSettingsLand.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lbSettingsLand.ForeColor = System.Drawing.Color.White; - this.lbSettingsLand.Location = new System.Drawing.Point(37, 754); - this.lbSettingsLand.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lbSettingsLand.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsLand.ForeColor = System.Drawing.Color.DarkSlateGray; + this.lbSettingsLand.Location = new System.Drawing.Point(28, 450); this.lbSettingsLand.Name = "lbSettingsLand"; - this.lbSettingsLand.Size = new System.Drawing.Size(205, 24); + this.lbSettingsLand.Size = new System.Drawing.Size(137, 16); this.lbSettingsLand.TabIndex = 19; this.lbSettingsLand.Text = "Länderkennung (DE)"; this.lbSettingsLand.Click += new System.EventHandler(this.Label1_Click); @@ -259,42 +265,56 @@ // tbSettingsLand // this.tbSettingsLand.Anchor = System.Windows.Forms.AnchorStyles.None; - this.tbSettingsLand.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tbSettingsLand.Location = new System.Drawing.Point(21, 781); - this.tbSettingsLand.Margin = new System.Windows.Forms.Padding(4); - this.tbSettingsLand.MinimumSize = new System.Drawing.Size(399, 30); + this.tbSettingsLand.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsLand.Location = new System.Drawing.Point(28, 465); + this.tbSettingsLand.MaximumSize = new System.Drawing.Size(300, 25); + this.tbSettingsLand.MinimumSize = new System.Drawing.Size(300, 15); this.tbSettingsLand.Name = "tbSettingsLand"; - this.tbSettingsLand.Size = new System.Drawing.Size(399, 35); + this.tbSettingsLand.Size = new System.Drawing.Size(300, 25); this.tbSettingsLand.TabIndex = 20; // // lblFrontendId // + this.lblFrontendId.Anchor = System.Windows.Forms.AnchorStyles.None; 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.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblFrontendId.ForeColor = System.Drawing.Color.Black; + this.lblFrontendId.Location = new System.Drawing.Point(29, 24); this.lblFrontendId.Name = "lblFrontendId"; - this.lblFrontendId.Size = new System.Drawing.Size(126, 24); + this.lblFrontendId.Size = new System.Drawing.Size(73, 15); this.lblFrontendId.TabIndex = 21; this.lblFrontendId.Text = "Frontend Id:"; // + // btSichern + // + this.btSichern.BackColor = System.Drawing.Color.DarkGray; + this.btSichern.Cursor = System.Windows.Forms.Cursors.Hand; + this.btSichern.Font = new System.Drawing.Font("Arial Narrow", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btSichern.Location = new System.Drawing.Point(28, 552); + this.btSichern.Name = "btSichern"; + this.btSichern.Size = new System.Drawing.Size(300, 34); + this.btSichern.TabIndex = 22; + this.btSichern.Text = "Daten übernehmen"; + this.btSichern.UseVisualStyleBackColor = false; + this.btSichern.Click += new System.EventHandler(this.BtSichern_Click); + // // Settings // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.ScrollBar; - this.ClientSize = new System.Drawing.Size(757, 858); + this.ClientSize = new System.Drawing.Size(361, 698); + this.Controls.Add(this.btSichern); this.Controls.Add(this.lblFrontendId); this.Controls.Add(this.tbSettingsLand); this.Controls.Add(this.lbSettingsLand); this.Controls.Add(this.textBox3); this.Controls.Add(this.lbSettingsOrt); - this.Controls.Add(this.textBox2); - this.Controls.Add(this.lbStettingsFullTopic); - this.Controls.Add(this.tbSettingsTopic); - this.Controls.Add(this.lbSettingsTopic); + this.Controls.Add(this.tbPlatzhalter2); + this.Controls.Add(this.lbPlatzhalter2); + this.Controls.Add(this.tbPlatzhalter1); + this.Controls.Add(this.lbPlatzhalter1); this.Controls.Add(this.textBox1); this.Controls.Add(this.lbSettingsPasswort); this.Controls.Add(this.lbSettingsUser); @@ -305,8 +325,10 @@ this.Controls.Add(this.lbSettingsPort); this.Controls.Add(this.tbSettingsHost); this.Controls.Add(this.lbSettingsHost); - this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.Location = new System.Drawing.Point(500, 0); + this.Margin = new System.Windows.Forms.Padding(2); this.Name = "Settings"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Settings"; this.Load += new System.EventHandler(this.Settings_Load); this.ResumeLayout(false); @@ -326,14 +348,15 @@ private System.Windows.Forms.Label lbSettingsUser; private System.Windows.Forms.Label lbSettingsPasswort; private System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.Label lbSettingsTopic; - private System.Windows.Forms.TextBox tbSettingsTopic; - private System.Windows.Forms.Label lbStettingsFullTopic; - private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Label lbPlatzhalter1; + private System.Windows.Forms.TextBox tbPlatzhalter1; + private System.Windows.Forms.Label lbPlatzhalter2; + private System.Windows.Forms.TextBox tbPlatzhalter2; private System.Windows.Forms.Label lbSettingsOrt; private System.Windows.Forms.TextBox textBox3; private System.Windows.Forms.Label lbSettingsLand; private System.Windows.Forms.TextBox tbSettingsLand; private System.Windows.Forms.Label lblFrontendId; + private System.Windows.Forms.Button btSichern; } } \ No newline at end of file diff --git a/Wetterstation/Settings.cs b/Wetterstation/Settings.cs index 048504bbaa602ecc7e9177606d0888e71709a914..bf9709a1b323aa6fe56b98b64079aee28d1d6629 100644 --- a/Wetterstation/Settings.cs +++ b/Wetterstation/Settings.cs @@ -19,7 +19,7 @@ namespace Wetterstation InitializeComponent(); lblFrontendId.Text = "Frontend Id: " + generateId(); } - + private void TextBox2_TextChanged(object sender, EventArgs e) { @@ -82,6 +82,37 @@ namespace Wetterstation { } + + private void TbSettingsClient_TextChanged(object sender, EventArgs e) + { + + } + + private void LbSettingsClient_Click(object sender, EventArgs e) + { + + } + + private void TbSettingsHost_TextChanged(object sender, EventArgs e) + { + + } + + private void LbSettingsHost_Click(object sender, EventArgs e) + { + + } + + private void LbSettingsUser_Click(object sender, EventArgs e) + { + + } + + private void BtSichern_Click(object sender, EventArgs e) + { + this.Close(); + + } } } diff --git a/Wetterstation/Wetterstation.csproj b/Wetterstation/Wetterstation.csproj index 1038ece73a9b94b321f5765286a05826313aa2e1..9762571799803bd891b49e4577b360e286473e52 100644 --- a/Wetterstation/Wetterstation.csproj +++ b/Wetterstation/Wetterstation.csproj @@ -138,6 +138,10 @@ <Content Include="Resources\13n%402x.png" /> <Content Include="Resources\50d%402x.png" /> <Content Include="Resources\50n%402x.png" /> + <None Include="Resources\Zahnrad12.png" /> + <None Include="Resources\Zahnrad11.png" /> + <None Include="Resources\Zahnrad1.png" /> + <None Include="Resources\Zahnrad.png" /> </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> </Project> \ No newline at end of file