OSDN Git Service

AppliStation-GUI,ポップアップメニュー"{0}に関するWebページ"のr920に対する頭のいい改善策
authorttp <ttp@users.sourceforge.jp>
Tue, 3 Jun 2008 11:03:34 +0000 (11:03 +0000)
committerttp <ttp@users.sourceforge.jp>
Tue, 3 Jun 2008 11:03:34 +0000 (11:03 +0000)
git-svn-id: http://localhost/svn/AppliStation/trunk@921 34ed2c89-c49f-4a4b-abdb-c318350108cf

AppliStation/PackageListViewForm.Designer.cs
AppliStation/PackageListViewForm.cs

index 9640736..e1338c7 100644 (file)
                                                                        this.webGoogleSearchToolStripMenuItem});\r
                        this.webResourcesToolStripMenuItem.Name = "webResourcesToolStripMenuItem";\r
                        this.webResourcesToolStripMenuItem.Size = new System.Drawing.Size(231, 22);\r
-                       this.webResourcesToolStripMenuItem.Text = "関連するWebページ(&W)";\r
+                       this.webResourcesToolStripMenuItem.Tag = "\"{0}\"に関するWebページ(&W)";\r
                        // \r
                        // webOfficialToolStripMenuItem\r
                        // \r
index 2d95efb..017e58d 100644 (file)
@@ -537,6 +537,9 @@ namespace AppliStation
                                installToolStripMenuItem.Visible = ! isInstalledPackage;\r
                                uninstallToolStripMenuItem.Visible = isInstalledPackage;\r
                                \r
+                               webResourcesToolStripMenuItem.Text = string.Format(\r
+                                       webResourcesToolStripMenuItem.Tag.ToString(),\r
+                                       pkg.Name.Replace("&", "&&")); // pkg.Name\82É&\82ª\8aÜ\82Ü\82ê\82Ä\82¢\82é\82Æ\82«\82Í\83G\83\93\83R\81[\83h\r
                                webOfficialToolStripMenuItem.Enabled = ! (pkg.Url == null || string.IsNullOrEmpty(pkg.Url.Href));\r
                                // webGoogleSearchToolStripMenuItem always active.\r
                                \r