diff --git a/Wetterstation/Form1.Designer.cs b/Wetterstation/Form1.Designer.cs index 49e1249667b0ca3201b0e0d4977b32568a89272c..55341fb5dae778e6c01243836aeab4c735be7325 100644 --- a/Wetterstation/Form1.Designer.cs +++ b/Wetterstation/Form1.Designer.cs @@ -36,10 +36,10 @@ namespace Wetterstation /// </summary> private void InitializeComponent() { - System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea5 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); - System.Windows.Forms.DataVisualization.Charting.Legend legend5 = new System.Windows.Forms.DataVisualization.Charting.Legend(); - System.Windows.Forms.DataVisualization.Charting.Series series5 = new System.Windows.Forms.DataVisualization.Charting.Series(); - System.Windows.Forms.DataVisualization.Charting.Title title5 = new System.Windows.Forms.DataVisualization.Charting.Title(); + System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); + System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); + System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.Title title2 = new System.Windows.Forms.DataVisualization.Charting.Title(); this.lbTextInnentemp = new System.Windows.Forms.Label(); this.lbTextAussentemp = new System.Windows.Forms.Label(); this.lbTextWindSpeed = new System.Windows.Forms.Label(); @@ -75,6 +75,7 @@ namespace Wetterstation this.lbHintergrund = new System.Windows.Forms.Label(); this.lbCity = new System.Windows.Forms.Label(); this.picTg1 = new System.Windows.Forms.PictureBox(); + this.btSystemKnopf = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picTg2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picTg3)).BeginInit(); @@ -477,22 +478,22 @@ namespace Wetterstation // chart1 // this.chart1.Anchor = System.Windows.Forms.AnchorStyles.None; - chartArea5.Name = "ChartArea1"; - this.chart1.ChartAreas.Add(chartArea5); - legend5.Name = "Legend1"; - this.chart1.Legends.Add(legend5); + chartArea2.Name = "ChartArea1"; + this.chart1.ChartAreas.Add(chartArea2); + legend2.Name = "Legend1"; + this.chart1.Legends.Add(legend2); this.chart1.Location = new System.Drawing.Point(28, 546); this.chart1.Name = "chart1"; this.chart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Excel; - series5.ChartArea = "ChartArea1"; - series5.Legend = "Legend1"; - series5.Name = "Series1"; - this.chart1.Series.Add(series5); + series2.ChartArea = "ChartArea1"; + series2.Legend = "Legend1"; + series2.Name = "Series1"; + this.chart1.Series.Add(series2); this.chart1.Size = new System.Drawing.Size(743, 107); this.chart1.TabIndex = 41; this.chart1.Text = "chTendenz"; - title5.Name = "Title1"; - this.chart1.Titles.Add(title5); + title2.Name = "Title1"; + this.chart1.Titles.Add(title2); // // lbHintergrund // @@ -526,12 +527,25 @@ namespace Wetterstation this.picTg1.TabIndex = 44; this.picTg1.TabStop = false; // + // btSystemKnopf + // + this.btSystemKnopf.BackColor = System.Drawing.Color.Transparent; + this.btSystemKnopf.BackgroundImage = global::Wetterstation.Properties.Resources.Systemknopf; + this.btSystemKnopf.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btSystemKnopf.Location = new System.Drawing.Point(917, 576); + this.btSystemKnopf.Name = "btSystemKnopf"; + this.btSystemKnopf.Size = new System.Drawing.Size(50, 50); + this.btSystemKnopf.TabIndex = 46; + this.btSystemKnopf.TextAlign = System.Drawing.ContentAlignment.TopLeft; + this.btSystemKnopf.UseVisualStyleBackColor = false; + // // Hintergrund // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackgroundImage = global::Wetterstation.Properties.Resources.Strand; this.ClientSize = new System.Drawing.Size(1008, 729); + this.Controls.Add(this.btSystemKnopf); this.Controls.Add(this.picTg1); this.Controls.Add(this.lbWT1); this.Controls.Add(this.lbWt2); @@ -619,6 +633,7 @@ namespace Wetterstation private Label lbHintergrund; private Label lbCity; private PictureBox picTg1; + private Button btSystemKnopf; } } diff --git a/Wetterstation/Program.cs b/Wetterstation/Program.cs index 704b24d2ac83a78f4b6e63c9535f7970784b629f..234acdd0ca6cc23530eb2c4ae84fb6f318aa2e12 100644 --- a/Wetterstation/Program.cs +++ b/Wetterstation/Program.cs @@ -16,7 +16,8 @@ namespace Wetterstation { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Hintergrund()); + // Application.Run(new Hintergrund()); + Application.Run(new Settings()); } } } diff --git a/Wetterstation/Properties/Resources.Designer.cs b/Wetterstation/Properties/Resources.Designer.cs index 62a6ebf70247283ec59b15260cb9c910039e595c..0aeec6171c10cec788ea10e3d09eaf9531b74053 100644 --- a/Wetterstation/Properties/Resources.Designer.cs +++ b/Wetterstation/Properties/Resources.Designer.cs @@ -179,5 +179,15 @@ namespace Wetterstation.Properties { return ((System.Drawing.Bitmap)(obj)); } } + + /// <summary> + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap Systemknopf { + get { + object obj = ResourceManager.GetObject("Systemknopf", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } diff --git a/Wetterstation/Properties/Resources.resx b/Wetterstation/Properties/Resources.resx index 7d64d59cd2b25445042ea5183f0898ab1a862362..9555125c6b5e8c9f41d9886fe07c611e8081e0c3 100644 --- a/Wetterstation/Properties/Resources.resx +++ b/Wetterstation/Properties/Resources.resx @@ -118,8 +118,8 @@ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> - <data name="earth" type="System.Resources.ResXFileRef, System.Windows.Forms"> - <value>..\Resources\earth.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + <data name="03n_small" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\03n_small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="Kompassrose" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\Kompassrose.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> @@ -139,8 +139,8 @@ <data name="13n_small" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\13n_small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> - <data name="03n_small" type="System.Resources.ResXFileRef, System.Windows.Forms"> - <value>..\Resources\03n_small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + <data name="earth" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\earth.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="02d_small" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\02d_small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> @@ -154,4 +154,7 @@ <data name="Strand" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\Strand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> + <data name="Systemknopf" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\Systemknopf.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> </root> \ No newline at end of file diff --git a/Wetterstation/Resources/Systemknopf.png b/Wetterstation/Resources/Systemknopf.png new file mode 100644 index 0000000000000000000000000000000000000000..43af7fe473039e92861a30763ba298949c0cf3d1 Binary files /dev/null and b/Wetterstation/Resources/Systemknopf.png differ diff --git a/Wetterstation/Settings.Designer.cs b/Wetterstation/Settings.Designer.cs index d54c61852ddbd8ba9d778c95aac49ff8481f44b9..00ad189e28eec3749f0c7ef1219953735b28235d 100644 --- a/Wetterstation/Settings.Designer.cs +++ b/Wetterstation/Settings.Designer.cs @@ -28,24 +28,252 @@ /// </summary> private void InitializeComponent() { - this.label1 = new System.Windows.Forms.Label(); + this.lbSettingsHost = new System.Windows.Forms.Label(); + this.tbSettingsHost = new System.Windows.Forms.TextBox(); + this.lbSettingsPort = new System.Windows.Forms.Label(); + this.tbSettingsPort = new System.Windows.Forms.TextBox(); + this.lbSettingsClient = new System.Windows.Forms.Label(); + this.tbSettingsClient = new System.Windows.Forms.TextBox(); + this.tbSettingsUser = new System.Windows.Forms.TextBox(); + this.lbSettingsUser = new System.Windows.Forms.Label(); + this.lbSettingsPasswort = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.lbSettingsTopic = new System.Windows.Forms.Label(); + this.tbSettingsTopic = new System.Windows.Forms.TextBox(); + this.lbStettingsFullTopic = new System.Windows.Forms.Label(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.lbSettingsOrt = new System.Windows.Forms.Label(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.lbSettingsLand = new System.Windows.Forms.Label(); + this.tbSettingsLand = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // - // label1 + // lbSettingsHost // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(13, 13); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(93, 17); - this.label1.TabIndex = 0; - this.label1.Text = "Einstellungen"; + this.lbSettingsHost.AutoSize = true; + this.lbSettingsHost.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsHost.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsHost.ForeColor = System.Drawing.Color.White; + this.lbSettingsHost.Location = new System.Drawing.Point(20, 34); + this.lbSettingsHost.Name = "lbSettingsHost"; + this.lbSettingsHost.Size = new System.Drawing.Size(55, 19); + this.lbSettingsHost.TabIndex = 0; + this.lbSettingsHost.Text = "Host()"; + // + // tbSettingsHost + // + this.tbSettingsHost.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsHost.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsHost.Location = new System.Drawing.Point(7, 55); + this.tbSettingsHost.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsHost.Name = "tbSettingsHost"; + this.tbSettingsHost.Size = new System.Drawing.Size(300, 30); + this.tbSettingsHost.TabIndex = 4; + // + // lbSettingsPort + // + this.lbSettingsPort.AutoSize = true; + this.lbSettingsPort.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsPort.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsPort.ForeColor = System.Drawing.Color.White; + this.lbSettingsPort.Location = new System.Drawing.Point(20, 98); + this.lbSettingsPort.Name = "lbSettingsPort"; + this.lbSettingsPort.Size = new System.Drawing.Size(91, 19); + this.lbSettingsPort.TabIndex = 5; + this.lbSettingsPort.Text = "Port (1883)"; + // + // tbSettingsPort + // + this.tbSettingsPort.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsPort.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsPort.Location = new System.Drawing.Point(7, 117); + this.tbSettingsPort.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsPort.Name = "tbSettingsPort"; + this.tbSettingsPort.Size = new System.Drawing.Size(300, 30); + this.tbSettingsPort.TabIndex = 6; + // + // lbSettingsClient + // + this.lbSettingsClient.AutoSize = true; + this.lbSettingsClient.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsClient.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsClient.ForeColor = System.Drawing.Color.White; + this.lbSettingsClient.Location = new System.Drawing.Point(20, 163); + this.lbSettingsClient.Name = "lbSettingsClient"; + this.lbSettingsClient.Size = new System.Drawing.Size(173, 19); + this.lbSettingsClient.TabIndex = 7; + this.lbSettingsClient.Text = "Client (DVES 06236C)"; + // + // tbSettingsClient + // + this.tbSettingsClient.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsClient.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsClient.Location = new System.Drawing.Point(8, 182); + this.tbSettingsClient.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsClient.Name = "tbSettingsClient"; + this.tbSettingsClient.Size = new System.Drawing.Size(300, 30); + this.tbSettingsClient.TabIndex = 8; + // + // tbSettingsUser + // + this.tbSettingsUser.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsUser.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsUser.Location = new System.Drawing.Point(8, 248); + this.tbSettingsUser.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsUser.Name = "tbSettingsUser"; + this.tbSettingsUser.Size = new System.Drawing.Size(300, 30); + this.tbSettingsUser.TabIndex = 9; + // + // lbSettingsUser + // + this.lbSettingsUser.AutoSize = true; + this.lbSettingsUser.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsUser.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsUser.ForeColor = System.Drawing.Color.White; + this.lbSettingsUser.Location = new System.Drawing.Point(20, 227); + this.lbSettingsUser.Name = "lbSettingsUser"; + this.lbSettingsUser.Size = new System.Drawing.Size(144, 19); + this.lbSettingsUser.TabIndex = 10; + this.lbSettingsUser.Text = "User (DVES User)"; + // + // lbSettingsPasswort + // + this.lbSettingsPasswort.AutoSize = true; + this.lbSettingsPasswort.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsPasswort.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsPasswort.ForeColor = System.Drawing.Color.White; + this.lbSettingsPasswort.Location = new System.Drawing.Point(20, 294); + this.lbSettingsPasswort.Name = "lbSettingsPasswort"; + this.lbSettingsPasswort.Size = new System.Drawing.Size(99, 19); + this.lbSettingsPasswort.TabIndex = 11; + this.lbSettingsPasswort.Text = "Password #"; + // + // textBox1 + // + this.textBox1.Anchor = System.Windows.Forms.AnchorStyles.None; + this.textBox1.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox1.Location = new System.Drawing.Point(7, 314); + this.textBox1.MinimumSize = new System.Drawing.Size(300, 30); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(300, 30); + this.textBox1.TabIndex = 12; + // + // lbSettingsTopic + // + this.lbSettingsTopic.AutoSize = true; + this.lbSettingsTopic.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsTopic.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsTopic.ForeColor = System.Drawing.Color.White; + this.lbSettingsTopic.Location = new System.Drawing.Point(20, 367); + this.lbSettingsTopic.Name = "lbSettingsTopic"; + this.lbSettingsTopic.Size = new System.Drawing.Size(251, 19); + this.lbSettingsTopic.TabIndex = 13; + this.lbSettingsTopic.Text = "Topic = %topic% (wetterstation)"; + // + // tbSettingsTopic + // + this.tbSettingsTopic.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsTopic.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsTopic.Location = new System.Drawing.Point(7, 386); + this.tbSettingsTopic.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsTopic.Name = "tbSettingsTopic"; + this.tbSettingsTopic.Size = new System.Drawing.Size(300, 30); + this.tbSettingsTopic.TabIndex = 14; + // + // lbStettingsFullTopic + // + this.lbStettingsFullTopic.AutoSize = true; + this.lbStettingsFullTopic.BackColor = System.Drawing.Color.Transparent; + this.lbStettingsFullTopic.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbStettingsFullTopic.ForeColor = System.Drawing.Color.White; + this.lbStettingsFullTopic.Location = new System.Drawing.Point(19, 444); + this.lbStettingsFullTopic.Name = "lbStettingsFullTopic"; + this.lbStettingsFullTopic.Size = new System.Drawing.Size(250, 19); + this.lbStettingsFullTopic.TabIndex = 15; + this.lbStettingsFullTopic.Text = "Full Topic (%prefix%/%topic%/)"; + // + // textBox2 + // + this.textBox2.Anchor = System.Windows.Forms.AnchorStyles.None; + this.textBox2.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox2.Location = new System.Drawing.Point(6, 462); + this.textBox2.MinimumSize = new System.Drawing.Size(300, 30); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(300, 30); + this.textBox2.TabIndex = 16; + this.textBox2.TextChanged += new System.EventHandler(this.TextBox2_TextChanged); + // + // lbSettingsOrt + // + this.lbSettingsOrt.AutoSize = true; + this.lbSettingsOrt.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsOrt.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsOrt.ForeColor = System.Drawing.Color.White; + this.lbSettingsOrt.Location = new System.Drawing.Point(18, 520); + this.lbSettingsOrt.Name = "lbSettingsOrt"; + this.lbSettingsOrt.Size = new System.Drawing.Size(91, 19); + this.lbSettingsOrt.TabIndex = 17; + this.lbSettingsOrt.Text = "Stadt / PLZ"; + // + // textBox3 + // + this.textBox3.Anchor = System.Windows.Forms.AnchorStyles.None; + this.textBox3.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox3.Location = new System.Drawing.Point(8, 539); + this.textBox3.MinimumSize = new System.Drawing.Size(300, 30); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(300, 30); + this.textBox3.TabIndex = 18; + // + // lbSettingsLand + // + this.lbSettingsLand.AutoSize = true; + this.lbSettingsLand.BackColor = System.Drawing.Color.Transparent; + this.lbSettingsLand.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbSettingsLand.ForeColor = System.Drawing.Color.White; + this.lbSettingsLand.Location = new System.Drawing.Point(25, 590); + this.lbSettingsLand.Name = "lbSettingsLand"; + this.lbSettingsLand.Size = new System.Drawing.Size(168, 19); + this.lbSettingsLand.TabIndex = 19; + this.lbSettingsLand.Text = "Länderkennung (DE)"; + this.lbSettingsLand.Click += new System.EventHandler(this.Label1_Click); + // + // tbSettingsLand + // + this.tbSettingsLand.Anchor = System.Windows.Forms.AnchorStyles.None; + this.tbSettingsLand.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbSettingsLand.Location = new System.Drawing.Point(13, 612); + this.tbSettingsLand.MinimumSize = new System.Drawing.Size(300, 30); + this.tbSettingsLand.Name = "tbSettingsLand"; + this.tbSettingsLand.Size = new System.Drawing.Size(300, 30); + this.tbSettingsLand.TabIndex = 20; // // Settings // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Controls.Add(this.label1); + this.BackColor = System.Drawing.Color.White; + this.BackgroundImage = global::Wetterstation.Properties.Resources.earth; + this.ClientSize = new System.Drawing.Size(568, 697); + this.Controls.Add(this.tbSettingsLand); + this.Controls.Add(this.lbSettingsLand); + this.Controls.Add(this.textBox3); + this.Controls.Add(this.lbSettingsOrt); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.lbStettingsFullTopic); + this.Controls.Add(this.tbSettingsTopic); + this.Controls.Add(this.lbSettingsTopic); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.lbSettingsPasswort); + this.Controls.Add(this.lbSettingsUser); + this.Controls.Add(this.tbSettingsUser); + this.Controls.Add(this.tbSettingsClient); + this.Controls.Add(this.lbSettingsClient); + this.Controls.Add(this.tbSettingsPort); + this.Controls.Add(this.lbSettingsPort); + this.Controls.Add(this.tbSettingsHost); + this.Controls.Add(this.lbSettingsHost); + this.Margin = new System.Windows.Forms.Padding(2); this.Name = "Settings"; this.Text = "Settings"; this.ResumeLayout(false); @@ -55,6 +283,23 @@ #endregion - private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label lbSettingsHost; + private System.Windows.Forms.TextBox tbSettingsHost; + private System.Windows.Forms.Label lbSettingsPort; + private System.Windows.Forms.TextBox tbSettingsPort; + private System.Windows.Forms.Label lbSettingsClient; + private System.Windows.Forms.TextBox tbSettingsClient; + private System.Windows.Forms.TextBox tbSettingsUser; + private System.Windows.Forms.Label lbSettingsUser; + private System.Windows.Forms.Label lbSettingsPasswort; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Label lbSettingsTopic; + private System.Windows.Forms.TextBox tbSettingsTopic; + private System.Windows.Forms.Label lbStettingsFullTopic; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Label lbSettingsOrt; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Label lbSettingsLand; + private System.Windows.Forms.TextBox tbSettingsLand; } } \ No newline at end of file diff --git a/Wetterstation/Settings.cs b/Wetterstation/Settings.cs index 508c4051d3ede76cc1f83349c2565524ecad5393..037f27e643808ef70abc46cc4545ca27b4f57c9a 100644 --- a/Wetterstation/Settings.cs +++ b/Wetterstation/Settings.cs @@ -16,5 +16,16 @@ namespace Wetterstation { InitializeComponent(); } + + private void TextBox2_TextChanged(object sender, EventArgs e) + { + + } + + private void Label1_Click(object sender, EventArgs e) + { + + } } -} + } + diff --git a/Wetterstation/Wetterstation.csproj b/Wetterstation/Wetterstation.csproj index 0958e3f75fe6323f4aad718aa223189963cd66d5..cb99cce8bd4e09e881efa2bc69ce5fceadcda128 100644 --- a/Wetterstation/Wetterstation.csproj +++ b/Wetterstation/Wetterstation.csproj @@ -126,5 +126,8 @@ <ItemGroup> <None Include="Resources\Strand.png" /> </ItemGroup> + <ItemGroup> + <None Include="Resources\Systemknopf.png" /> + </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> </Project> \ No newline at end of file