Skip to content

Commit

Permalink
Add missing ToString() occurances
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyremigia committed May 27, 2019
1 parent a560567 commit ad5c280
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Universal THCRAP Launcher/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand All @@ -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();
Expand Down

0 comments on commit ad5c280

Please sign in to comment.