added branch

This commit is contained in:
Stefan
2020-01-08 11:30:39 +01:00
parent 5fce70c8e6
commit b6ae111aee
37 changed files with 1105 additions and 32 deletions
+78
View File
@@ -0,0 +1,78 @@
namespace Superbuchhaltung.Forms.Buchungen
{
partial class AddBuchung
{
/// <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.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(49, 40);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(149, 22);
this.textBox1.TabIndex = 0;
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(262, 40);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(149, 22);
this.textBox2.TabIndex = 1;
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(106, 80);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(149, 22);
this.textBox3.TabIndex = 2;
//
// AddBuchung
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.Name = "AddBuchung";
this.Text = "AddBuchung";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
}
}
@@ -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 Superbuchhaltung.Forms.Buchungen
{
public partial class AddBuchung : Form
{
public AddBuchung()
{
InitializeComponent();
}
}
}
+41 -18
View File
@@ -30,7 +30,7 @@
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main));
this.panel1 = new System.Windows.Forms.Panel();
this.Kat0btn = new System.Windows.Forms.Button();
this.Guvbtn = new System.Windows.Forms.Button();
this.Homebtn = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
@@ -55,6 +55,8 @@
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.toolStripDropDownButton2 = new System.Windows.Forms.ToolStripDropDownButton();
this.neueBuchungToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.PH.SuspendLayout();
@@ -71,7 +73,7 @@
| System.Windows.Forms.AnchorStyles.Left)));
this.panel1.AutoSize = true;
this.panel1.BackColor = System.Drawing.Color.Green;
this.panel1.Controls.Add(this.Kat0btn);
this.panel1.Controls.Add(this.Guvbtn);
this.panel1.Controls.Add(this.Homebtn);
this.panel1.Location = new System.Drawing.Point(1, 27);
this.panel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
@@ -79,19 +81,19 @@
this.panel1.Size = new System.Drawing.Size(197, 532);
this.panel1.TabIndex = 0;
//
// Kat0btn
// Guvbtn
//
this.Kat0btn.FlatAppearance.BorderSize = 0;
this.Kat0btn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Kat0btn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Kat0btn.ForeColor = System.Drawing.Color.White;
this.Kat0btn.Location = new System.Drawing.Point(0, 147);
this.Kat0btn.Name = "Kat0btn";
this.Kat0btn.Size = new System.Drawing.Size(194, 54);
this.Kat0btn.TabIndex = 3;
this.Kat0btn.Text = "0. Kategorie";
this.Kat0btn.UseVisualStyleBackColor = true;
this.Kat0btn.Click += new System.EventHandler(this.Kat0btn_Click);
this.Guvbtn.FlatAppearance.BorderSize = 0;
this.Guvbtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.Guvbtn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Guvbtn.ForeColor = System.Drawing.Color.White;
this.Guvbtn.Location = new System.Drawing.Point(0, 147);
this.Guvbtn.Name = "Guvbtn";
this.Guvbtn.Size = new System.Drawing.Size(194, 54);
this.Guvbtn.TabIndex = 3;
this.Guvbtn.Text = "GuV";
this.Guvbtn.UseVisualStyleBackColor = true;
this.Guvbtn.Click += new System.EventHandler(this.Kat0btn_Click);
//
// Homebtn
//
@@ -201,7 +203,8 @@
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripDropDownButton1});
this.toolStripDropDownButton1,
this.toolStripDropDownButton2});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
@@ -219,8 +222,8 @@
this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image")));
this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";
this.toolStripDropDownButton1.Size = new System.Drawing.Size(55, 24);
this.toolStripDropDownButton1.Text = "Data";
this.toolStripDropDownButton1.Size = new System.Drawing.Size(124, 24);
this.toolStripDropDownButton1.Text = "Konto-Einträge";
//
// addentrieToolStripMenuItem
//
@@ -337,6 +340,24 @@
this.dataGridViewTextBoxColumn3.ReadOnly = true;
this.dataGridViewTextBoxColumn3.Width = 125;
//
// toolStripDropDownButton2
//
this.toolStripDropDownButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.toolStripDropDownButton2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.neueBuchungToolStripMenuItem});
this.toolStripDropDownButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton2.Image")));
this.toolStripDropDownButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripDropDownButton2.Name = "toolStripDropDownButton2";
this.toolStripDropDownButton2.Size = new System.Drawing.Size(96, 24);
this.toolStripDropDownButton2.Text = "Buchungen";
//
// neueBuchungToolStripMenuItem
//
this.neueBuchungToolStripMenuItem.Name = "neueBuchungToolStripMenuItem";
this.neueBuchungToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
this.neueBuchungToolStripMenuItem.Text = "Neue Buchung";
this.neueBuchungToolStripMenuItem.Click += new System.EventHandler(this.NeueBuchungToolStripMenuItem_Click);
//
// Main
//
this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F);
@@ -371,7 +392,7 @@
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button Kat0btn;
private System.Windows.Forms.Button Guvbtn;
private System.Windows.Forms.Button Homebtn;
private System.Windows.Forms.Panel PH;
private System.Windows.Forms.DataGridView PHdataview;
@@ -394,6 +415,8 @@
private System.Windows.Forms.ToolStripMenuItem reloadToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem modifyToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem queryToolStripMenuItem;
private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton2;
private System.Windows.Forms.ToolStripMenuItem neueBuchungToolStripMenuItem;
}
}
+8 -2
View File
@@ -71,9 +71,9 @@ namespace Superbuchhaltung
{
if (Selection == 0)
{
if (!Directory.Exists(@"C:\Users\Public\TestFolder\"))
if (!Directory.Exists(@"C:\Users\Public\TestFolder"))
{
Directory.CreateDirectory(@"C:\Users\Public\TestFolder\");
Directory.CreateDirectory(@"C:\Users\Public\TestFolder");
}
PHdataview.Rows.Clear();
for (int i = 0; i < 10; i++)
@@ -141,5 +141,11 @@ namespace Superbuchhaltung
PHdataview.Rows.Clear();
PHdataview.Rows.Add("ERROR", "Modify not Implimented yet!");
}
private void NeueBuchungToolStripMenuItem_Click(object sender, EventArgs e)
{
PHdataview.Rows.Clear();
PHdataview.Rows.Add("ERROR", "Neue Buchung not Implimented yet!");
}
}
}
+24
View File
@@ -169,4 +169,28 @@
<metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="toolStripDropDownButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG
YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3PIlPEE9pgBCLZ5XvdMB8Ew8gXbl54nuf63dd9
0OGSnwCahxbPRNPAPMw9Xpg6ZmF46kZZ0xSKzJPIrhpDWsVnpBhGkKx3nAX8Pv7z1zg8OoY/cITdn4fw
bf/C0kYAN3Ma/w3gWfZL5kzTKBxjWyK2DftwI9tyMYCZKXbNHaD91bLYJrDXsYbrWfUKwJrPE9M2M1Oc
VzOOpHI7Jr376Hi9ogHqFIANO0/MmmmbmSmm9a8ze+I4MrNWAdjtoJgWcx+PSzg166yZZ8xM8XvXDix9
c4jIqFYAjoriBV9AhEPv1mH/sonogha0afbZMMZz+yreTGyhpusHwtNNCsA5U1zS4BLxzJIfg299qO32
Ir7UJtZfftyATqeT+8o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo
mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+
kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
</root>
@@ -19,7 +19,6 @@ namespace Superbuchhaltung.Forms.Prompts
private void Modify_Load(object sender, EventArgs e)
{
}
}
}
@@ -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>
@@ -46,7 +46,7 @@ namespace Superbuchhaltung.Forms.Prompts
if (result.Count != 0)
{
Main m = new Main();
//m.Search(result);
m.Search(result);
}
}
else