Objekt edit form angefangen

This commit is contained in:
Husky
2018-06-10 12:02:40 +02:00
parent 134ddca9e3
commit faf5dcc34e
10 changed files with 741 additions and 10 deletions

View File

@@ -9,6 +9,7 @@ namespace KlassenBIB
public abstract class Sanierung public abstract class Sanierung
{ {
Guid guid; Guid guid;
string projektnummer;
decimal tempAusen; decimal tempAusen;
decimal tempKanal; decimal tempKanal;
string wetter; string wetter;
@@ -21,6 +22,7 @@ namespace KlassenBIB
Inspektionsobjekt inspektionsObjekt; Inspektionsobjekt inspektionsObjekt;
public Guid Guid { get => guid; set => guid = value; } public Guid Guid { get => guid; set => guid = value; }
public string ProjektNummer { get => projektnummer; set => projektnummer = value; }
public decimal TempAusen { get => tempAusen; set => tempAusen = value; } public decimal TempAusen { get => tempAusen; set => tempAusen = value; }
public decimal TempKanal { get => tempKanal; set => tempKanal = value; } public decimal TempKanal { get => tempKanal; set => tempKanal = value; }
public string Wetter { get => wetter; set => wetter = value; } public string Wetter { get => wetter; set => wetter = value; }

469
SanSystem/FrmObjektEdit.Designer.cs generated Normal file
View File

@@ -0,0 +1,469 @@
namespace SanSystem
{
partial class frmObjektEdit
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.textBox6 = new System.Windows.Forms.TextBox();
this.textBox5 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.cb_lb_vorbereitung = new System.Windows.Forms.CheckedListBox();
this.cb_stvo = new System.Windows.Forms.CheckBox();
this.cb_wasserhaltung = new System.Windows.Forms.CheckBox();
this.cb_genehmigung = new System.Windows.Forms.CheckBox();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Location = new System.Drawing.Point(12, 12);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(776, 426);
this.tabControl1.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.textBox6);
this.tabPage1.Controls.Add(this.textBox5);
this.tabPage1.Controls.Add(this.textBox4);
this.tabPage1.Controls.Add(this.textBox3);
this.tabPage1.Controls.Add(this.textBox2);
this.tabPage1.Controls.Add(this.textBox1);
this.tabPage1.Controls.Add(this.label6);
this.tabPage1.Controls.Add(this.label5);
this.tabPage1.Controls.Add(this.label4);
this.tabPage1.Controls.Add(this.label3);
this.tabPage1.Controls.Add(this.label2);
this.tabPage1.Controls.Add(this.label1);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(768, 400);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Grunddaten";
this.tabPage1.UseVisualStyleBackColor = true;
//
// textBox6
//
this.textBox6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox6.Location = new System.Drawing.Point(128, 179);
this.textBox6.Name = "textBox6";
this.textBox6.Size = new System.Drawing.Size(221, 26);
this.textBox6.TabIndex = 11;
//
// textBox5
//
this.textBox5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox5.Location = new System.Drawing.Point(128, 149);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(221, 26);
this.textBox5.TabIndex = 10;
//
// textBox4
//
this.textBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox4.Location = new System.Drawing.Point(128, 113);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(221, 26);
this.textBox4.TabIndex = 9;
//
// textBox3
//
this.textBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox3.Location = new System.Drawing.Point(128, 82);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(221, 26);
this.textBox3.TabIndex = 8;
//
// textBox2
//
this.textBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox2.Location = new System.Drawing.Point(128, 52);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(221, 26);
this.textBox2.TabIndex = 7;
//
// textBox1
//
this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBox1.Location = new System.Drawing.Point(128, 20);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(221, 26);
this.textBox1.TabIndex = 6;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.Location = new System.Drawing.Point(6, 181);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(112, 20);
this.label6.TabIndex = 5;
this.label6.Text = "Haltungslänge";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.Location = new System.Drawing.Point(6, 148);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(65, 20);
this.label5.TabIndex = 4;
this.label5.Text = "Material";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Location = new System.Drawing.Point(6, 115);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(104, 20);
this.label4.TabIndex = 3;
this.label4.Text = "Durchmesser";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.Location = new System.Drawing.Point(6, 84);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(76, 20);
this.label3.TabIndex = 2;
this.label3.Text = "Bis Punkt";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(6, 54);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(83, 20);
this.label2.TabIndex = 1;
this.label2.Text = "Von Punkt";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(6, 23);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(116, 20);
this.label1.TabIndex = 0;
this.label1.Text = "Projektnummer";
//
// tabPage2
//
this.tabPage2.Controls.Add(this.label8);
this.tabPage2.Controls.Add(this.label7);
this.tabPage2.Controls.Add(this.cb_lb_vorbereitung);
this.tabPage2.Controls.Add(this.cb_stvo);
this.tabPage2.Controls.Add(this.cb_wasserhaltung);
this.tabPage2.Controls.Add(this.cb_genehmigung);
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(768, 400);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Vorraussetzungen";
this.tabPage2.UseVisualStyleBackColor = true;
//
// cb_lb_vorbereitung
//
this.cb_lb_vorbereitung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cb_lb_vorbereitung.FormattingEnabled = true;
this.cb_lb_vorbereitung.Items.AddRange(new object[] {
"HD - Reinigung",
"Mechanisch",
"Roboter"});
this.cb_lb_vorbereitung.Location = new System.Drawing.Point(179, 156);
this.cb_lb_vorbereitung.Name = "cb_lb_vorbereitung";
this.cb_lb_vorbereitung.Size = new System.Drawing.Size(142, 67);
this.cb_lb_vorbereitung.TabIndex = 4;
//
// cb_stvo
//
this.cb_stvo.AutoSize = true;
this.cb_stvo.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cb_stvo.Location = new System.Drawing.Point(39, 97);
this.cb_stvo.Name = "cb_stvo";
this.cb_stvo.Size = new System.Drawing.Size(263, 24);
this.cb_stvo.TabIndex = 2;
this.cb_stvo.Text = "Es wurde nach StVO abgesichert";
this.cb_stvo.UseVisualStyleBackColor = true;
//
// cb_wasserhaltung
//
this.cb_wasserhaltung.AutoSize = true;
this.cb_wasserhaltung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cb_wasserhaltung.Location = new System.Drawing.Point(39, 64);
this.cb_wasserhaltung.Name = "cb_wasserhaltung";
this.cb_wasserhaltung.Size = new System.Drawing.Size(269, 24);
this.cb_wasserhaltung.TabIndex = 1;
this.cb_wasserhaltung.Text = "Wasserhaltung wurde eingerichtet";
this.cb_wasserhaltung.UseVisualStyleBackColor = true;
//
// cb_genehmigung
//
this.cb_genehmigung.AutoSize = true;
this.cb_genehmigung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cb_genehmigung.Location = new System.Drawing.Point(39, 27);
this.cb_genehmigung.Name = "cb_genehmigung";
this.cb_genehmigung.Size = new System.Drawing.Size(245, 24);
this.cb_genehmigung.TabIndex = 0;
this.cb_genehmigung.Text = "Genehmigung wurde eingeholt";
this.cb_genehmigung.UseVisualStyleBackColor = true;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.Location = new System.Drawing.Point(39, 156);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(134, 20);
this.label7.TabIndex = 5;
this.label7.Text = "Leitung wurde mit";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.Location = new System.Drawing.Point(345, 156);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(88, 20);
this.label8.TabIndex = 6;
this.label8.Text = "Vorbereitet";
//
// tabPage3
//
this.tabPage3.Controls.Add(this.groupBox1);
this.tabPage3.Controls.Add(this.label13);
this.tabPage3.Controls.Add(this.label12);
this.tabPage3.Controls.Add(this.label11);
this.tabPage3.Controls.Add(this.label10);
this.tabPage3.Controls.Add(this.label9);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(768, 400);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "LinerGrundlagen";
this.tabPage3.UseVisualStyleBackColor = true;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.Location = new System.Drawing.Point(24, 30);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(43, 20);
this.label9.TabIndex = 0;
this.label9.Text = "Harz";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.Location = new System.Drawing.Point(229, 30);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(126, 20);
this.label10.TabIndex = 1;
this.label10.Text = "Charge-Nummer";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.Location = new System.Drawing.Point(24, 65);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(110, 20);
this.label11.TabIndex = 2;
this.label11.Text = "Harzbedarf /m";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label12.Location = new System.Drawing.Point(24, 100);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(44, 20);
this.label12.TabIndex = 3;
this.label12.Text = "Liner";
//
// label13
//
this.label13.AutoSize = true;
this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label13.Location = new System.Drawing.Point(229, 100);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(126, 20);
this.label13.TabIndex = 4;
this.label13.Text = "Charge-Nummer";
//
// label14
//
this.label14.AutoSize = true;
this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label14.Location = new System.Drawing.Point(6, 153);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(129, 20);
this.label14.TabIndex = 5;
this.label14.Text = "Temperatur Harz";
//
// label15
//
this.label15.AutoSize = true;
this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label15.Location = new System.Drawing.Point(2, 31);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(166, 20);
this.label15.TabIndex = 6;
this.label15.Text = "Datum der Kalibierung";
//
// label16
//
this.label16.AutoSize = true;
this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label16.Location = new System.Drawing.Point(2, 80);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(127, 20);
this.label16.TabIndex = 7;
this.label16.Text = "Walzen-Abstand";
//
// label17
//
this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label17.Location = new System.Drawing.Point(229, 88);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(68, 20);
this.label17.TabIndex = 8;
this.label17.Text = "Vakuum";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label17);
this.groupBox1.Controls.Add(this.label14);
this.groupBox1.Controls.Add(this.label16);
this.groupBox1.Controls.Add(this.label15);
this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox1.Location = new System.Drawing.Point(27, 148);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(502, 213);
this.groupBox1.TabIndex = 9;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Kalibrierung";
//
// frmObjektEdit
//
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.tabControl1);
this.Name = "frmObjektEdit";
this.Text = "FrmObjektEdit";
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.tabPage2.ResumeLayout(false);
this.tabPage2.PerformLayout();
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.CheckedListBox cb_lb_vorbereitung;
private System.Windows.Forms.CheckBox cb_stvo;
private System.Windows.Forms.CheckBox cb_wasserhaltung;
private System.Windows.Forms.CheckBox cb_genehmigung;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SanSystem
{
public partial class frmObjektEdit : Form
{
public frmObjektEdit()
{
InitializeComponent();
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is automatically generated by Visual Studio .Net. It is
used to store generic object data source configuration information.
Renaming the file extension or editing the content of this file may
cause the file to be unrecognizable by the program.
-->
<GenericObjectDataSource DisplayName="Strasse" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TypeInfo>KlassenBIB.Strasse, KlassenBIB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
</GenericObjectDataSource>

View File

@@ -45,6 +45,12 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="frmObjektEdit.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmObjektEdit.Designer.cs">
<DependentUpon>frmObjektEdit.cs</DependentUpon>
</Compile>
<Compile Include="frmObjekteList.cs"> <Compile Include="frmObjekteList.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -65,6 +71,9 @@
</Compile> </Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="frmObjektEdit.resx">
<DependentUpon>frmObjektEdit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmObjekteList.resx"> <EmbeddedResource Include="frmObjekteList.resx">
<DependentUpon>frmObjekteList.cs</DependentUpon> <DependentUpon>frmObjekteList.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@@ -83,6 +92,7 @@
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
</Compile> </Compile>
<None Include="Properties\DataSources\KlassenBIB.Strasse.datasource" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput> <LastGenOutput>Settings.Designer.cs</LastGenOutput>

View File

@@ -44,6 +44,10 @@ namespace SanSystem
frmStrassenList strassenList = new frmStrassenList(); frmStrassenList strassenList = new frmStrassenList();
strassenList.MdiParent = this; strassenList.MdiParent = this;
strassenList.Show(); strassenList.Show();
frmObjektEdit frmObjektEdit = new frmObjektEdit();
frmObjektEdit.Show();
} }
private void frm_main_FormClosing(object sender, FormClosingEventArgs e) private void frm_main_FormClosing(object sender, FormClosingEventArgs e)

View File

@@ -28,41 +28,114 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container();
this.dGObjekte = new System.Windows.Forms.DataGridView(); this.dGObjekte = new System.Windows.Forms.DataGridView();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.strasseBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.objektbezeichnungDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.vonPunktDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bisPunktDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.rohrMaterialDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.kanalrohrweiteDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.haltungslaengeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sanierungDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dGObjekte)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dGObjekte)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.strasseBindingSource)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// dGObjekte // dGObjekte
// //
this.dGObjekte.AllowUserToOrderColumns = true; this.dGObjekte.AllowUserToOrderColumns = true;
this.dGObjekte.AutoGenerateColumns = false;
this.dGObjekte.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dGObjekte.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dGObjekte.Location = new System.Drawing.Point(12, 12); this.dGObjekte.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.objektbezeichnungDataGridViewTextBoxColumn,
this.vonPunktDataGridViewTextBoxColumn,
this.bisPunktDataGridViewTextBoxColumn,
this.rohrMaterialDataGridViewTextBoxColumn,
this.kanalrohrweiteDataGridViewTextBoxColumn,
this.haltungslaengeDataGridViewTextBoxColumn,
this.sanierungDataGridViewTextBoxColumn});
this.dGObjekte.DataMember = "Objekte";
this.dGObjekte.DataSource = this.strasseBindingSource;
this.dGObjekte.Location = new System.Drawing.Point(9, 10);
this.dGObjekte.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.dGObjekte.Name = "dGObjekte"; this.dGObjekte.Name = "dGObjekte";
this.dGObjekte.RowTemplate.Height = 24; this.dGObjekte.RowTemplate.Height = 24;
this.dGObjekte.Size = new System.Drawing.Size(348, 163); this.dGObjekte.Size = new System.Drawing.Size(951, 361);
this.dGObjekte.TabIndex = 0; this.dGObjekte.TabIndex = 0;
// //
// button1 // button1
// //
this.button1.Location = new System.Drawing.Point(448, 51); this.button1.Location = new System.Drawing.Point(763, 387);
this.button1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(136, 124); this.button1.Size = new System.Drawing.Size(102, 101);
this.button1.TabIndex = 1; this.button1.TabIndex = 1;
this.button1.Text = "button1"; this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click); this.button1.Click += new System.EventHandler(this.button1_Click);
// //
// strasseBindingSource
//
this.strasseBindingSource.DataSource = typeof(KlassenBIB.Strasse);
//
// objektbezeichnungDataGridViewTextBoxColumn
//
this.objektbezeichnungDataGridViewTextBoxColumn.DataPropertyName = "Objektbezeichnung";
this.objektbezeichnungDataGridViewTextBoxColumn.HeaderText = "Objektbezeichnung";
this.objektbezeichnungDataGridViewTextBoxColumn.Name = "objektbezeichnungDataGridViewTextBoxColumn";
//
// vonPunktDataGridViewTextBoxColumn
//
this.vonPunktDataGridViewTextBoxColumn.DataPropertyName = "VonPunkt";
this.vonPunktDataGridViewTextBoxColumn.HeaderText = "VonPunkt";
this.vonPunktDataGridViewTextBoxColumn.Name = "vonPunktDataGridViewTextBoxColumn";
//
// bisPunktDataGridViewTextBoxColumn
//
this.bisPunktDataGridViewTextBoxColumn.DataPropertyName = "BisPunkt";
this.bisPunktDataGridViewTextBoxColumn.HeaderText = "BisPunkt";
this.bisPunktDataGridViewTextBoxColumn.Name = "bisPunktDataGridViewTextBoxColumn";
//
// rohrMaterialDataGridViewTextBoxColumn
//
this.rohrMaterialDataGridViewTextBoxColumn.DataPropertyName = "RohrMaterial";
this.rohrMaterialDataGridViewTextBoxColumn.HeaderText = "RohrMaterial";
this.rohrMaterialDataGridViewTextBoxColumn.Name = "rohrMaterialDataGridViewTextBoxColumn";
//
// kanalrohrweiteDataGridViewTextBoxColumn
//
this.kanalrohrweiteDataGridViewTextBoxColumn.DataPropertyName = "Kanalrohrweite";
this.kanalrohrweiteDataGridViewTextBoxColumn.HeaderText = "Kanalrohrweite";
this.kanalrohrweiteDataGridViewTextBoxColumn.Name = "kanalrohrweiteDataGridViewTextBoxColumn";
//
// haltungslaengeDataGridViewTextBoxColumn
//
this.haltungslaengeDataGridViewTextBoxColumn.DataPropertyName = "Haltungslaenge";
this.haltungslaengeDataGridViewTextBoxColumn.HeaderText = "Haltungslaenge";
this.haltungslaengeDataGridViewTextBoxColumn.Name = "haltungslaengeDataGridViewTextBoxColumn";
//
// sanierungDataGridViewTextBoxColumn
//
this.sanierungDataGridViewTextBoxColumn.DataPropertyName = "Sanierung";
this.sanierungDataGridViewTextBoxColumn.HeaderText = "Sanierung";
this.sanierungDataGridViewTextBoxColumn.Name = "sanierungDataGridViewTextBoxColumn";
this.sanierungDataGridViewTextBoxColumn.Visible = false;
//
// frmObjekteList // frmObjekteList
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(639, 253); this.ClientSize = new System.Drawing.Size(971, 499);
this.Controls.Add(this.button1); this.Controls.Add(this.button1);
this.Controls.Add(this.dGObjekte); this.Controls.Add(this.dGObjekte);
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "frmObjekteList"; this.Name = "frmObjekteList";
this.Text = "frmObjekteList"; this.Text = "frmObjekteList";
this.Load += new System.EventHandler(this.frmObjekteList_Load);
((System.ComponentModel.ISupportInitialize)(this.dGObjekte)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dGObjekte)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.strasseBindingSource)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@@ -71,5 +144,13 @@
private System.Windows.Forms.DataGridView dGObjekte; private System.Windows.Forms.DataGridView dGObjekte;
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
private System.Windows.Forms.DataGridViewTextBoxColumn objektbezeichnungDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn vonPunktDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn bisPunktDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn rohrMaterialDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn kanalrohrweiteDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn haltungslaengeDataGridViewTextBoxColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn sanierungDataGridViewTextBoxColumn;
private System.Windows.Forms.BindingSource strasseBindingSource;
} }
} }

View File

@@ -25,22 +25,31 @@ namespace SanSystem
bs.DataSource = street; bs.DataSource = street;
this.strasse = strasse; this.strasse = strasse;
dGObjekte.DataSource = bs; //strasse.Objekte; //dGObjekte.BindingContext = strasse.Objekte;
//dGObjekte.DataSource = strasse.Objekte;// bs; //strasse.Objekte;
//dGObjekte.AutoGenerateColumns = false;
} }
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
street.Add(new Strasse() /*street.Add(new Strasse()
{ {
Strassename = "XSSD" Strassename = "XSSD"
}); });
*/
/*
strasse.Objekte.Add(new Inspektionsobjekt() strasse.Objekte.Add(new Inspektionsobjekt()
{ {
Objektbezeichnung = "1229292" Objektbezeichnung = "1229292"
}); });
*/ dGObjekte.DataSource = null;
dGObjekte.DataSource = strasse.Objekte;
}
private void frmObjekteList_Load(object sender, EventArgs e)
{
dGObjekte.DataSource = strasse.Objekte;
} }
} }
} }

View File

@@ -117,4 +117,10 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="strasseBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="strasseBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root> </root>