WIP daten als zip speichern
This commit is contained in:
@@ -32,6 +32,9 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Ionic.Zip, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Ionic.Zip.1.9.1.8\lib\Ionic.Zip.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
@@ -93,6 +96,7 @@
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\DataSources\KlassenBIB.Strasse.datasource" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
|
||||
56
SanSystem/frmMain.Designer.cs
generated
56
SanSystem/frmMain.Designer.cs
generated
@@ -28,23 +28,71 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.mainmenu = new System.Windows.Forms.MenuStrip();
|
||||
this.projektToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.neuToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.öffnenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.mainmenu.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// frm_main
|
||||
// mainmenu
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.mainmenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.projektToolStripMenuItem});
|
||||
this.mainmenu.Location = new System.Drawing.Point(0, 0);
|
||||
this.mainmenu.Name = "mainmenu";
|
||||
this.mainmenu.Size = new System.Drawing.Size(596, 24);
|
||||
this.mainmenu.TabIndex = 1;
|
||||
this.mainmenu.Text = "menuStrip1";
|
||||
//
|
||||
// projektToolStripMenuItem
|
||||
//
|
||||
this.projektToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.neuToolStripMenuItem,
|
||||
this.öffnenToolStripMenuItem});
|
||||
this.projektToolStripMenuItem.Name = "projektToolStripMenuItem";
|
||||
this.projektToolStripMenuItem.Size = new System.Drawing.Size(56, 20);
|
||||
this.projektToolStripMenuItem.Text = "Projekt";
|
||||
//
|
||||
// neuToolStripMenuItem
|
||||
//
|
||||
this.neuToolStripMenuItem.Name = "neuToolStripMenuItem";
|
||||
this.neuToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.neuToolStripMenuItem.Text = "Neu";
|
||||
this.neuToolStripMenuItem.Click += new System.EventHandler(this.neuToolStripMenuItem_Click);
|
||||
//
|
||||
// öffnenToolStripMenuItem
|
||||
//
|
||||
this.öffnenToolStripMenuItem.Name = "öffnenToolStripMenuItem";
|
||||
this.öffnenToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.öffnenToolStripMenuItem.Text = "Öffnen";
|
||||
//
|
||||
// frmMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(795, 459);
|
||||
this.ClientSize = new System.Drawing.Size(596, 373);
|
||||
this.Controls.Add(this.mainmenu);
|
||||
this.IsMdiContainer = true;
|
||||
this.Name = "frm_main";
|
||||
this.MainMenuStrip = this.mainmenu;
|
||||
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
||||
this.Name = "frmMain";
|
||||
this.Text = "Kanalsanierungsverwaltung";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frm_main_FormClosing);
|
||||
this.Load += new System.EventHandler(this.frm_main_Load);
|
||||
this.mainmenu.ResumeLayout(false);
|
||||
this.mainmenu.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.MenuStrip mainmenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem projektToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem neuToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem öffnenToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,28 +18,19 @@ namespace SanSystem
|
||||
{
|
||||
InitializeComponent();
|
||||
Datenbank.Instance.LoadProjekt("projekt1.xaml");
|
||||
Datenbank.Instance.CreateProjekt("");
|
||||
this.Width = Screen.PrimaryScreen.WorkingArea.Width;
|
||||
this.Height = Screen.PrimaryScreen.WorkingArea.Height;
|
||||
this.WindowState = FormWindowState.Maximized;
|
||||
this.StartPosition = FormStartPosition.Manual;
|
||||
this.Location = new Point(0, 0);
|
||||
|
||||
projektToolStripMenuItem.Text = Global.Instance.language.Labels["mainmenu_projekt"];
|
||||
neuToolStripMenuItem.Text = Global.Instance.language.Labels["mainmenu_projekt_new"];
|
||||
öffnenToolStripMenuItem.Text = Global.Instance.language.Labels["mainmenu_projekt_open"];
|
||||
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Projekt projekt = Datenbank.Instance.loadedProjekt;
|
||||
|
||||
//dresseCollection adressen = projekt.Adressen;
|
||||
/*
|
||||
adressen[0].Objekte.Add(new Inspektionsobjekt()
|
||||
{
|
||||
Objektbezeichnung = "SW01"
|
||||
});
|
||||
*/
|
||||
|
||||
Datenbank.Instance.SaveProjekt();
|
||||
}
|
||||
|
||||
private void frm_main_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -56,5 +47,10 @@ namespace SanSystem
|
||||
{
|
||||
Datenbank.Instance.SaveProjekt();
|
||||
}
|
||||
|
||||
private void neuToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,4 +117,7 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="mainmenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
4
SanSystem/packages.config
Normal file
4
SanSystem/packages.config
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Ionic.Zip" version="1.9.1.8" targetFramework="net461" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user