WIP daten als zip speichern
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user