mirror of
https://github.com/Stefan-5422/Superbuchaltung.git
synced 2026-09-04 00:46:04 +02:00
Fixed crash if empty fields
Addentrie
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -20,6 +20,7 @@ namespace Superbuchhaltung
|
|||||||
|
|
||||||
private void Bestätigungsbutton_Click(object sender, EventArgs e)
|
private void Bestätigungsbutton_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
if (Kontonummerbox.Text.Length == 0 || Kontonamebox.Text.Length == 0) goto goback;
|
||||||
string[] write = { Kontonummerbox.Text + ";" +Kontonamebox.Text + '\n'};
|
string[] write = { Kontonummerbox.Text + ";" +Kontonamebox.Text + '\n'};
|
||||||
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");
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user