OSDN Git Service

二重起動エラーのメッセージに書式指定項目 {0} がそのまま表示されている問題を修正
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 20 Jan 2013 05:49:13 +0000 (14:49 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sun, 20 Jan 2013 10:31:38 +0000 (19:31 +0900)
OpenTween/ApplicationEvents.cs

index a17cbbe..4e10e56 100644 (file)
@@ -87,13 +87,15 @@ namespace OpenTween
                     if (!rslt)
                     {
                         // 警告を表示(見つからない、またはその他の原因で失敗)
-                        MessageBox.Show(MyCommon.ReplaceAppName(Properties.Resources.StartupText1), MyCommon.ReplaceAppName(Properties.Resources.StartupText2), MessageBoxButtons.OK, MessageBoxIcon.Information);
+                        var text = string.Format(MyCommon.ReplaceAppName(Properties.Resources.StartupText1), MyCommon.GetAssemblyName());
+                        MessageBox.Show(text, MyCommon.ReplaceAppName(Properties.Resources.StartupText2), MessageBoxButtons.OK, MessageBoxIcon.Information);
                     }
                 }
                 else
                 {
                     // 警告を表示(プロセス見つからない場合)
-                    MessageBox.Show(MyCommon.ReplaceAppName(Properties.Resources.StartupText1), MyCommon.ReplaceAppName(Properties.Resources.StartupText2), MessageBoxButtons.OK, MessageBoxIcon.Information);
+                    var text = string.Format(MyCommon.ReplaceAppName(Properties.Resources.StartupText1), MyCommon.GetAssemblyName());
+                    MessageBox.Show(text, MyCommon.ReplaceAppName(Properties.Resources.StartupText2), MessageBoxButtons.OK, MessageBoxIcon.Information);
                 }
             }
         }