From: ttp Date: Sun, 29 Mar 2009 06:18:59 +0000 (+0900) Subject: AppliStation-GUI,メインウィンドウの詳細表示領域にてフォントサイズが不適 X-Git-Tag: v1.3.0~26 X-Git-Url: http://git.sourceforge.jp/view?p=applistation%2FAppliStation.git;a=commitdiff_plain;h=169af81c4609ffc4c96ed09c9f6278a06bfea885 AppliStation-GUI,メインウィンドウの詳細表示領域にてフォントサイズが不適 切なバグを修正。 --- diff --git a/AppliStation/PackageListViewForm.cs b/AppliStation/PackageListViewForm.cs index 7c1d066..7aa18f4 100644 --- a/AppliStation/PackageListViewForm.cs +++ b/AppliStation/PackageListViewForm.cs @@ -94,9 +94,10 @@ namespace AppliStation uninstallToolStripButton.Visible = uninstallBtnEnabled; installToolStripButton.Visible = installBtnEnabled; + // detailBoxのメッセージ設定 + detailBox.Clear(); switch (selectedPkgs.Length) { case 0: - detailBox.SelectionFont = detailBox.Font; int count = packageListView.Items.Count; detailBox.Text = (count > 0) ? string.Format("{0}個のソフトがあります。", count) : "該当するソフトがありません。"; @@ -105,7 +106,6 @@ namespace AppliStation ShowInfoToDetailBoxFor(selectedPkgs[0]); break; default: // case 2 and over: - detailBox.SelectionFont = detailBox.Font; detailBox.Text = (installBtnEnabled)? string.Format("{0}個のソフトが選択されています。", installPkgCount) : (uninstallBtnEnabled)? string.Format("{0}個のインストール済みのソフトが選択されています。", uninstallPkgCount) : string.Format("{0}個のソフトが選択されています。\r\n(うち{1}個はインストール済み、{2}個はインストール可能)", installPkgCount+uninstallPkgCount, uninstallPkgCount, installPkgCount);