Query now Ignores Capitalization

This commit is contained in:
Stefan
2019-12-10 11:21:35 +01:00
parent cdace4b554
commit 5fce70c8e6
13 changed files with 9 additions and 7 deletions
Binary file not shown.
+8
View File
@@ -71,9 +71,17 @@ namespace Superbuchhaltung
{
if (Selection == 0)
{
if (!Directory.Exists(@"C:\Users\Public\TestFolder\"))
{
Directory.CreateDirectory(@"C:\Users\Public\TestFolder\");
}
PHdataview.Rows.Clear();
for (int i = 0; i < 10; i++)
{
if(!File.Exists(@"C:\Users\Public\TestFolder\" + i + ".txt"))
{
File.Create(@"C:\Users\Public\TestFolder\" + i + ".txt");
}
string[] file = File.ReadAllLines(@"C:\Users\Public\TestFolder\" + i + ".txt");
foreach (string f in file)
{
+1 -1
View File
@@ -35,7 +35,7 @@ namespace Superbuchhaltung.Forms.Prompts
string[] file = File.ReadAllLines(@"C:\Users\Public\TestFolder\" + i + ".txt");
foreach (string s in file)
{
if (s.Contains(Suchen.Text))
if (s.ToLower().Contains(Suchen.Text.ToLower()))
{
result.Add(s);
KUHL.Rows.Add(s.Split(';'));
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.