OSDN Git Service

AppliStation-GUI,インストール除外リストの設定を設定ダイアログに追加
[applistation/AppliStation.git] / AppliStation / AppliStation.Util / ToolStripPetitLauncherMenuItem.cs
index 39723ae..f8c5097 100644 (file)
@@ -50,10 +50,6 @@ namespace AppliStation.Util
                                thread = null;\r
                        }\r
                        \r
-                       try {\r
-                               DropDownItems.Clear();\r
-                       } catch (NullReferenceException) {\r
-                       }\r
                        if (Directory.Exists(baseFolderPath)) {\r
                                thread = new Thread(new ThreadStart(buildItems));\r
                                thread.Start();\r
@@ -112,6 +108,8 @@ Debug.Assert(! itemtext.Contains(".."), string.Format("{2} -- base:{0}, dirname:
                        \r
                private void buildItems()\r
                {\r
+                       DropDownItems.Clear();\r
+                       \r
                        try {\r
                                string folderPath = Path.GetFullPath(baseFolderPath);\r
                                ToolStripSeparator sep = new ToolStripSeparator();\r
@@ -146,7 +144,7 @@ Debug.Assert(! itemtext.Contains(".."), string.Format("{2} -- base:{0}, dirname:
                /// </summary>\r
                /// <param name="folderPath"></param>\r
                /// <returns></returns>\r
-               public static ToolStripMenuItem CreateMenuItemForFolder(string folderPath)\r
+               private static ToolStripMenuItem CreateMenuItemForFolder(string folderPath)\r
                {\r
                        ToolStripMenuItem item = CreateMenuItemForFile(folderPath, "フォルダーを開く(&O)");\r
                        item.Image = GUIUtils.ShellIconForFolder.ToBitmap();\r
@@ -159,7 +157,7 @@ Debug.Assert(! itemtext.Contains(".."), string.Format("{2} -- base:{0}, dirname:
                /// </summary>\r
                /// <param name="filePath">ファイルパス</param>\r
                /// <returns>生成されたメニューアイテム</returns>\r
-               public static ToolStripMenuItem CreateMenuItemForFile(string filePath, string text)\r
+               private static ToolStripMenuItem CreateMenuItemForFile(string filePath, string text)\r
                {\r
                        ToolStripMenuItem item = new ToolStripMenuItem();\r
                        \r
@@ -214,7 +212,7 @@ Debug.Assert(! itemtext.Contains(".."), string.Format("{2} -- base:{0}, dirname:
                /// </summary>\r
                /// <param name="folderPath">カレントフォルダー及びパスに追加されるフォルダー</param>\r
                /// <returns>生成されたメニューアイテム</returns>\r
-               public static ToolStripMenuItem CreateMenuItemForCmdAt(string folderPath)\r
+               private static ToolStripMenuItem CreateMenuItemForCmdAt(string folderPath)\r
                {\r
                        string cmdPath = Environment.GetEnvironmentVariable("comspec");\r
                        if (string.IsNullOrEmpty(cmdPath) || (!File.Exists(cmdPath)))\r