diff --git a/RHS-Sachsen/Form1.Designer.cs b/RHS-Sachsen/Form1.Designer.cs index da3c5ca..855fe6a 100644 --- a/RHS-Sachsen/Form1.Designer.cs +++ b/RHS-Sachsen/Form1.Designer.cs @@ -136,20 +136,34 @@ cmbIRLSInformiert = new ComboBox(); cmbHandyortung = new ComboBox(); txtHandyortung = new TextBox(); + label48 = new Label(); + label49 = new Label(); + comboBox2 = new ComboBox(); + comboBox3 = new ComboBox(); + comboBox4 = new ComboBox(); + label50 = new Label(); + label51 = new Label(); + label52 = new Label(); tabPage5 = new TabPage(); tableLayoutPanel4 = new TableLayoutPanel(); + chkPolizeiStreifen = new CheckBox(); + label53 = new Label(); + chkAngehörige = new CheckBox(); + chkMitarbeiterHeim = new CheckBox(); + chkFeuerwehr = new CheckBox(); + chkBergwacht = new CheckBox(); + chkPolizeiHubschrauber = new CheckBox(); + chkPolizeiHundMantrailer = new CheckBox(); + chkPolizeiEinsatzzug = new CheckBox(); + chkPolizeihundFährte = new CheckBox(); + chkAndere = new CheckBox(); + chkRettungshunde = new CheckBox(); + txtRettungshunde = new TextBox(); + txtAndere = new TextBox(); tabPage6 = new TabPage(); tableLayoutPanel3 = new TableLayoutPanel(); tabPage7 = new TabPage(); tableLayoutPanel2 = new TableLayoutPanel(); - label48 = new Label(); - label49 = new Label(); - label50 = new Label(); - label51 = new Label(); - label52 = new Label(); - comboBox2 = new ComboBox(); - comboBox3 = new ComboBox(); - comboBox4 = new ComboBox(); tableLayoutPanel1.SuspendLayout(); tabControl1.SuspendLayout(); tabPage1.SuspendLayout(); @@ -160,6 +174,7 @@ tabPage4.SuspendLayout(); tableLayoutPanel5.SuspendLayout(); tabPage5.SuspendLayout(); + tableLayoutPanel4.SuspendLayout(); tabPage6.SuspendLayout(); tabPage7.SuspendLayout(); SuspendLayout(); @@ -1391,6 +1406,86 @@ txtHandyortung.Size = new Size(304, 23); txtHandyortung.TabIndex = 12; // + // label48 + // + label48.Anchor = AnchorStyles.Left; + label48.AutoSize = true; + label48.Location = new Point(3, 247); + label48.Name = "label48"; + label48.Size = new Size(71, 15); + label48.TabIndex = 13; + label48.Text = "Temperatur:"; + // + // label49 + // + label49.Anchor = AnchorStyles.Left; + label49.AutoSize = true; + label49.Location = new Point(3, 277); + label49.Name = "label49"; + label49.Size = new Size(38, 15); + label49.TabIndex = 14; + label49.Text = "Wind:"; + // + // comboBox2 + // + comboBox2.Dock = DockStyle.Fill; + comboBox2.FormattingEnabled = true; + comboBox2.Items.AddRange(new object[] { "ja", "nein" }); + comboBox2.Location = new Point(623, 213); + comboBox2.Name = "comboBox2"; + comboBox2.Size = new Size(149, 23); + comboBox2.TabIndex = 18; + // + // comboBox3 + // + comboBox3.Dock = DockStyle.Fill; + comboBox3.FormattingEnabled = true; + comboBox3.Items.AddRange(new object[] { "ja", "nein" }); + comboBox3.Location = new Point(623, 243); + comboBox3.Name = "comboBox3"; + comboBox3.Size = new Size(149, 23); + comboBox3.TabIndex = 19; + // + // comboBox4 + // + comboBox4.Dock = DockStyle.Fill; + comboBox4.FormattingEnabled = true; + comboBox4.Items.AddRange(new object[] { "ja", "nein" }); + comboBox4.Location = new Point(623, 273); + comboBox4.Name = "comboBox4"; + comboBox4.Size = new Size(149, 23); + comboBox4.TabIndex = 20; + // + // label50 + // + label50.Anchor = AnchorStyles.Left; + label50.AutoSize = true; + label50.Location = new Point(468, 217); + label50.Name = "label50"; + label50.Size = new Size(132, 15); + label50.TabIndex = 15; + label50.Text = "Krankenhaus abgefragt:"; + // + // label51 + // + label51.Anchor = AnchorStyles.Left; + label51.AutoSize = true; + label51.Location = new Point(468, 247); + label51.Name = "label51"; + label51.Size = new Size(123, 15); + label51.TabIndex = 16; + label51.Text = "Tankstellen abgefragt:"; + // + // label52 + // + label52.Anchor = AnchorStyles.Left; + label52.AutoSize = true; + label52.Location = new Point(468, 277); + label52.Name = "label52"; + label52.Size = new Size(130, 15); + label52.TabIndex = 17; + label52.Text = "Taxi und Bus abgefragt:"; + // // tabPage5 // tabPage5.Controls.Add(tableLayoutPanel4); @@ -1404,18 +1499,194 @@ // // tableLayoutPanel4 // - tableLayoutPanel4.ColumnCount = 2; - tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); - tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel4.ColumnCount = 6; + tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.666666F)); + tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.666666F)); + tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.4339428F)); + tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.8635883F)); + tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.666666F)); + tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 16.666666F)); + tableLayoutPanel4.Controls.Add(chkPolizeiStreifen, 2, 0); + tableLayoutPanel4.Controls.Add(label53, 0, 0); + tableLayoutPanel4.Controls.Add(chkAngehörige, 1, 0); + tableLayoutPanel4.Controls.Add(chkMitarbeiterHeim, 1, 1); + tableLayoutPanel4.Controls.Add(chkFeuerwehr, 1, 2); + tableLayoutPanel4.Controls.Add(chkBergwacht, 1, 3); + tableLayoutPanel4.Controls.Add(chkPolizeiHubschrauber, 2, 1); + tableLayoutPanel4.Controls.Add(chkPolizeiHundMantrailer, 2, 4); + tableLayoutPanel4.Controls.Add(chkPolizeiEinsatzzug, 2, 2); + tableLayoutPanel4.Controls.Add(chkPolizeihundFährte, 2, 3); + tableLayoutPanel4.Controls.Add(chkAndere, 1, 6); + tableLayoutPanel4.Controls.Add(chkRettungshunde, 1, 5); + tableLayoutPanel4.Controls.Add(txtRettungshunde, 2, 5); + tableLayoutPanel4.Controls.Add(txtAndere, 2, 6); tableLayoutPanel4.Dock = DockStyle.Fill; tableLayoutPanel4.Location = new Point(3, 3); tableLayoutPanel4.Name = "tableLayoutPanel4"; - tableLayoutPanel4.RowCount = 2; - tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); - tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); + tableLayoutPanel4.RowCount = 9; + tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); tableLayoutPanel4.Size = new Size(931, 458); tableLayoutPanel4.TabIndex = 0; // + // chkPolizeiStreifen + // + chkPolizeiStreifen.Anchor = AnchorStyles.Left; + chkPolizeiStreifen.AutoSize = true; + chkPolizeiStreifen.Location = new Point(313, 5); + chkPolizeiStreifen.Name = "chkPolizeiStreifen"; + chkPolizeiStreifen.Size = new Size(99, 19); + chkPolizeiStreifen.TabIndex = 7; + chkPolizeiStreifen.Text = "Polizeistreifen"; + chkPolizeiStreifen.UseVisualStyleBackColor = true; + // + // label53 + // + label53.Anchor = AnchorStyles.Left; + label53.AutoSize = true; + label53.Location = new Point(3, 7); + label53.Name = "label53"; + label53.Size = new Size(131, 15); + label53.TabIndex = 0; + label53.Text = "Wer hat bisher gesucht:"; + // + // chkAngehörige + // + chkAngehörige.Anchor = AnchorStyles.Left; + chkAngehörige.AutoSize = true; + chkAngehörige.Location = new Point(158, 5); + chkAngehörige.Name = "chkAngehörige"; + chkAngehörige.Size = new Size(88, 19); + chkAngehörige.TabIndex = 1; + chkAngehörige.Text = "Angehörige"; + chkAngehörige.UseVisualStyleBackColor = true; + // + // chkMitarbeiterHeim + // + chkMitarbeiterHeim.Anchor = AnchorStyles.Left; + chkMitarbeiterHeim.AutoSize = true; + chkMitarbeiterHeim.Location = new Point(158, 35); + chkMitarbeiterHeim.Name = "chkMitarbeiterHeim"; + chkMitarbeiterHeim.Size = new Size(116, 19); + chkMitarbeiterHeim.TabIndex = 2; + chkMitarbeiterHeim.Text = "Mitarbeiter Heim"; + chkMitarbeiterHeim.UseVisualStyleBackColor = true; + // + // chkFeuerwehr + // + chkFeuerwehr.Anchor = AnchorStyles.Left; + chkFeuerwehr.AutoSize = true; + chkFeuerwehr.Location = new Point(158, 65); + chkFeuerwehr.Name = "chkFeuerwehr"; + chkFeuerwehr.Size = new Size(81, 19); + chkFeuerwehr.TabIndex = 3; + chkFeuerwehr.Text = "Feuerwehr"; + chkFeuerwehr.UseVisualStyleBackColor = true; + // + // chkBergwacht + // + chkBergwacht.Anchor = AnchorStyles.Left; + chkBergwacht.AutoSize = true; + chkBergwacht.Location = new Point(158, 95); + chkBergwacht.Name = "chkBergwacht"; + chkBergwacht.Size = new Size(82, 19); + chkBergwacht.TabIndex = 4; + chkBergwacht.Text = "Bergwacht"; + chkBergwacht.UseVisualStyleBackColor = true; + // + // chkPolizeiHubschrauber + // + chkPolizeiHubschrauber.Anchor = AnchorStyles.Left; + chkPolizeiHubschrauber.AutoSize = true; + chkPolizeiHubschrauber.Location = new Point(313, 35); + chkPolizeiHubschrauber.Name = "chkPolizeiHubschrauber"; + chkPolizeiHubschrauber.Size = new Size(138, 19); + chkPolizeiHubschrauber.TabIndex = 8; + chkPolizeiHubschrauber.Text = "Polizei Hubschrauber"; + chkPolizeiHubschrauber.UseVisualStyleBackColor = true; + // + // chkPolizeiHundMantrailer + // + chkPolizeiHundMantrailer.Anchor = AnchorStyles.Left; + chkPolizeiHundMantrailer.AutoSize = true; + chkPolizeiHundMantrailer.Location = new Point(313, 125); + chkPolizeiHundMantrailer.Name = "chkPolizeiHundMantrailer"; + chkPolizeiHundMantrailer.Size = new Size(145, 19); + chkPolizeiHundMantrailer.TabIndex = 11; + chkPolizeiHundMantrailer.Text = "Polizeihund Mantrailer"; + chkPolizeiHundMantrailer.UseVisualStyleBackColor = true; + // + // chkPolizeiEinsatzzug + // + chkPolizeiEinsatzzug.Anchor = AnchorStyles.Left; + chkPolizeiEinsatzzug.AutoSize = true; + chkPolizeiEinsatzzug.Location = new Point(313, 65); + chkPolizeiEinsatzzug.Name = "chkPolizeiEinsatzzug"; + chkPolizeiEinsatzzug.Size = new Size(118, 19); + chkPolizeiEinsatzzug.TabIndex = 9; + chkPolizeiEinsatzzug.Text = "Polizei Einsatzzug"; + chkPolizeiEinsatzzug.UseVisualStyleBackColor = true; + // + // chkPolizeihundFährte + // + chkPolizeihundFährte.Anchor = AnchorStyles.Left; + chkPolizeihundFährte.AutoSize = true; + chkPolizeihundFährte.Location = new Point(313, 95); + chkPolizeihundFährte.Name = "chkPolizeihundFährte"; + chkPolizeihundFährte.Size = new Size(124, 19); + chkPolizeihundFährte.TabIndex = 10; + chkPolizeihundFährte.Text = "Polizeihund Fährte"; + chkPolizeihundFährte.UseVisualStyleBackColor = true; + // + // chkAndere + // + chkAndere.Anchor = AnchorStyles.Left; + chkAndere.AutoSize = true; + chkAndere.Location = new Point(158, 185); + chkAndere.Name = "chkAndere"; + chkAndere.Size = new Size(64, 19); + chkAndere.TabIndex = 6; + chkAndere.Text = "Andere"; + chkAndere.UseVisualStyleBackColor = true; + chkAndere.CheckedChanged += chkAndere_CheckedChanged; + // + // chkRettungshunde + // + chkRettungshunde.Anchor = AnchorStyles.Left; + chkRettungshunde.AutoSize = true; + chkRettungshunde.Location = new Point(158, 155); + chkRettungshunde.Name = "chkRettungshunde"; + chkRettungshunde.Size = new Size(107, 19); + chkRettungshunde.TabIndex = 5; + chkRettungshunde.Text = "Rettungshunde"; + chkRettungshunde.UseVisualStyleBackColor = true; + chkRettungshunde.CheckedChanged += chkRettungshunde_CheckedChanged; + // + // txtRettungshunde + // + tableLayoutPanel4.SetColumnSpan(txtRettungshunde, 3); + txtRettungshunde.Dock = DockStyle.Fill; + txtRettungshunde.Location = new Point(313, 153); + txtRettungshunde.Name = "txtRettungshunde"; + txtRettungshunde.Size = new Size(459, 23); + txtRettungshunde.TabIndex = 12; + // + // txtAndere + // + tableLayoutPanel4.SetColumnSpan(txtAndere, 3); + txtAndere.Dock = DockStyle.Fill; + txtAndere.Location = new Point(313, 183); + txtAndere.Name = "txtAndere"; + txtAndere.Size = new Size(459, 23); + txtAndere.TabIndex = 13; + // // tabPage6 // tabPage6.Controls.Add(tableLayoutPanel3); @@ -1466,86 +1737,6 @@ tableLayoutPanel2.Size = new Size(931, 458); tableLayoutPanel2.TabIndex = 0; // - // label48 - // - label48.Anchor = AnchorStyles.Left; - label48.AutoSize = true; - label48.Location = new Point(3, 247); - label48.Name = "label48"; - label48.Size = new Size(71, 15); - label48.TabIndex = 13; - label48.Text = "Temperatur:"; - // - // label49 - // - label49.Anchor = AnchorStyles.Left; - label49.AutoSize = true; - label49.Location = new Point(3, 277); - label49.Name = "label49"; - label49.Size = new Size(38, 15); - label49.TabIndex = 14; - label49.Text = "Wind:"; - // - // label50 - // - label50.Anchor = AnchorStyles.Left; - label50.AutoSize = true; - label50.Location = new Point(468, 217); - label50.Name = "label50"; - label50.Size = new Size(132, 15); - label50.TabIndex = 15; - label50.Text = "Krankenhaus abgefragt:"; - // - // label51 - // - label51.Anchor = AnchorStyles.Left; - label51.AutoSize = true; - label51.Location = new Point(468, 247); - label51.Name = "label51"; - label51.Size = new Size(123, 15); - label51.TabIndex = 16; - label51.Text = "Tankstellen abgefragt:"; - // - // label52 - // - label52.Anchor = AnchorStyles.Left; - label52.AutoSize = true; - label52.Location = new Point(468, 277); - label52.Name = "label52"; - label52.Size = new Size(130, 15); - label52.TabIndex = 17; - label52.Text = "Taxi und Bus abgefragt:"; - // - // comboBox2 - // - comboBox2.Dock = DockStyle.Fill; - comboBox2.FormattingEnabled = true; - comboBox2.Items.AddRange(new object[] { "ja", "nein" }); - comboBox2.Location = new Point(623, 213); - comboBox2.Name = "comboBox2"; - comboBox2.Size = new Size(149, 23); - comboBox2.TabIndex = 18; - // - // comboBox3 - // - comboBox3.Dock = DockStyle.Fill; - comboBox3.FormattingEnabled = true; - comboBox3.Items.AddRange(new object[] { "ja", "nein" }); - comboBox3.Location = new Point(623, 243); - comboBox3.Name = "comboBox3"; - comboBox3.Size = new Size(149, 23); - comboBox3.TabIndex = 19; - // - // comboBox4 - // - comboBox4.Dock = DockStyle.Fill; - comboBox4.FormattingEnabled = true; - comboBox4.Items.AddRange(new object[] { "ja", "nein" }); - comboBox4.Location = new Point(623, 273); - comboBox4.Name = "comboBox4"; - comboBox4.Size = new Size(149, 23); - comboBox4.TabIndex = 20; - // // Form1 // AutoScaleDimensions = new SizeF(7F, 15F); @@ -1568,6 +1759,8 @@ tableLayoutPanel5.ResumeLayout(false); tableLayoutPanel5.PerformLayout(); tabPage5.ResumeLayout(false); + tableLayoutPanel4.ResumeLayout(false); + tableLayoutPanel4.PerformLayout(); tabPage6.ResumeLayout(false); tabPage7.ResumeLayout(false); ResumeLayout(false); @@ -1697,5 +1890,19 @@ private ComboBox comboBox2; private ComboBox comboBox3; private ComboBox comboBox4; + private Label label53; + private CheckBox chkPolizeiStreifen; + private CheckBox chkAngehörige; + private CheckBox chkMitarbeiterHeim; + private CheckBox chkFeuerwehr; + private CheckBox chkBergwacht; + private CheckBox chkRettungshunde; + private CheckBox chkAndere; + private CheckBox chkPolizeiHubschrauber; + private CheckBox chkPolizeiHundMantrailer; + private CheckBox chkPolizeiEinsatzzug; + private CheckBox chkPolizeihundFährte; + private TextBox txtRettungshunde; + private TextBox txtAndere; } } diff --git a/RHS-Sachsen/Form1.cs b/RHS-Sachsen/Form1.cs index 96ef9aa..515cfa5 100644 --- a/RHS-Sachsen/Form1.cs +++ b/RHS-Sachsen/Form1.cs @@ -16,6 +16,8 @@ namespace RHS_Sachsen lblSoWeDurch.Visible = false; txtSoWeDurch.Visible = false; txtHandyortung.Visible = false; + txtAndere.Visible = false; + txtRettungshunde.Visible = false; } private void btnEinsatzSpeichern_Click(object sender, EventArgs e) @@ -140,10 +142,34 @@ namespace RHS_Sachsen { txtHandyortung.Visible = true; } - else + else { txtHandyortung.Visible = false; } } + + private void chkRettungshunde_CheckedChanged(object sender, EventArgs e) + { + if (chkRettungshunde.Checked == true) + { + txtRettungshunde.Visible = true; + } + else + { + txtRettungshunde.Visible = false; + } + } + + private void chkAndere_CheckedChanged(object sender, EventArgs e) + { + if (chkAndere.Checked == true) + { + txtAndere.Visible = true; + } + else + { + txtAndere.Visible = false; + } + } } }