Added query

This commit is contained in:
Stefan
2019-12-04 14:04:02 +01:00
parent ac04ee1369
commit 714ed16af8
25 changed files with 707 additions and 46 deletions
Binary file not shown.
Binary file not shown.
+155 -33
View File
@@ -28,7 +28,6 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main));
this.panel1 = new System.Windows.Forms.Panel();
this.Kat0btn = new System.Windows.Forms.Button();
@@ -37,20 +36,33 @@
this.button1 = new System.Windows.Forms.Button();
this.PH = new System.Windows.Forms.Panel();
this.PHdataview = new System.Windows.Forms.DataGridView();
this.BNummer = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BWert = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Pdataview = new System.Windows.Forms.DataGridView();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton();
this.addentrieToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.reloadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.modifyToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.queryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.Databtn = new System.Windows.Forms.ToolStripDropDownButton();
this.modifyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.Addentriemenuueitem = new System.Windows.Forms.ToolStripMenuItem();
this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.BNummer = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BWert = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.P = new System.Windows.Forms.Panel();
this.Pdatagridview = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.PH.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.PHdataview)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Pdataview)).BeginInit();
this.toolStrip1.SuspendLayout();
this.P.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Pdatagridview)).BeginInit();
this.SuspendLayout();
//
// panel1
@@ -144,7 +156,7 @@
this.BNummer,
this.BName,
this.BWert});
this.PHdataview.Location = new System.Drawing.Point(0, 28);
this.PHdataview.Location = new System.Drawing.Point(3, 25);
this.PHdataview.Name = "PHdataview";
this.PHdataview.RowHeadersWidth = 10;
this.PHdataview.RowTemplate.Height = 24;
@@ -152,17 +164,91 @@
this.PHdataview.TabIndex = 0;
this.PHdataview.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView1_CellContentClick);
//
// BNummer
//
this.BNummer.HeaderText = "Kontennummer";
this.BNummer.MinimumWidth = 6;
this.BNummer.Name = "BNummer";
this.BNummer.ReadOnly = true;
this.BNummer.Width = 125;
//
// BName
//
this.BName.HeaderText = "Kontenname";
this.BName.MinimumWidth = 6;
this.BName.Name = "BName";
this.BName.ReadOnly = true;
this.BName.Width = 512;
//
// BWert
//
this.BWert.HeaderText = "Kontensumme";
this.BWert.MinimumWidth = 6;
this.BWert.Name = "BWert";
this.BWert.ReadOnly = true;
this.BWert.Width = 125;
//
// Pdataview
//
this.Pdataview.ColumnHeadersHeight = 29;
this.Pdataview.Location = new System.Drawing.Point(0, 0);
this.Pdataview.Name = "Pdataview";
this.Pdataview.RowHeadersWidth = 51;
this.Pdataview.Size = new System.Drawing.Size(240, 150);
this.Pdataview.TabIndex = 0;
//
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.Databtn});
this.toolStripDropDownButton1});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this.toolStrip1.Size = new System.Drawing.Size(1120, 27);
this.toolStrip1.TabIndex = 3;
this.toolStrip1.Text = "toolStrip1";
this.toolStrip1.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.ToolStrip1_ItemClicked);
this.toolStrip1.TabIndex = 0;
//
// toolStripDropDownButton1
//
this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.addentrieToolStripMenuItem,
this.reloadToolStripMenuItem,
this.modifyToolStripMenuItem1,
this.queryToolStripMenuItem});
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";
//
// addentrieToolStripMenuItem
//
this.addentrieToolStripMenuItem.Name = "addentrieToolStripMenuItem";
this.addentrieToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
this.addentrieToolStripMenuItem.Text = "Addentrie";
this.addentrieToolStripMenuItem.Click += new System.EventHandler(this.AddentrieToolStripMenuItem_Click);
//
// reloadToolStripMenuItem
//
this.reloadToolStripMenuItem.Name = "reloadToolStripMenuItem";
this.reloadToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
this.reloadToolStripMenuItem.Text = "Reload";
this.reloadToolStripMenuItem.Click += new System.EventHandler(this.ReloadToolStripMenuItem_Click);
//
// modifyToolStripMenuItem1
//
this.modifyToolStripMenuItem1.Name = "modifyToolStripMenuItem1";
this.modifyToolStripMenuItem1.Size = new System.Drawing.Size(224, 26);
this.modifyToolStripMenuItem1.Text = "Modify";
this.modifyToolStripMenuItem1.Click += new System.EventHandler(this.ModifyToolStripMenuItem1_Click);
//
// queryToolStripMenuItem
//
this.queryToolStripMenuItem.Name = "queryToolStripMenuItem";
this.queryToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
this.queryToolStripMenuItem.Text = "Query";
this.queryToolStripMenuItem.Click += new System.EventHandler(this.QueryToolStripMenuItem_Click);
//
// Databtn
//
@@ -198,35 +284,58 @@
this.refreshToolStripMenuItem.Text = "Refresh";
this.refreshToolStripMenuItem.Click += new System.EventHandler(this.RefreshToolStripMenuItem_Click);
//
// timer1
// P
//
this.timer1.Enabled = true;
this.timer1.Interval = 10000;
this.timer1.Tick += new System.EventHandler(this.Timer1_Tick);
this.P.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.P.Controls.Add(this.Pdatagridview);
this.P.Location = new System.Drawing.Point(200, 0);
this.P.Name = "P";
this.P.Size = new System.Drawing.Size(919, 556);
this.P.TabIndex = 3;
//
// BNummer
// Pdatagridview
//
this.BNummer.HeaderText = "Kontennummer";
this.BNummer.MinimumWidth = 6;
this.BNummer.Name = "BNummer";
this.BNummer.ReadOnly = true;
this.BNummer.Width = 125;
this.Pdatagridview.AllowUserToAddRows = false;
this.Pdatagridview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.Pdatagridview.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.Pdatagridview.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2,
this.dataGridViewTextBoxColumn3});
this.Pdatagridview.Location = new System.Drawing.Point(3, 25);
this.Pdatagridview.Name = "Pdatagridview";
this.Pdatagridview.RowHeadersWidth = 10;
this.Pdatagridview.RowTemplate.Height = 24;
this.Pdatagridview.Size = new System.Drawing.Size(916, 531);
this.Pdatagridview.TabIndex = 0;
//
// BName
// dataGridViewTextBoxColumn1
//
this.BName.HeaderText = "Kontenname";
this.BName.MinimumWidth = 6;
this.BName.Name = "BName";
this.BName.ReadOnly = true;
this.BName.Width = 512;
this.dataGridViewTextBoxColumn1.HeaderText = "Kontennummer";
this.dataGridViewTextBoxColumn1.MinimumWidth = 6;
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
this.dataGridViewTextBoxColumn1.Width = 125;
//
// BWert
// dataGridViewTextBoxColumn2
//
this.BWert.HeaderText = "Kontensumme";
this.BWert.MinimumWidth = 6;
this.BWert.Name = "BWert";
this.BWert.ReadOnly = true;
this.BWert.Width = 125;
this.dataGridViewTextBoxColumn2.HeaderText = "Kontenname";
this.dataGridViewTextBoxColumn2.MinimumWidth = 6;
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
this.dataGridViewTextBoxColumn2.Width = 512;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.HeaderText = "Kontensumme";
this.dataGridViewTextBoxColumn3.MinimumWidth = 6;
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.ReadOnly = true;
this.dataGridViewTextBoxColumn3.Width = 125;
//
// Main
//
@@ -247,8 +356,11 @@
this.panel2.ResumeLayout(false);
this.PH.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.PHdataview)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Pdataview)).EndInit();
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.P.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.Pdatagridview)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -263,15 +375,25 @@
private System.Windows.Forms.Button Homebtn;
private System.Windows.Forms.Panel PH;
private System.Windows.Forms.DataGridView PHdataview;
private System.Windows.Forms.DataGridView Pdataview;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripDropDownButton Databtn;
private System.Windows.Forms.ToolStripMenuItem Addentriemenuueitem;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.ToolStripMenuItem refreshToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem modifyToolStripMenuItem;
private System.Windows.Forms.DataGridViewTextBoxColumn BNummer;
private System.Windows.Forms.DataGridViewTextBoxColumn BName;
private System.Windows.Forms.DataGridViewTextBoxColumn BWert;
private System.Windows.Forms.Panel P;
private System.Windows.Forms.DataGridView Pdatagridview;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton1;
private System.Windows.Forms.ToolStripMenuItem addentrieToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem reloadToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem modifyToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem queryToolStripMenuItem;
}
}
+52 -7
View File
@@ -21,13 +21,14 @@ namespace Superbuchhaltung
private void Form1_Load(object sender, EventArgs e)
{
//PH.Visible = false;
P.Visible = true;
Reloadview();
}
private void Changeview()
{
PH.Visible = false;
P.Visible = false;
}
private void Homebtn_Click(object sender, EventArgs e)
@@ -35,6 +36,7 @@ namespace Superbuchhaltung
Changeview();
PH.Visible = true;
Selection = 0;
Reloadview();
}
private void DataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
@@ -45,17 +47,16 @@ namespace Superbuchhaltung
private void Kat0btn_Click(object sender, EventArgs e)
{
Changeview();
P.Visible = true;
Pdatagridview.Visible = true;
Selection = 1;
Reloadview();
}
private void ToolStripMenuItem1_Click(object sender, EventArgs e)
{
Addentrie f = new Addentrie();
f.Show();
}
private void Timer1_Tick(object sender, EventArgs e)
{
}
private void ToolStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
@@ -76,16 +77,60 @@ namespace Superbuchhaltung
string[] file = File.ReadAllLines(@"C:\Users\Public\TestFolder\" + i + ".txt");
foreach (string f in file)
{
if (f.Length < 4) continue;
PHdataview.Rows.Add(f.Split(';'));
}
}
}
else
{
string[] file = File.ReadAllLines(@"C:\Users\Public\TestFolder\" + Selection + ".txt");
foreach (string f in file)
{
PHdataview.Rows.Add(f.Split(';'));
}
}
}
private void ModifyToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void AddentrieToolStripMenuItem_Click(object sender, EventArgs e)
{
Addentrie f = new Addentrie();
f.Show();
}
private void ReloadToolStripMenuItem_Click(object sender, EventArgs e)
{
Reloadview();
}
private void QueryToolStripMenuItem_Click(object sender, EventArgs e)
{
Forms.Prompts.Query q = new Forms.Prompts.Query();
q.Show();
}
public void Search(List<string> result)
{
Main m = new Main();
Changeview();
PH.Visible = true;
m.PHdataview.Rows.Clear();
Console.WriteLine(result.Count);
for (int i = 0; i < result.Count; i++)
{
Console.WriteLine(result.ElementAt(i));
PHdataview.Rows.Add(result.ElementAt(i).Split(';'));
}
}
private void ModifyToolStripMenuItem1_Click(object sender, EventArgs e)
{
Forms.Prompts.Modify M = new Forms.Prompts.Modify();
M.Show();
}
}
}
+23 -2
View File
@@ -130,6 +130,21 @@
<value>16, 13</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="toolStripDropDownButton1.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>
<data name="Databtn.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
@@ -145,7 +160,13 @@
TgDQASA1MVpwzwAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>140, 13</value>
<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>
</root>
+1
View File
@@ -85,6 +85,7 @@
this.Kontolabel2.Size = new System.Drawing.Size(100, 23);
this.Kontolabel2.TabIndex = 5;
this.Kontolabel2.Text = "Kontoname";
this.Kontolabel2.Click += new System.EventHandler(this.Kontolabel2_Click);
//
// Addentrie
//
+7 -2
View File
@@ -20,12 +20,12 @@ namespace Superbuchhaltung
private void Bestätigungsbutton_Click(object sender, EventArgs e)
{
string[] write = { Kontonummerbox.Text + ";" +Kontonamebox.Text};
string[] write = { Kontonummerbox.Text + ";" +Kontonamebox.Text + '\n'};
if (!Directory.Exists(@"C:\Users\Public\TestFolder\")) {
Directory.CreateDirectory(@"C:\Users\Public\TestFolder");
}
string fi = File.ReadAllText(@"C:\Users\Public\TestFolder\" + Kontonummerbox.Text.Substring(0, 1) + @".txt");
if (fi.IndexOf(Kontonummerbox.Text) != 0) {
if (fi.Contains(Kontonummerbox.Text)) {
if (MessageBox.Show("Der Kontonummer Existiert bereits!\nWollen sie diese überschreiben?", "Konto existiert bereits",MessageBoxButtons.YesNo, MessageBoxIcon.Error) == DialogResult.No) goto goback;
int index = fi.IndexOf(Kontonummerbox.Text);
@@ -61,5 +61,10 @@ namespace Superbuchhaltung
{
}
private void Kontolabel2_Click(object sender, EventArgs e)
{
}
}
}
+9 -1
View File
@@ -28,10 +28,18 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.SuspendLayout();
//
// Modify
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Name = "Modify";
this.Text = "Modify";
this.Load += new System.EventHandler(this.Modify_Load);
this.ResumeLayout(false);
}
#endregion
+5
View File
@@ -16,5 +16,10 @@ namespace Superbuchhaltung.Forms.Prompts
{
InitializeComponent();
}
private void Modify_Load(object sender, EventArgs e)
{
}
}
}
+120
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>
+121
View File
@@ -0,0 +1,121 @@
namespace Superbuchhaltung.Forms.Prompts
{
partial class Query
{
/// <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.Suchebtn = new System.Windows.Forms.Button();
this.Suchen = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.KUHL = new System.Windows.Forms.DataGridView();
this.Kontoname = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.KontoNummer = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.KUHL)).BeginInit();
this.SuspendLayout();
//
// Suchebtn
//
this.Suchebtn.Location = new System.Drawing.Point(132, 30);
this.Suchebtn.Name = "Suchebtn";
this.Suchebtn.Size = new System.Drawing.Size(75, 23);
this.Suchebtn.TabIndex = 0;
this.Suchebtn.Text = "button1";
this.Suchebtn.UseVisualStyleBackColor = true;
this.Suchebtn.Click += new System.EventHandler(this.Suchebtn_Click);
//
// Suchen
//
this.Suchen.Location = new System.Drawing.Point(11, 31);
this.Suchen.Name = "Suchen";
this.Suchen.Size = new System.Drawing.Size(100, 22);
this.Suchen.TabIndex = 1;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(8, 11);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(56, 17);
this.label1.TabIndex = 2;
this.label1.Text = "Suchen";
this.label1.Click += new System.EventHandler(this.Label1_Click);
//
// KUHL
//
this.KUHL.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.KUHL.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Kontoname,
this.KontoNummer});
this.KUHL.Location = new System.Drawing.Point(12, 59);
this.KUHL.Name = "KUHL";
this.KUHL.RowHeadersWidth = 51;
this.KUHL.RowTemplate.Height = 24;
this.KUHL.Size = new System.Drawing.Size(1220, 456);
this.KUHL.TabIndex = 3;
//
// Kontoname
//
this.Kontoname.HeaderText = "Kname";
this.Kontoname.MinimumWidth = 6;
this.Kontoname.Name = "Kontoname";
this.Kontoname.Width = 125;
//
// KontoNummer
//
this.KontoNummer.HeaderText = "Kontonummer";
this.KontoNummer.MinimumWidth = 6;
this.KontoNummer.Name = "KontoNummer";
this.KontoNummer.Width = 125;
//
// Query
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1233, 516);
this.Controls.Add(this.KUHL);
this.Controls.Add(this.label1);
this.Controls.Add(this.Suchen);
this.Controls.Add(this.Suchebtn);
this.Name = "Query";
this.Text = "Query";
this.Load += new System.EventHandler(this.Query_Load);
((System.ComponentModel.ISupportInitialize)(this.KUHL)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button Suchebtn;
private System.Windows.Forms.TextBox Suchen;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.DataGridView KUHL;
private System.Windows.Forms.DataGridViewTextBoxColumn Kontoname;
private System.Windows.Forms.DataGridViewTextBoxColumn KontoNummer;
}
}
+63
View File
@@ -0,0 +1,63 @@
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;
using System.IO;
namespace Superbuchhaltung.Forms.Prompts
{
public partial class Query : Form
{
public List<string> result = new List<string>();
public Query()
{
InitializeComponent();
}
private void Label1_Click(object sender, EventArgs e)
{
}
private void Suchebtn_Click(object sender, EventArgs e)
{
result.Clear();
KUHL.Rows.Clear();
if (Suchen.Text.Length != 0)
{
for (int i = 0; i < 10; i++)
{
string[] file = File.ReadAllLines(@"C:\Users\Public\TestFolder\" + i + ".txt");
foreach (string s in file)
{
if (s.Contains(Suchen.Text))
{
result.Add(s);
KUHL.Rows.Add(s.Split(';'));
}
}
}
Console.WriteLine(result.Count());
if (result.Count != 0)
{
Main m = new Main();
//m.Search(result);
}
}
else
{
return;
}
}
private void Query_Load(object sender, EventArgs e)
{
}
}
}
+126
View File
@@ -0,0 +1,126 @@
<?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>
<metadata name="Kontoname.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="KontoNummer.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>
+12
View File
@@ -64,6 +64,12 @@
<Compile Include="Forms\Prompts\Modify.Designer.cs">
<DependentUpon>Modify.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Prompts\Query.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Prompts\Query.Designer.cs">
<DependentUpon>Query.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Forms\Form1.resx">
@@ -72,6 +78,12 @@
<EmbeddedResource Include="Forms\Prompts\Addentrie.resx">
<DependentUpon>Addentrie.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Prompts\Modify.resx">
<DependentUpon>Modify.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Prompts\Query.resx">
<DependentUpon>Query.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
cfd3e8f2fcc198ad011582ee7adf4d72bf319ead
5ae62a74ce4efe60857c52046e40766bd46b5d81
@@ -20,3 +20,15 @@ C:\Users\stefa\Documents\Gitgh\Superbuchhaltung\Superbuchhaltung\obj\Debug\Super
C:\Users\stefa\Documents\Gitgh\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.csproj.CoreCompileInputs.cache
C:\Users\stefa\Documents\Gitgh\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.exe
C:\Users\stefa\Documents\Gitgh\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.pdb
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\bin\Debug\Superbuchhaltung.exe.config
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\bin\Debug\Superbuchhaltung.exe
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\bin\Debug\Superbuchhaltung.pdb
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.csprojAssemblyReference.cache
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.Main.resources
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.Addentrie.resources
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.Properties.Resources.resources
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.csproj.GenerateResource.cache
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.csproj.CoreCompileInputs.cache
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.exe
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.pdb
C:\Users\Stefan Kössner\Documents\GitHub\Superbuchhaltung\Superbuchhaltung\obj\Debug\Superbuchhaltung.Forms.Prompts.Query.resources
Binary file not shown.
Binary file not shown.