From 9d70e1ae3b4917d0c2d8c34101e0c97405cf92c4 Mon Sep 17 00:00:00 2001 From: HuskyTeufel Date: Wed, 13 Apr 2022 12:30:19 +0200 Subject: [PATCH] =?UTF-8?q?Hauptmenu=20items=20aufger=C3=A4umt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dokumentation angefangen --- SanSystem/SanSystem.csproj | 9 +++ SanSystem/frmMain.Designer.cs | 102 +++++++++++++++++----------------- SanSystem/frmMain.cs | 38 ++++++++++--- documentation/main.tex | 27 +++++++++ 4 files changed, 117 insertions(+), 59 deletions(-) create mode 100644 documentation/main.tex diff --git a/SanSystem/SanSystem.csproj b/SanSystem/SanSystem.csproj index 8020867..9c67be7 100644 --- a/SanSystem/SanSystem.csproj +++ b/SanSystem/SanSystem.csproj @@ -135,6 +135,12 @@ FrmGetDataFromBluelight.cs + + Form + + + frmHelp.cs + Form @@ -284,6 +290,9 @@ FrmGetDataFromBluelight.cs + + frmHelp.cs + frmImprägnierBerichtEdit.cs diff --git a/SanSystem/frmMain.Designer.cs b/SanSystem/frmMain.Designer.cs index 74167b4..63ebe6b 100644 --- a/SanSystem/frmMain.Designer.cs +++ b/SanSystem/frmMain.Designer.cs @@ -39,11 +39,7 @@ this.auftraggeberToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.prefixSuffixToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exportFürBüroErstellenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.speichernToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.massenstatistikToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.projektordnerÖffnenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.imprägnierberichteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.berichteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.massenberichteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.verbrauchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -52,7 +48,11 @@ this.toolstrip_gesamtLiner = new System.Windows.Forms.ToolStripStatusLabel(); this.toolstrip_messages = new System.Windows.Forms.ToolStripStatusLabel(); this.update = new UpdateLib.Updater(); - this.configuration = new System.Windows.Forms.ToolStripMenuItem(); + this.speichernToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.imprägnierberichteToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.massenstatistikToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.einstellungenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.infoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.mainmenu.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); @@ -63,13 +63,9 @@ this.mainmenu.ImageScalingSize = new System.Drawing.Size(20, 20); this.mainmenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.projektToolStripMenuItem, - this.speichernToolStripMenuItem, - this.massenstatistikToolStripMenuItem, this.projektordnerÖffnenToolStripMenuItem, - this.toolStripMenuItem1, - this.imprägnierberichteToolStripMenuItem, this.berichteToolStripMenuItem, - this.configuration}); + this.infoToolStripMenuItem}); this.mainmenu.Location = new System.Drawing.Point(0, 0); this.mainmenu.Name = "mainmenu"; this.mainmenu.Size = new System.Drawing.Size(921, 29); @@ -84,7 +80,9 @@ this.stammdatenImportierenToolStripMenuItem, this.auftraggeberToolStripMenuItem, this.prefixSuffixToolStripMenuItem, - this.exportFürBüroErstellenToolStripMenuItem}); + this.exportFürBüroErstellenToolStripMenuItem, + this.speichernToolStripMenuItem1, + this.einstellungenToolStripMenuItem}); this.projektToolStripMenuItem.Name = "projektToolStripMenuItem"; this.projektToolStripMenuItem.Size = new System.Drawing.Size(71, 25); this.projektToolStripMenuItem.Text = "Projekt"; @@ -131,20 +129,6 @@ this.exportFürBüroErstellenToolStripMenuItem.Text = "Export für Büro erstellen"; this.exportFürBüroErstellenToolStripMenuItem.Click += new System.EventHandler(this.exportFürBüroErstellenToolStripMenuItem_Click); // - // speichernToolStripMenuItem - // - this.speichernToolStripMenuItem.Name = "speichernToolStripMenuItem"; - this.speichernToolStripMenuItem.Size = new System.Drawing.Size(91, 25); - this.speichernToolStripMenuItem.Text = "Speichern"; - this.speichernToolStripMenuItem.Click += new System.EventHandler(this.speichernToolStripMenuItem_Click); - // - // massenstatistikToolStripMenuItem - // - this.massenstatistikToolStripMenuItem.Name = "massenstatistikToolStripMenuItem"; - this.massenstatistikToolStripMenuItem.Size = new System.Drawing.Size(128, 25); - this.massenstatistikToolStripMenuItem.Text = "Massenstatistik"; - this.massenstatistikToolStripMenuItem.Click += new System.EventHandler(this.massenstatistikToolStripMenuItem_Click); - // // projektordnerÖffnenToolStripMenuItem // this.projektordnerÖffnenToolStripMenuItem.Name = "projektordnerÖffnenToolStripMenuItem"; @@ -152,23 +136,13 @@ this.projektordnerÖffnenToolStripMenuItem.Text = "Projektordner Öffnen"; this.projektordnerÖffnenToolStripMenuItem.Click += new System.EventHandler(this.ProjektordnerÖffnenToolStripMenuItem_Click); // - // toolStripMenuItem1 - // - this.toolStripMenuItem1.Name = "toolStripMenuItem1"; - this.toolStripMenuItem1.Size = new System.Drawing.Size(12, 25); - // - // imprägnierberichteToolStripMenuItem - // - this.imprägnierberichteToolStripMenuItem.Name = "imprägnierberichteToolStripMenuItem"; - this.imprägnierberichteToolStripMenuItem.Size = new System.Drawing.Size(155, 25); - this.imprägnierberichteToolStripMenuItem.Text = "Imprägnierberichte"; - this.imprägnierberichteToolStripMenuItem.Click += new System.EventHandler(this.ImprägnierberichteToolStripMenuItem_Click); - // // berichteToolStripMenuItem // this.berichteToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.massenberichteToolStripMenuItem, - this.verbrauchToolStripMenuItem}); + this.verbrauchToolStripMenuItem, + this.imprägnierberichteToolStripMenuItem1, + this.massenstatistikToolStripMenuItem1}); this.berichteToolStripMenuItem.Name = "berichteToolStripMenuItem"; this.berichteToolStripMenuItem.Size = new System.Drawing.Size(82, 25); this.berichteToolStripMenuItem.Text = "Berichte "; @@ -176,14 +150,14 @@ // massenberichteToolStripMenuItem // this.massenberichteToolStripMenuItem.Name = "massenberichteToolStripMenuItem"; - this.massenberichteToolStripMenuItem.Size = new System.Drawing.Size(189, 26); + this.massenberichteToolStripMenuItem.Size = new System.Drawing.Size(213, 26); this.massenberichteToolStripMenuItem.Text = "Massenberichte"; this.massenberichteToolStripMenuItem.Click += new System.EventHandler(this.MassenberichteToolStripMenuItem_Click); // // verbrauchToolStripMenuItem // this.verbrauchToolStripMenuItem.Name = "verbrauchToolStripMenuItem"; - this.verbrauchToolStripMenuItem.Size = new System.Drawing.Size(189, 26); + this.verbrauchToolStripMenuItem.Size = new System.Drawing.Size(213, 26); this.verbrauchToolStripMenuItem.Text = "Verbrauch"; this.verbrauchToolStripMenuItem.Click += new System.EventHandler(this.VerbrauchToolStripMenuItem_Click); // @@ -223,12 +197,40 @@ // this.update.UpdateUrl = "http://home.cosysda.de/sanverwaltung/UpdateInfo.dat"; // - // configuration + // speichernToolStripMenuItem1 // - this.configuration.Name = "configuration"; - this.configuration.Size = new System.Drawing.Size(118, 25); - this.configuration.Text = "Configuration"; - this.configuration.Click += new System.EventHandler(this.configuration_Click); + this.speichernToolStripMenuItem1.Name = "speichernToolStripMenuItem1"; + this.speichernToolStripMenuItem1.Size = new System.Drawing.Size(254, 26); + this.speichernToolStripMenuItem1.Text = "Speichern"; + this.speichernToolStripMenuItem1.Click += new System.EventHandler(this.speichernToolStripMenuItem1_Click); + // + // imprägnierberichteToolStripMenuItem1 + // + this.imprägnierberichteToolStripMenuItem1.Name = "imprägnierberichteToolStripMenuItem1"; + this.imprägnierberichteToolStripMenuItem1.Size = new System.Drawing.Size(213, 26); + this.imprägnierberichteToolStripMenuItem1.Text = "Imprägnierberichte"; + this.imprägnierberichteToolStripMenuItem1.Click += new System.EventHandler(this.imprägnierberichteToolStripMenuItem1_Click); + // + // massenstatistikToolStripMenuItem1 + // + this.massenstatistikToolStripMenuItem1.Name = "massenstatistikToolStripMenuItem1"; + this.massenstatistikToolStripMenuItem1.Size = new System.Drawing.Size(213, 26); + this.massenstatistikToolStripMenuItem1.Text = "Massenstatistik"; + this.massenstatistikToolStripMenuItem1.Click += new System.EventHandler(this.massenstatistikToolStripMenuItem1_Click); + // + // einstellungenToolStripMenuItem + // + this.einstellungenToolStripMenuItem.Name = "einstellungenToolStripMenuItem"; + this.einstellungenToolStripMenuItem.Size = new System.Drawing.Size(254, 26); + this.einstellungenToolStripMenuItem.Text = "Einstellungen"; + this.einstellungenToolStripMenuItem.Click += new System.EventHandler(this.einstellungenToolStripMenuItem_Click); + // + // infoToolStripMenuItem + // + this.infoToolStripMenuItem.Name = "infoToolStripMenuItem"; + this.infoToolStripMenuItem.Size = new System.Drawing.Size(49, 25); + this.infoToolStripMenuItem.Text = "Info"; + this.infoToolStripMenuItem.Click += new System.EventHandler(this.infoToolStripMenuItem_Click); // // frmMain // @@ -261,13 +263,9 @@ private System.Windows.Forms.ToolStripMenuItem öffnenToolStripMenuItem; private System.Windows.Forms.StatusStrip statusStrip1; private System.Windows.Forms.ToolStripStatusLabel toolStripStatus_projekt_Label; - private System.Windows.Forms.ToolStripMenuItem speichernToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem massenstatistikToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem stammdatenImportierenToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem auftraggeberToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem projektordnerÖffnenToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; - private System.Windows.Forms.ToolStripMenuItem imprägnierberichteToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem berichteToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem massenberichteToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem verbrauchToolStripMenuItem; @@ -276,7 +274,11 @@ private UpdateLib.Updater update; private System.Windows.Forms.ToolStripStatusLabel toolstrip_messages; private System.Windows.Forms.ToolStripMenuItem exportFürBüroErstellenToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem configuration; + private System.Windows.Forms.ToolStripMenuItem speichernToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem einstellungenToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem imprägnierberichteToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem massenstatistikToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem infoToolStripMenuItem; } } diff --git a/SanSystem/frmMain.cs b/SanSystem/frmMain.cs index 450209c..acfbde6 100644 --- a/SanSystem/frmMain.cs +++ b/SanSystem/frmMain.cs @@ -180,10 +180,7 @@ namespace SanSystem frmLinerReste.Show(); } - private void speichernToolStripMenuItem_Click(object sender, EventArgs e) - { - Datenbank.Instance.SaveProjekt(); - } + private void massenstatistikToolStripMenuItem_Click(object sender, EventArgs e) { @@ -264,11 +261,7 @@ namespace SanSystem } } - private void ImprägnierberichteToolStripMenuItem_Click(object sender, EventArgs e) - { - frmImprägnierBerichtList frmImprägnierBerichtList = new frmImprägnierBerichtList(); - frmImprägnierBerichtList.ShowDialog(); - } + private void MassenberichteToolStripMenuItem_Click(object sender, EventArgs e) { @@ -392,9 +385,36 @@ namespace SanSystem } private void configuration_Click(object sender, EventArgs e) + { + + } + + private void speichernToolStripMenuItem1_Click(object sender, EventArgs e) + { + Datenbank.Instance.SaveProjekt(); + } + + private void massenstatistikToolStripMenuItem1_Click(object sender, EventArgs e) + { + frmSelectMassenDate frmSelectMassenDate = new frmSelectMassenDate(); + frmSelectMassenDate.ShowDialog(); + } + + private void imprägnierberichteToolStripMenuItem1_Click(object sender, EventArgs e) + { + frmImprägnierBerichtList frmImprägnierBerichtList = new frmImprägnierBerichtList(); + frmImprägnierBerichtList.ShowDialog(); + } + + private void einstellungenToolStripMenuItem_Click(object sender, EventArgs e) { frmSettings frmSettings = new frmSettings(); frmSettings.ShowDialog(); } + + private void infoToolStripMenuItem_Click(object sender, EventArgs e) + { + + } } } diff --git a/documentation/main.tex b/documentation/main.tex new file mode 100644 index 0000000..7019261 --- /dev/null +++ b/documentation/main.tex @@ -0,0 +1,27 @@ +\documentclass[12pt,twoside,a4paper]{scrreprt} + +\begin{document} + + +/* +* Projekt +* Neu +* Öffnen +* Stammdaten importieren +* Auftraggeber +* Prefix / Suffix +* Export für Büro erstellen +* Speichern +* Einstellungen +* +* Projektordner Öffnen +* +* Berichte +* Massenberichte +* Verbrauch +* Imprägnierberichte +* Massenstatistik +* +* +*/ +