From ad5c28024773a0f5b40ff7e1fad57c5780ba46a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kl=C3=A1ben=20Szabolcs=20Bence=20=28Tudi20=29?= <13798839+Tudi20@users.noreply.github.com> Date: Mon, 27 May 2019 21:03:51 +0200 Subject: [PATCH] Add missing ToString() occurances --- Universal THCRAP Launcher/MainForm.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Universal THCRAP Launcher/MainForm.cs b/Universal THCRAP Launcher/MainForm.cs index 8b89411..9185de9 100644 --- a/Universal THCRAP Launcher/MainForm.cs +++ b/Universal THCRAP Launcher/MainForm.cs @@ -571,7 +571,7 @@ private void StartThcrap() { if (patchListBox.SelectedIndex == -1 || gameListBox.SelectedIndex == -1) { - MessageBox.Show(I18N.LangResource.errors.noneSelected, I18N.LangResource.errors.error, MessageBoxButtons.OK, MessageBoxIcon.Error); + MessageBox.Show(I18N.LangResource.errors.noneSelected.ToString(), I18N.LangResource.errors.error.ToString(), MessageBoxButtons.OK, MessageBoxIcon.Error); return; } @@ -862,12 +862,12 @@ private void gitHubPageTS_Click(object sender, EventArgs e) => private void openConfigureTS_Click(object sender, EventArgs e) { - MessageBox.Show(I18N.LangResource.popup.hideLauncher.text, - I18N.LangResource.popup.hideLauncher.caption, MessageBoxButtons.OK, MessageBoxIcon.Information); + MessageBox.Show(I18N.LangResource.popup.hideLauncher.text.ToString(), + I18N.LangResource.popup.hideLauncher.caption.ToString(), MessageBoxButtons.OK, MessageBoxIcon.Information); var p = Process.Start("thcrap_configure.exe"); if (p == null) { - MessageBox.Show(I18N.LangResource.errors.oops, I18N.LangResource.errors.error); + MessageBox.Show(I18N.LangResource.errors.oops.ToString(), I18N.LangResource.errors.error.ToString()); return; } @@ -885,9 +885,9 @@ private void createShortcutTS_Click(object sender, EventArgs e) { var shDesktop = (object)"Desktop"; var shell = new WshShell(); - var shortcutAddress = (string)shell.SpecialFolders.Item(ref shDesktop) + I18N.LangResource.shCreate.file + ".lnk"; + var shortcutAddress = (string)shell.SpecialFolders.Item(ref shDesktop) + I18N.LangResource.shCreate.file.ToString() + ".lnk"; var shortcut = (IWshShortcut)shell.CreateShortcut(shortcutAddress); - shortcut.Description = I18N.LangResource.shCreate.desc; + shortcut.Description = I18N.LangResource.shCreate.desc.ToString(); shortcut.TargetPath = Assembly.GetEntryAssembly().Location; shortcut.WorkingDirectory = Directory.GetCurrentDirectory(); shortcut.Save();