private void setCar() { if (txtPath.Text.Length == 0) { btnOK.Enabled = false; return; } else { btnOK.Enabled = true; } flump = FlumpFile.Load(Path.Combine(txtPath.Text, "car.flump")); if (flump.Settings.ContainsKey("pretty.name")) { txtPrettyCarName.Text = flump.Settings["pretty.name"]; } car = Path.GetFileName(Path.GetDirectoryName(txtPath.Text)); txtCarName.Text = car; }