From ad6abad39abf9821a4ce67225718bca3c779d44a Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 29 Nov 2021 20:29:53 +0100 Subject: [PATCH] Minor style fixes --- IceBuilder.Shared/IceHomeEditor.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/IceBuilder.Shared/IceHomeEditor.cs b/IceBuilder.Shared/IceHomeEditor.cs index b170a01..0366fda 100644 --- a/IceBuilder.Shared/IceHomeEditor.cs +++ b/IceBuilder.Shared/IceHomeEditor.cs @@ -15,10 +15,7 @@ public partial class IceHomeEditor : UserControl public string IceHome { - get - { - return txtIceHome.Text; - } + get => txtIceHome.Text; set { txtIceHome.Text = value; @@ -37,8 +34,7 @@ public bool SetIceHome(string path) } else { - lblInfo.Text = - string.Format("Invalid Ice home directory:\r\n\"{0}\"\r\n", path); + lblInfo.Text = $"Invalid Ice home directory:\r\n\"{path}\"\r\n"; return false; } } @@ -53,7 +49,6 @@ private void BtnIceHome_Click(object sender, EventArgs e) Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) : txtIceHome.Text); lblInfo.Text = ""; - SetIceHome(selectedPath); }