diff --git a/KlassenBIB/Inspektionsobjekt.cs b/KlassenBIB/Inspektionsobjekt.cs
index 17bbc08..ebe3db7 100644
--- a/KlassenBIB/Inspektionsobjekt.cs
+++ b/KlassenBIB/Inspektionsobjekt.cs
@@ -17,6 +17,10 @@ namespace KlassenBIB
///
///
///
+ public bool GeschlossenesEnde { get; set; }
+ ///
+ ///
+ ///
public string StrasseName { get => strasseName; set => strasseName = value; }
///
///
diff --git a/SanSystem/frmObjektEdit.Designer.cs b/SanSystem/frmObjektEdit.Designer.cs
index 8b26e01..fc5c998 100644
--- a/SanSystem/frmObjektEdit.Designer.cs
+++ b/SanSystem/frmObjektEdit.Designer.cs
@@ -30,6 +30,7 @@
{
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
+ this.btn_delete = new System.Windows.Forms.Button();
this.cb_objekname_man = new System.Windows.Forms.CheckBox();
this.label8 = new System.Windows.Forms.Label();
this.txt_ort = new System.Windows.Forms.TextBox();
@@ -42,7 +43,7 @@
this.txt_haltungslaenge = new System.Windows.Forms.MaskedTextBox();
this.txt_laenge_schacht = new System.Windows.Forms.MaskedTextBox();
this.label21 = new System.Windows.Forms.Label();
- this.checkBox1 = new System.Windows.Forms.CheckBox();
+ this.cb_geschlossenesEnde = new System.Windows.Forms.CheckBox();
this.label6 = new System.Windows.Forms.Label();
this.dt_haltunggemessen_datum = new System.Windows.Forms.DateTimePicker();
this.label20 = new System.Windows.Forms.Label();
@@ -63,7 +64,6 @@
this.dgv_schadenkuerzel = new System.Windows.Forms.DataGridView();
this.btn_close = new System.Windows.Forms.Button();
this.btn_add_san = new System.Windows.Forms.Button();
- this.btn_delete = new System.Windows.Forms.Button();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox2.SuspendLayout();
@@ -121,6 +121,18 @@
this.tabPage1.Text = "Grunddaten";
this.tabPage1.UseVisualStyleBackColor = true;
//
+ // btn_delete
+ //
+ this.btn_delete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.btn_delete.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.btn_delete.Location = new System.Drawing.Point(428, 608);
+ this.btn_delete.Name = "btn_delete";
+ this.btn_delete.Size = new System.Drawing.Size(166, 49);
+ this.btn_delete.TabIndex = 31;
+ this.btn_delete.Text = "Löschen";
+ this.btn_delete.UseVisualStyleBackColor = true;
+ this.btn_delete.Click += new System.EventHandler(this.btn_delete_Click);
+ //
// cb_objekname_man
//
this.cb_objekname_man.AutoSize = true;
@@ -237,7 +249,7 @@
this.groupBox2.Controls.Add(this.txt_haltungslaenge);
this.groupBox2.Controls.Add(this.txt_laenge_schacht);
this.groupBox2.Controls.Add(this.label21);
- this.groupBox2.Controls.Add(this.checkBox1);
+ this.groupBox2.Controls.Add(this.cb_geschlossenesEnde);
this.groupBox2.Controls.Add(this.label6);
this.groupBox2.Location = new System.Drawing.Point(13, 340);
this.groupBox2.Name = "groupBox2";
@@ -272,16 +284,16 @@
this.label21.TabIndex = 21;
this.label21.Text = "Schachtlänge";
//
- // checkBox1
+ // cb_geschlossenesEnde
//
- this.checkBox1.AutoSize = true;
- this.checkBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.checkBox1.Location = new System.Drawing.Point(9, 75);
- this.checkBox1.Name = "checkBox1";
- this.checkBox1.Size = new System.Drawing.Size(210, 29);
- this.checkBox1.TabIndex = 12;
- this.checkBox1.Text = "Geschlossene Ende";
- this.checkBox1.UseVisualStyleBackColor = true;
+ this.cb_geschlossenesEnde.AutoSize = true;
+ this.cb_geschlossenesEnde.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.cb_geschlossenesEnde.Location = new System.Drawing.Point(9, 75);
+ this.cb_geschlossenesEnde.Name = "cb_geschlossenesEnde";
+ this.cb_geschlossenesEnde.Size = new System.Drawing.Size(210, 29);
+ this.cb_geschlossenesEnde.TabIndex = 12;
+ this.cb_geschlossenesEnde.Text = "Geschlossene Ende";
+ this.cb_geschlossenesEnde.UseVisualStyleBackColor = true;
//
// label6
//
@@ -495,18 +507,6 @@
this.btn_add_san.UseVisualStyleBackColor = true;
this.btn_add_san.Click += new System.EventHandler(this.btn_add_san_Click);
//
- // btn_delete
- //
- this.btn_delete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.btn_delete.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btn_delete.Location = new System.Drawing.Point(428, 608);
- this.btn_delete.Name = "btn_delete";
- this.btn_delete.Size = new System.Drawing.Size(166, 49);
- this.btn_delete.TabIndex = 31;
- this.btn_delete.Text = "Löschen";
- this.btn_delete.UseVisualStyleBackColor = true;
- this.btn_delete.Click += new System.EventHandler(this.btn_delete_Click);
- //
// frmObjektEdit
//
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
@@ -558,7 +558,7 @@
private System.Windows.Forms.MaskedTextBox txt_haltungslaenge;
private System.Windows.Forms.MaskedTextBox txt_laenge_schacht;
private System.Windows.Forms.Label label21;
- private System.Windows.Forms.CheckBox checkBox1;
+ private System.Windows.Forms.CheckBox cb_geschlossenesEnde;
private System.Windows.Forms.ComboBox cb_material;
private System.Windows.Forms.Button btn_close;
private System.Windows.Forms.TextBox txt_objekt_name;
diff --git a/SanSystem/frmObjektEdit.cs b/SanSystem/frmObjektEdit.cs
index 6740859..d9506a6 100644
--- a/SanSystem/frmObjektEdit.cs
+++ b/SanSystem/frmObjektEdit.cs
@@ -84,6 +84,7 @@ namespace SanSystem
txt_pro_nr.DataBindings.Add(new Binding("Text", inspektionsobjekt, "ProjektNummer"));
dt_haltunggemessen_datum.DataBindings.Add(new Binding("Value", inspektionsobjekt, "HaltungGemessen"));
txt_bemerkung.DataBindings.Add(new Binding("Text", inspektionsobjekt, "Bemerkung"));
+ cb_geschlossenesEnde.DataBindings.Add(new Binding("Checked", inspektionsobjekt, "GeschlossenesEnde"));
}
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
@@ -112,6 +113,8 @@ namespace SanSystem
dt_haltunggemessen_datum.DataBindings.Clear();
txt_bemerkung.DataBindings.Clear();
txt_ort.DataBindings.Clear();
+
+ cb_geschlossenesEnde.DataBindings.Clear();
//MessageBox.Show(string.Format("width: {0} height: {1}", width, height));
this.Close();
}
diff --git a/SanSystem/frmObjekteList.cs b/SanSystem/frmObjekteList.cs
index 4828326..08a65d6 100644
--- a/SanSystem/frmObjekteList.cs
+++ b/SanSystem/frmObjekteList.cs
@@ -213,6 +213,7 @@ namespace SanSystem
dGObjekte.Columns["Bemerkung"].Visible = false;
dGObjekte.Columns["Guid"].Visible = false;
dGObjekte.Columns["Inspektionsrichtung"].Visible = false;
+ dGObjekte.Columns["GeschlossenesEnde"].Visible = false;