From dae862e99a882c1ce49041dfbfde4afe585fdfed Mon Sep 17 00:00:00 2001 From: Christopher Meinhold Date: Thu, 19 Dec 2024 19:27:14 +0100 Subject: [PATCH] =?UTF-8?q?-Registerkarten=20eingef=C3=BCgt=20-Register=20?= =?UTF-8?q?Anfahrt=20und=20Zeiten=20gef=C3=BCllt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RHS-Sachsen/Form1.Designer.cs | 606 ++++++++++++++++++++++++++++++++-- RHS-Sachsen/Form1.cs | 47 +++ RHS-Sachsen/Form1.resx | 4 +- 3 files changed, 621 insertions(+), 36 deletions(-) diff --git a/RHS-Sachsen/Form1.Designer.cs b/RHS-Sachsen/Form1.Designer.cs index 91e6cbd..3562f50 100644 --- a/RHS-Sachsen/Form1.Designer.cs +++ b/RHS-Sachsen/Form1.Designer.cs @@ -54,7 +54,53 @@ txtRufnummer = new TextBox(); txtFunk1 = new TextBox(); txtFunk2 = new TextBox(); + tabControl1 = new TabControl(); + tabPage1 = new TabPage(); + tabPage2 = new TabPage(); + tableLayoutPanel7 = new TableLayoutPanel(); + label10 = new Label(); + label11 = new Label(); + label12 = new Label(); + label13 = new Label(); + label14 = new Label(); + label16 = new Label(); + cmbLeitstelleInformiert = new ComboBox(); + cmbOrganisationInformiert = new ComboBox(); + cmbFreigabeSoWe = new ComboBox(); + txtTreffpunkt = new TextBox(); + lblSoWeDurch = new Label(); + txtSoWeDurch = new TextBox(); + label15 = new Label(); + label18 = new Label(); + label19 = new Label(); + label20 = new Label(); + label21 = new Label(); + txtAbfahrt = new MaskedTextBox(); + txtAnkunft = new MaskedTextBox(); + txtAbrücken = new MaskedTextBox(); + txtEnde = new MaskedTextBox(); + txtAlarm = new MaskedTextBox(); + tabPage3 = new TabPage(); + tableLayoutPanel6 = new TableLayoutPanel(); + tabPage4 = new TabPage(); + tableLayoutPanel5 = new TableLayoutPanel(); + tabPage5 = new TabPage(); + tableLayoutPanel4 = new TableLayoutPanel(); + tabPage6 = new TabPage(); + tableLayoutPanel3 = new TableLayoutPanel(); + tabPage7 = new TabPage(); + tableLayoutPanel2 = new TableLayoutPanel(); + label17 = new Label(); tableLayoutPanel1.SuspendLayout(); + tabControl1.SuspendLayout(); + tabPage1.SuspendLayout(); + tabPage2.SuspendLayout(); + tableLayoutPanel7.SuspendLayout(); + tabPage3.SuspendLayout(); + tabPage4.SuspendLayout(); + tabPage5.SuspendLayout(); + tabPage6.SuspendLayout(); + tabPage7.SuspendLayout(); SuspendLayout(); // // tableLayoutPanel1 @@ -90,7 +136,7 @@ tableLayoutPanel1.Controls.Add(txtFunk1, 3, 5); tableLayoutPanel1.Controls.Add(txtFunk2, 3, 6); tableLayoutPanel1.Dock = DockStyle.Fill; - tableLayoutPanel1.Location = new Point(0, 0); + tableLayoutPanel1.Location = new Point(3, 3); tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 13; tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); @@ -106,7 +152,7 @@ tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); - tableLayoutPanel1.Size = new Size(800, 450); + tableLayoutPanel1.Size = new Size(816, 425); tableLayoutPanel1.TabIndex = 0; // // label1 @@ -122,16 +168,16 @@ // txtVerfasser // txtVerfasser.Dock = DockStyle.Fill; - txtVerfasser.Location = new Point(149, 3); + txtVerfasser.Location = new Point(151, 3); txtVerfasser.Name = "txtVerfasser"; - txtVerfasser.Size = new Size(248, 23); + txtVerfasser.Size = new Size(253, 23); txtVerfasser.TabIndex = 0; // // label2 // label2.Anchor = AnchorStyles.Left; label2.AutoSize = true; - label2.Location = new Point(403, 7); + label2.Location = new Point(410, 7); label2.Name = "label2"; label2.Size = new Size(46, 15); label2.TabIndex = 2; @@ -141,7 +187,7 @@ // lblEinsatzort.Anchor = AnchorStyles.Left; lblEinsatzort.AutoSize = true; - lblEinsatzort.Location = new Point(403, 37); + lblEinsatzort.Location = new Point(410, 37); lblEinsatzort.Name = "lblEinsatzort"; lblEinsatzort.Size = new Size(61, 15); lblEinsatzort.TabIndex = 3; @@ -171,7 +217,7 @@ // lblSuchgebiergröße.Anchor = AnchorStyles.Left; lblSuchgebiergröße.AutoSize = true; - lblSuchgebiergröße.Location = new Point(403, 67); + lblSuchgebiergröße.Location = new Point(410, 67); lblSuchgebiergröße.Name = "lblSuchgebiergröße"; lblSuchgebiergröße.Size = new Size(104, 15); lblSuchgebiergröße.TabIndex = 6; @@ -180,38 +226,38 @@ // txtAlarmierung // txtAlarmierung.Dock = DockStyle.Fill; - txtAlarmierung.Location = new Point(149, 33); + txtAlarmierung.Location = new Point(151, 33); txtAlarmierung.Name = "txtAlarmierung"; - txtAlarmierung.Size = new Size(248, 23); + txtAlarmierung.Size = new Size(253, 23); txtAlarmierung.TabIndex = 2; // // txtAnforderung // txtAnforderung.Dock = DockStyle.Fill; - txtAnforderung.Location = new Point(149, 63); + txtAnforderung.Location = new Point(151, 63); txtAnforderung.Name = "txtAnforderung"; - txtAnforderung.Size = new Size(248, 23); + txtAnforderung.Size = new Size(253, 23); txtAnforderung.TabIndex = 4; // // txtEinsatzort // txtEinsatzort.Dock = DockStyle.Fill; - txtEinsatzort.Location = new Point(522, 33); + txtEinsatzort.Location = new Point(531, 33); txtEinsatzort.Name = "txtEinsatzort"; - txtEinsatzort.Size = new Size(275, 23); + txtEinsatzort.Size = new Size(282, 23); txtEinsatzort.TabIndex = 3; // // txtSuchgebietgroesse // txtSuchgebietgroesse.Dock = DockStyle.Fill; - txtSuchgebietgroesse.Location = new Point(522, 63); + txtSuchgebietgroesse.Location = new Point(531, 63); txtSuchgebietgroesse.Name = "txtSuchgebietgroesse"; - txtSuchgebietgroesse.Size = new Size(275, 23); + txtSuchgebietgroesse.Size = new Size(282, 23); txtSuchgebietgroesse.TabIndex = 5; // // dtpDatum // - dtpDatum.Location = new Point(522, 3); + dtpDatum.Location = new Point(531, 3); dtpDatum.Name = "dtpDatum"; dtpDatum.Size = new Size(194, 23); dtpDatum.TabIndex = 1; @@ -219,7 +265,7 @@ // // btnEinsatzSpeichern // - btnEinsatzSpeichern.Location = new Point(522, 363); + btnEinsatzSpeichern.Location = new Point(531, 363); btnEinsatzSpeichern.Name = "btnEinsatzSpeichern"; btnEinsatzSpeichern.Size = new Size(164, 23); btnEinsatzSpeichern.TabIndex = 13; @@ -229,16 +275,16 @@ // // btnEinsatzLaden // - btnEinsatzLaden.Location = new Point(403, 363); + btnEinsatzLaden.Location = new Point(410, 363); btnEinsatzLaden.Name = "btnEinsatzLaden"; - btnEinsatzLaden.Size = new Size(113, 23); + btnEinsatzLaden.Size = new Size(112, 23); btnEinsatzLaden.TabIndex = 14; btnEinsatzLaden.Text = "Einsatz laden"; btnEinsatzLaden.UseVisualStyleBackColor = true; // // btnEinsatzDrucken // - btnEinsatzDrucken.Location = new Point(149, 363); + btnEinsatzDrucken.Location = new Point(151, 363); btnEinsatzDrucken.Name = "btnEinsatzDrucken"; btnEinsatzDrucken.Size = new Size(150, 23); btnEinsatzDrucken.TabIndex = 15; @@ -259,11 +305,11 @@ // tableLayoutPanel1.SetColumnSpan(txtLage, 3); txtLage.Dock = DockStyle.Fill; - txtLage.Location = new Point(149, 93); + txtLage.Location = new Point(151, 93); txtLage.Multiline = true; txtLage.Name = "txtLage"; tableLayoutPanel1.SetRowSpan(txtLage, 2); - txtLage.Size = new Size(648, 54); + txtLage.Size = new Size(662, 54); txtLage.TabIndex = 6; // // label6 @@ -290,7 +336,7 @@ // label8.Anchor = AnchorStyles.Left; label8.AutoSize = true; - label8.Location = new Point(403, 157); + label8.Location = new Point(410, 157); label8.Name = "label8"; label8.Size = new Size(36, 15); label8.TabIndex = 20; @@ -300,7 +346,7 @@ // label9.Anchor = AnchorStyles.Left; label9.AutoSize = true; - label9.Location = new Point(403, 187); + label9.Location = new Point(410, 187); label9.Name = "label9"; label9.Size = new Size(36, 15); label9.TabIndex = 21; @@ -309,45 +355,500 @@ // txtAnsprechpartner // txtAnsprechpartner.Dock = DockStyle.Fill; - txtAnsprechpartner.Location = new Point(149, 153); + txtAnsprechpartner.Location = new Point(151, 153); txtAnsprechpartner.Name = "txtAnsprechpartner"; - txtAnsprechpartner.Size = new Size(248, 23); + txtAnsprechpartner.Size = new Size(253, 23); txtAnsprechpartner.TabIndex = 7; // // txtRufnummer // txtRufnummer.Dock = DockStyle.Fill; - txtRufnummer.Location = new Point(149, 183); + txtRufnummer.Location = new Point(151, 183); txtRufnummer.Name = "txtRufnummer"; - txtRufnummer.Size = new Size(248, 23); + txtRufnummer.Size = new Size(253, 23); txtRufnummer.TabIndex = 9; // // txtFunk1 // txtFunk1.Dock = DockStyle.Fill; - txtFunk1.Location = new Point(522, 153); + txtFunk1.Location = new Point(531, 153); txtFunk1.Name = "txtFunk1"; - txtFunk1.Size = new Size(275, 23); + txtFunk1.Size = new Size(282, 23); txtFunk1.TabIndex = 8; // // txtFunk2 // txtFunk2.Dock = DockStyle.Fill; - txtFunk2.Location = new Point(522, 183); + txtFunk2.Location = new Point(531, 183); txtFunk2.Name = "txtFunk2"; - txtFunk2.Size = new Size(275, 23); + txtFunk2.Size = new Size(282, 23); txtFunk2.TabIndex = 10; // + // tabControl1 + // + tabControl1.Controls.Add(tabPage1); + tabControl1.Controls.Add(tabPage2); + tabControl1.Controls.Add(tabPage3); + tabControl1.Controls.Add(tabPage4); + tabControl1.Controls.Add(tabPage5); + tabControl1.Controls.Add(tabPage6); + tabControl1.Controls.Add(tabPage7); + tabControl1.Dock = DockStyle.Fill; + tabControl1.Location = new Point(0, 0); + tabControl1.Name = "tabControl1"; + tabControl1.SelectedIndex = 0; + tabControl1.Size = new Size(830, 459); + tabControl1.TabIndex = 1; + // + // tabPage1 + // + tabPage1.Controls.Add(tableLayoutPanel1); + tabPage1.Location = new Point(4, 24); + tabPage1.Name = "tabPage1"; + tabPage1.Padding = new Padding(3); + tabPage1.Size = new Size(822, 431); + tabPage1.TabIndex = 0; + tabPage1.Text = "Alarminformationen"; + tabPage1.UseVisualStyleBackColor = true; + // + // tabPage2 + // + tabPage2.Controls.Add(tableLayoutPanel7); + tabPage2.Location = new Point(4, 24); + tabPage2.Name = "tabPage2"; + tabPage2.Padding = new Padding(3); + tabPage2.Size = new Size(822, 431); + tabPage2.TabIndex = 1; + tabPage2.Text = "Anfahrt/Zeiten"; + tabPage2.UseVisualStyleBackColor = true; + // + // tableLayoutPanel7 + // + tableLayoutPanel7.ColumnCount = 6; + tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); + tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 117F)); + tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 77F)); + tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 240F)); + tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 150F)); + tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 20F)); + tableLayoutPanel7.Controls.Add(label10, 0, 0); + tableLayoutPanel7.Controls.Add(label11, 0, 1); + tableLayoutPanel7.Controls.Add(label12, 0, 2); + tableLayoutPanel7.Controls.Add(label13, 0, 3); + tableLayoutPanel7.Controls.Add(label14, 0, 4); + tableLayoutPanel7.Controls.Add(label16, 0, 6); + tableLayoutPanel7.Controls.Add(cmbLeitstelleInformiert, 1, 1); + tableLayoutPanel7.Controls.Add(cmbOrganisationInformiert, 1, 2); + tableLayoutPanel7.Controls.Add(cmbFreigabeSoWe, 1, 3); + tableLayoutPanel7.Controls.Add(txtTreffpunkt, 1, 4); + tableLayoutPanel7.Controls.Add(lblSoWeDurch, 2, 3); + tableLayoutPanel7.Controls.Add(txtSoWeDurch, 3, 3); + tableLayoutPanel7.Controls.Add(label15, 0, 7); + tableLayoutPanel7.Controls.Add(label18, 0, 8); + tableLayoutPanel7.Controls.Add(label19, 0, 9); + tableLayoutPanel7.Controls.Add(label20, 0, 10); + tableLayoutPanel7.Controls.Add(label21, 0, 11); + tableLayoutPanel7.Controls.Add(txtAbfahrt, 1, 8); + tableLayoutPanel7.Controls.Add(txtAnkunft, 1, 9); + tableLayoutPanel7.Controls.Add(txtAbrücken, 1, 10); + tableLayoutPanel7.Controls.Add(txtEnde, 1, 11); + tableLayoutPanel7.Controls.Add(txtAlarm, 1, 7); + tableLayoutPanel7.Controls.Add(label17, 3, 1); + tableLayoutPanel7.Dock = DockStyle.Fill; + tableLayoutPanel7.Location = new Point(3, 3); + tableLayoutPanel7.Name = "tableLayoutPanel7"; + tableLayoutPanel7.RowCount = 13; + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); + tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); + tableLayoutPanel7.Size = new Size(816, 425); + tableLayoutPanel7.TabIndex = 0; + // + // label10 + // + label10.Anchor = AnchorStyles.Left; + label10.AutoSize = true; + label10.Font = new Font("Segoe UI", 9F, FontStyle.Bold | FontStyle.Underline, GraphicsUnit.Point, 0); + label10.Location = new Point(3, 7); + label10.Name = "label10"; + label10.Size = new Size(50, 15); + label10.TabIndex = 0; + label10.Text = "Anfahrt"; + // + // label11 + // + label11.Anchor = AnchorStyles.Left; + label11.AutoSize = true; + label11.Location = new Point(3, 37); + label11.Name = "label11"; + label11.Size = new Size(112, 15); + label11.TabIndex = 1; + label11.Text = "Leitstelle informiert:"; + // + // label12 + // + label12.Anchor = AnchorStyles.Left; + label12.AutoSize = true; + label12.Location = new Point(3, 67); + label12.Name = "label12"; + label12.Size = new Size(172, 15); + label12.TabIndex = 2; + label12.Text = "eigene Organisation informiert:"; + // + // label13 + // + label13.Anchor = AnchorStyles.Left; + label13.AutoSize = true; + label13.Location = new Point(3, 97); + label13.Name = "label13"; + label13.Size = new Size(184, 15); + label13.TabIndex = 3; + label13.Text = "Freigabe Sonder- und Wegerecht:"; + // + // label14 + // + label14.Anchor = AnchorStyles.Left; + label14.AutoSize = true; + label14.Location = new Point(3, 127); + label14.Name = "label14"; + label14.Size = new Size(65, 15); + label14.TabIndex = 4; + label14.Text = "Treffpunkt:"; + // + // label16 + // + label16.Anchor = AnchorStyles.Left; + label16.AutoSize = true; + label16.Font = new Font("Segoe UI", 9F, FontStyle.Bold | FontStyle.Underline, GraphicsUnit.Point, 0); + label16.Location = new Point(3, 187); + label16.Name = "label16"; + label16.Size = new Size(43, 15); + label16.TabIndex = 6; + label16.Text = "Zeiten"; + // + // cmbLeitstelleInformiert + // + cmbLeitstelleInformiert.FormattingEnabled = true; + cmbLeitstelleInformiert.Items.AddRange(new object[] { "ja", "nein" }); + cmbLeitstelleInformiert.Location = new Point(215, 33); + cmbLeitstelleInformiert.Name = "cmbLeitstelleInformiert"; + cmbLeitstelleInformiert.Size = new Size(111, 23); + cmbLeitstelleInformiert.TabIndex = 7; + // + // cmbOrganisationInformiert + // + cmbOrganisationInformiert.FormattingEnabled = true; + cmbOrganisationInformiert.Items.AddRange(new object[] { "ja", "nein" }); + cmbOrganisationInformiert.Location = new Point(215, 63); + cmbOrganisationInformiert.Name = "cmbOrganisationInformiert"; + cmbOrganisationInformiert.Size = new Size(110, 23); + cmbOrganisationInformiert.TabIndex = 8; + // + // cmbFreigabeSoWe + // + cmbFreigabeSoWe.FormattingEnabled = true; + cmbFreigabeSoWe.Items.AddRange(new object[] { "ja", "nein" }); + cmbFreigabeSoWe.Location = new Point(215, 93); + cmbFreigabeSoWe.Name = "cmbFreigabeSoWe"; + cmbFreigabeSoWe.Size = new Size(110, 23); + cmbFreigabeSoWe.TabIndex = 9; + cmbFreigabeSoWe.SelectedIndexChanged += cmbFreigabeSoWe_SelectedIndexChanged; + // + // txtTreffpunkt + // + tableLayoutPanel7.SetColumnSpan(txtTreffpunkt, 3); + txtTreffpunkt.Dock = DockStyle.Fill; + txtTreffpunkt.Location = new Point(215, 123); + txtTreffpunkt.Name = "txtTreffpunkt"; + txtTreffpunkt.Size = new Size(428, 23); + txtTreffpunkt.TabIndex = 10; + // + // lblSoWeDurch + // + lblSoWeDurch.Anchor = AnchorStyles.Left; + lblSoWeDurch.AutoSize = true; + lblSoWeDurch.Location = new Point(332, 97); + lblSoWeDurch.Name = "lblSoWeDurch"; + lblSoWeDurch.Size = new Size(68, 15); + lblSoWeDurch.TabIndex = 11; + lblSoWeDurch.Text = "durch wen?"; + // + // txtSoWeDurch + // + txtSoWeDurch.Dock = DockStyle.Fill; + txtSoWeDurch.Location = new Point(409, 93); + txtSoWeDurch.Name = "txtSoWeDurch"; + txtSoWeDurch.Size = new Size(234, 23); + txtSoWeDurch.TabIndex = 12; + // + // label15 + // + label15.Anchor = AnchorStyles.Left; + label15.AutoSize = true; + label15.Location = new Point(3, 217); + label15.Name = "label15"; + label15.Size = new Size(42, 15); + label15.TabIndex = 13; + label15.Text = "Alarm:"; + label15.DoubleClick += label15_DoubleClick; + // + // label18 + // + label18.Anchor = AnchorStyles.Left; + label18.AutoSize = true; + label18.Location = new Point(3, 247); + label18.Name = "label18"; + label18.Size = new Size(50, 15); + label18.TabIndex = 14; + label18.Text = "Abfahrt:"; + label18.DoubleClick += label18_DoubleClick; + // + // label19 + // + label19.Anchor = AnchorStyles.Left; + label19.AutoSize = true; + label19.Location = new Point(3, 277); + label19.Name = "label19"; + label19.Size = new Size(53, 15); + label19.TabIndex = 15; + label19.Text = "Ankunft:"; + label19.DoubleClick += label19_DoubleClick; + // + // label20 + // + label20.Anchor = AnchorStyles.Left; + label20.AutoSize = true; + label20.Location = new Point(3, 307); + label20.Name = "label20"; + label20.Size = new Size(61, 15); + label20.TabIndex = 16; + label20.Text = "Abrücken:"; + label20.DoubleClick += label20_DoubleClick; + // + // label21 + // + label21.Anchor = AnchorStyles.Left; + label21.AutoSize = true; + label21.Location = new Point(3, 337); + label21.Name = "label21"; + label21.Size = new Size(36, 15); + label21.TabIndex = 17; + label21.Text = "Ende:"; + label21.DoubleClick += label21_DoubleClick; + // + // txtAbfahrt + // + txtAbfahrt.Location = new Point(215, 243); + txtAbfahrt.Mask = "90:00"; + txtAbfahrt.Name = "txtAbfahrt"; + txtAbfahrt.Size = new Size(100, 23); + txtAbfahrt.TabIndex = 24; + txtAbfahrt.ValidatingType = typeof(DateTime); + // + // txtAnkunft + // + txtAnkunft.Location = new Point(215, 273); + txtAnkunft.Mask = "90:00"; + txtAnkunft.Name = "txtAnkunft"; + txtAnkunft.Size = new Size(100, 23); + txtAnkunft.TabIndex = 25; + txtAnkunft.ValidatingType = typeof(DateTime); + // + // txtAbrücken + // + txtAbrücken.Location = new Point(215, 303); + txtAbrücken.Mask = "90:00"; + txtAbrücken.Name = "txtAbrücken"; + txtAbrücken.Size = new Size(100, 23); + txtAbrücken.TabIndex = 26; + txtAbrücken.ValidatingType = typeof(DateTime); + // + // txtEnde + // + txtEnde.Location = new Point(215, 333); + txtEnde.Mask = "90:00"; + txtEnde.Name = "txtEnde"; + txtEnde.Size = new Size(100, 23); + txtEnde.TabIndex = 27; + txtEnde.ValidatingType = typeof(DateTime); + // + // txtAlarm + // + txtAlarm.Location = new Point(215, 213); + txtAlarm.Mask = "90:00"; + txtAlarm.Name = "txtAlarm"; + txtAlarm.Size = new Size(100, 23); + txtAlarm.TabIndex = 23; + txtAlarm.ValidatingType = typeof(DateTime); + // + // tabPage3 + // + tabPage3.Controls.Add(tableLayoutPanel6); + tabPage3.Location = new Point(4, 24); + tabPage3.Name = "tabPage3"; + tabPage3.Padding = new Padding(3); + tabPage3.Size = new Size(822, 431); + tabPage3.TabIndex = 2; + tabPage3.Text = "vermisste Person"; + tabPage3.UseVisualStyleBackColor = true; + // + // tableLayoutPanel6 + // + tableLayoutPanel6.ColumnCount = 2; + tableLayoutPanel6.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel6.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel6.Dock = DockStyle.Fill; + tableLayoutPanel6.Location = new Point(3, 3); + tableLayoutPanel6.Name = "tableLayoutPanel6"; + tableLayoutPanel6.RowCount = 2; + tableLayoutPanel6.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); + tableLayoutPanel6.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); + tableLayoutPanel6.Size = new Size(816, 425); + tableLayoutPanel6.TabIndex = 0; + // + // tabPage4 + // + tabPage4.Controls.Add(tableLayoutPanel5); + tabPage4.Location = new Point(4, 24); + tabPage4.Name = "tabPage4"; + tabPage4.Padding = new Padding(3); + tabPage4.Size = new Size(822, 431); + tabPage4.TabIndex = 3; + tabPage4.Text = "Gefahren/Sonstiges"; + tabPage4.UseVisualStyleBackColor = true; + // + // tableLayoutPanel5 + // + tableLayoutPanel5.ColumnCount = 2; + tableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel5.Dock = DockStyle.Fill; + tableLayoutPanel5.Location = new Point(3, 3); + tableLayoutPanel5.Name = "tableLayoutPanel5"; + tableLayoutPanel5.RowCount = 2; + tableLayoutPanel5.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); + tableLayoutPanel5.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); + tableLayoutPanel5.Size = new Size(816, 425); + tableLayoutPanel5.TabIndex = 0; + // + // tabPage5 + // + tabPage5.Controls.Add(tableLayoutPanel4); + tabPage5.Location = new Point(4, 24); + tabPage5.Name = "tabPage5"; + tabPage5.Padding = new Padding(3); + tabPage5.Size = new Size(822, 431); + tabPage5.TabIndex = 4; + tabPage5.Text = "bisherige Suche"; + tabPage5.UseVisualStyleBackColor = true; + // + // tableLayoutPanel4 + // + tableLayoutPanel4.ColumnCount = 2; + tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + 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.Size = new Size(816, 425); + tableLayoutPanel4.TabIndex = 0; + // + // tabPage6 + // + tabPage6.Controls.Add(tableLayoutPanel3); + tabPage6.Location = new Point(4, 24); + tabPage6.Name = "tabPage6"; + tabPage6.Padding = new Padding(3); + tabPage6.Size = new Size(822, 431); + tabPage6.TabIndex = 5; + tabPage6.Text = "Kommunikation und Dokumentation"; + tabPage6.UseVisualStyleBackColor = true; + // + // tableLayoutPanel3 + // + tableLayoutPanel3.ColumnCount = 2; + tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel3.Dock = DockStyle.Fill; + tableLayoutPanel3.Location = new Point(3, 3); + tableLayoutPanel3.Name = "tableLayoutPanel3"; + tableLayoutPanel3.RowCount = 2; + tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); + tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); + tableLayoutPanel3.Size = new Size(816, 425); + tableLayoutPanel3.TabIndex = 0; + // + // tabPage7 + // + tabPage7.Controls.Add(tableLayoutPanel2); + tabPage7.Location = new Point(4, 24); + tabPage7.Name = "tabPage7"; + tabPage7.Padding = new Padding(3); + tabPage7.Size = new Size(822, 431); + tabPage7.TabIndex = 6; + tabPage7.Text = "Einsatzende"; + tabPage7.UseVisualStyleBackColor = true; + // + // tableLayoutPanel2 + // + tableLayoutPanel2.ColumnCount = 2; + tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel2.Dock = DockStyle.Fill; + tableLayoutPanel2.Location = new Point(3, 3); + tableLayoutPanel2.Name = "tableLayoutPanel2"; + tableLayoutPanel2.RowCount = 2; + tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); + tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); + tableLayoutPanel2.Size = new Size(816, 425); + tableLayoutPanel2.TabIndex = 0; + // + // label17 + // + label17.AutoSize = true; + tableLayoutPanel7.SetColumnSpan(label17, 2); + label17.Dock = DockStyle.Fill; + label17.Font = new Font("Segoe UI", 14F, FontStyle.Bold); + label17.Location = new Point(409, 30); + label17.Name = "label17"; + tableLayoutPanel7.SetRowSpan(label17, 2); + label17.Size = new Size(384, 60); + label17.TabIndex = 28; + label17.Text = "JAGDPÄCHTER SOFORT INFORMIEREN SCHRANKE UND TORE ÖFFNEN !!!!! "; + // // Form1 // AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(800, 450); - Controls.Add(tableLayoutPanel1); + ClientSize = new Size(830, 459); + Controls.Add(tabControl1); Name = "Form1"; Text = "Form1"; tableLayoutPanel1.ResumeLayout(false); tableLayoutPanel1.PerformLayout(); + tabControl1.ResumeLayout(false); + tabPage1.ResumeLayout(false); + tabPage2.ResumeLayout(false); + tableLayoutPanel7.ResumeLayout(false); + tableLayoutPanel7.PerformLayout(); + tabPage3.ResumeLayout(false); + tabPage4.ResumeLayout(false); + tabPage5.ResumeLayout(false); + tabPage6.ResumeLayout(false); + tabPage7.ResumeLayout(false); ResumeLayout(false); } @@ -379,5 +880,42 @@ private TextBox txtRufnummer; private TextBox txtFunk1; private TextBox txtFunk2; + private TabControl tabControl1; + private TabPage tabPage1; + private TabPage tabPage2; + private TabPage tabPage3; + private TabPage tabPage4; + private TabPage tabPage5; + private TabPage tabPage6; + private TableLayoutPanel tableLayoutPanel7; + private Label label10; + private Label label11; + private Label label12; + private Label label13; + private Label label14; + private Label label16; + private TableLayoutPanel tableLayoutPanel6; + private TableLayoutPanel tableLayoutPanel5; + private TableLayoutPanel tableLayoutPanel4; + private TableLayoutPanel tableLayoutPanel3; + private TabPage tabPage7; + private TableLayoutPanel tableLayoutPanel2; + private ComboBox cmbLeitstelleInformiert; + private ComboBox cmbOrganisationInformiert; + private ComboBox cmbFreigabeSoWe; + private TextBox txtTreffpunkt; + private Label lblSoWeDurch; + private TextBox txtSoWeDurch; + private Label label15; + private Label label18; + private Label label19; + private Label label20; + private Label label21; + private MaskedTextBox txtAlarm; + private MaskedTextBox txtAbrücken; + private MaskedTextBox txtAbfahrt; + private MaskedTextBox txtAnkunft; + private MaskedTextBox txtEnde; + private Label label17; } } diff --git a/RHS-Sachsen/Form1.cs b/RHS-Sachsen/Form1.cs index 18429d6..d460904 100644 --- a/RHS-Sachsen/Form1.cs +++ b/RHS-Sachsen/Form1.cs @@ -13,6 +13,8 @@ namespace RHS_Sachsen { InitializeComponent(); FelderAufStandartSetzen(); + lblSoWeDurch.Visible = false; + txtSoWeDurch.Visible = false; } private void btnEinsatzSpeichern_Click(object sender, EventArgs e) @@ -85,5 +87,50 @@ namespace RHS_Sachsen txtFunk1.Clear(); txtFunk2.Clear(); } + + private void cmbFreigabeSoWe_SelectedIndexChanged(object sender, EventArgs e) + { + if (cmbFreigabeSoWe.Text == "ja") + { + lblSoWeDurch.Visible = true; + txtSoWeDurch.Visible = true; + } + else + { + lblSoWeDurch.Visible = false; + txtSoWeDurch.Visible = false; + txtSoWeDurch.Clear(); + } + } + + private void label15_Click(object sender, EventArgs e) + { + + } + + private void label15_DoubleClick(object sender, EventArgs e) + { + txtAlarm.Text = DateTime.Now.ToShortTimeString(); + } + + private void label18_DoubleClick(object sender, EventArgs e) + { + txtAbfahrt.Text = DateTime.Now.ToShortTimeString(); + } + + private void label19_DoubleClick(object sender, EventArgs e) + { + txtAnkunft.Text = DateTime.Now.ToShortTimeString(); + } + + private void label20_DoubleClick(object sender, EventArgs e) + { + txtAbrücken.Text = DateTime.Now.ToShortTimeString(); + } + + private void label21_DoubleClick(object sender, EventArgs e) + { + txtEnde.Text = DateTime.Now.ToShortTimeString(); + } } } diff --git a/RHS-Sachsen/Form1.resx b/RHS-Sachsen/Form1.resx index af32865..8b2ff64 100644 --- a/RHS-Sachsen/Form1.resx +++ b/RHS-Sachsen/Form1.resx @@ -1,7 +1,7 @@