From b7ef3c860375baea7b5db95940519ce0746b6ecc Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Mon, 1 Oct 2018 22:20:36 +0200 Subject: added Command Response Handling --- ZooBOTanica/CritCreate.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'ZooBOTanica/CritCreate.cs') diff --git a/ZooBOTanica/CritCreate.cs b/ZooBOTanica/CritCreate.cs index 08f527d..3d0a6c2 100644 --- a/ZooBOTanica/CritCreate.cs +++ b/ZooBOTanica/CritCreate.cs @@ -55,11 +55,13 @@ namespace ZooBOTanica public void LoadButton_Click(object sender, EventArgs e) { - var dig = new OpenFileDialog(); - dig.CheckFileExists = true; - dig.Multiselect = false; - dig.Title = "Gespeicherten Gegner laden"; - dig.Filter = "*Json Dateien (*.json)|*.json"; + var dig = new OpenFileDialog + { + CheckFileExists = true, + Multiselect = false, + Title = "Gespeicherten Gegner laden", + Filter = "*Json Dateien (*.json)|*.json" + }; if (dig.ShowDialog() == DialogResult.OK) { -- cgit v1.2.3-70-g09d2