{"action":"created","comment":{"url":"https://api.github.com/repos/qianlifeng/Wox/pulls/comments/22697241","id":22697241,"diff_hunk":"@@ -69,5 +73,46 @@ private void btnEdit_Click(object sender, RoutedEventArgs e)\n \n \t\t\tlbxFolders.Items.Refresh();\n \t\t}\n+\n+        private void lbxFolders_Drop(object sender, DragEventArgs e)\n+        {\n+            string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);\n+\n+            if (files != null && files.Count() > 0)\n+            {\n+                foreach (string s in files) \n+                {\n+                    if (System.IO.Directory.Exists(s) == true)\n+                    {\n+                        var newFolder = new FolderLink()\n+                        {\n+                            Path = s\n+                        };\n+\n+                        if (UserSettingStorage.Instance.FolderLinks == null)\n+                        {\n+                            UserSettingStorage.Instance.FolderLinks = new List<FolderLink>();\n+                        }\n+\n+                        UserSettingStorage.Instance.FolderLinks.Add(newFolder);\n+                        UserSettingStorage.Instance.Save();","path":"Wox.Plugin.SystemPlugins/Folder/FolderPluginSettings.xaml.cs","position":41,"original_position":41,"commit_id":"fdb8b0caaad86218ce7063066809652b1c7ab89e","original_commit_id":"fdb8b0caaad86218ce7063066809652b1c7ab89e","user":{"login":"qianlifeng","id":1725475,"avatar_url":"https://avatars.githubusercontent.com/u/1725475?v=3","gravatar_id":"","url":"https://api.github.com/users/qianlifeng","html_url":"https://github.com/qianlifeng","followers_url":"https://api.github.com/users/qianlifeng/followers","following_url":"https://api.github.com/users/qianlifeng/following{/other_user}","gists_url":"https://api.github.com/users/qianlifeng/gists{/gist_id}","starred_url":"https://api.github.com/users/qianlifeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qianlifeng/subscriptions","organizations_url":"https://api.github.com/users/qianlifeng/orgs","repos_url":"https://api.github.com/users/qianlifeng/repos","events_url":"https://api.github.com/users/qianlifeng/events{/privacy}","received_events_url":"https://api.github.com/users/qianlifeng/received_events","type":"User","site_admin":false},"body":"this should move out of foreach loop","created_at":"2015-01-09T01:37:05Z","updated_at":"2015-01-09T01:37:05Z","html_url":"https://github.com/qianlifeng/Wox/pull/231#discussion_r22697241","pull_request_url":"https://api.github.com/repos/qianlifeng/Wox/pulls/231","_links":{"self":{"href":"https://api.github.com/repos/qianlifeng/Wox/pulls/comments/22697241"},"html":{"href":"https://github.com/qianlifeng/Wox/pull/231#discussion_r22697241"},"pull_request":{"href":"https://api.github.com/repos/qianlifeng/Wox/pulls/231"}}},"pull_request":{"url":"https://api.github.com/repos/qianlifeng/Wox/pulls/231","id":27072722,"html_url":"https://github.com/qianlifeng/Wox/pull/231","diff_url":"https://github.com/qianlifeng/Wox/pull/231.diff","patch_url":"https://github.com/qianlifeng/Wox/pull/231.patch","issue_url":"https://api.github.com/repos/qianlifeng/Wox/issues/231","number":231,"state":"open","locked":false,"title":"Add drag and drop functionality in ProgramSetting and FileSystemSettings","user":{"login":"allanpk716","id":1176000,"avatar_url":"https://avatars.githubusercontent.com/u/1176000?v=3","gravatar_id":"","url":"https://api.github.com/users/allanpk716","html_url":"https://github.com/allanpk716","followers_url":"https://api.github.com/users/allanpk716/followers","following_url":"https://api.github.com/users/allanpk716/following{/other_user}","gists_url":"https://api.github.com/users/allanpk716/gists{/gist_id}","starred_url":"https://api.github.com/users/allanpk716/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanpk716/subscriptions","organizations_url":"https://api.github.com/users/allanpk716/orgs","repos_url":"https://api.github.com/users/allanpk716/repos","events_url":"https://api.github.com/users/allanpk716/events{/privacy}","received_events_url":"https://api.github.com/users/allanpk716/received_events","type":"User","site_admin":false},"body":"Add drag and drop functionality in ProgramSetting and FileSystemSettings\r\nSigned-off-by: 716 <525223688@qq.com>","created_at":"2015-01-09T00:48:05Z","updated_at":"2015-01-09T01:37:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a481813f3449822cd7d71be20193dc9b28177e50","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/qianlifeng/Wox/pulls/231/commits","review_comments_url":"https://api.github.com/repos/qianlifeng/Wox/pulls/231/comments","review_comment_url":"https://api.github.com/repos/qianlifeng/Wox/pulls/comments/{number}","comments_url":"https://api.github.com/repos/qianlifeng/Wox/issues/231/comments","statuses_url":"https://api.github.com/repos/qianlifeng/Wox/statuses/fdb8b0caaad86218ce7063066809652b1c7ab89e","head":{"label":"allanpk716:master","ref":"master","sha":"fdb8b0caaad86218ce7063066809652b1c7ab89e","user":{"login":"allanpk716","id":1176000,"avatar_url":"https://avatars.githubusercontent.com/u/1176000?v=3","gravatar_id":"","url":"https://api.github.com/users/allanpk716","html_url":"https://github.com/allanpk716","followers_url":"https://api.github.com/users/allanpk716/followers","following_url":"https://api.github.com/users/allanpk716/following{/other_user}","gists_url":"https://api.github.com/users/allanpk716/gists{/gist_id}","starred_url":"https://api.github.com/users/allanpk716/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanpk716/subscriptions","organizations_url":"https://api.github.com/users/allanpk716/orgs","repos_url":"https://api.github.com/users/allanpk716/repos","events_url":"https://api.github.com/users/allanpk716/events{/privacy}","received_events_url":"https://api.github.com/users/allanpk716/received_events","type":"User","site_admin":false},"repo":{"id":28941320,"name":"Wox","full_name":"allanpk716/Wox","owner":{"login":"allanpk716","id":1176000,"avatar_url":"https://avatars.githubusercontent.com/u/1176000?v=3","gravatar_id":"","url":"https://api.github.com/users/allanpk716","html_url":"https://github.com/allanpk716","followers_url":"https://api.github.com/users/allanpk716/followers","following_url":"https://api.github.com/users/allanpk716/following{/other_user}","gists_url":"https://api.github.com/users/allanpk716/gists{/gist_id}","starred_url":"https://api.github.com/users/allanpk716/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanpk716/subscriptions","organizations_url":"https://api.github.com/users/allanpk716/orgs","repos_url":"https://api.github.com/users/allanpk716/repos","events_url":"https://api.github.com/users/allanpk716/events{/privacy}","received_events_url":"https://api.github.com/users/allanpk716/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/allanpk716/Wox","description":"A launcher for windows","fork":true,"url":"https://api.github.com/repos/allanpk716/Wox","forks_url":"https://api.github.com/repos/allanpk716/Wox/forks","keys_url":"https://api.github.com/repos/allanpk716/Wox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allanpk716/Wox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allanpk716/Wox/teams","hooks_url":"https://api.github.com/repos/allanpk716/Wox/hooks","issue_events_url":"https://api.github.com/repos/allanpk716/Wox/issues/events{/number}","events_url":"https://api.github.com/repos/allanpk716/Wox/events","assignees_url":"https://api.github.com/repos/allanpk716/Wox/assignees{/user}","branches_url":"https://api.github.com/repos/allanpk716/Wox/branches{/branch}","tags_url":"https://api.github.com/repos/allanpk716/Wox/tags","blobs_url":"https://api.github.com/repos/allanpk716/Wox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allanpk716/Wox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allanpk716/Wox/git/refs{/sha}","trees_url":"https://api.github.com/repos/allanpk716/Wox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allanpk716/Wox/statuses/{sha}","languages_url":"https://api.github.com/repos/allanpk716/Wox/languages","stargazers_url":"https://api.github.com/repos/allanpk716/Wox/stargazers","contributors_url":"https://api.github.com/repos/allanpk716/Wox/contributors","subscribers_url":"https://api.github.com/repos/allanpk716/Wox/subscribers","subscription_url":"https://api.github.com/repos/allanpk716/Wox/subscription","commits_url":"https://api.github.com/repos/allanpk716/Wox/commits{/sha}","git_commits_url":"https://api.github.com/repos/allanpk716/Wox/git/commits{/sha}","comments_url":"https://api.github.com/repos/allanpk716/Wox/comments{/number}","issue_comment_url":"https://api.github.com/repos/allanpk716/Wox/issues/comments/{number}","contents_url":"https://api.github.com/repos/allanpk716/Wox/contents/{+path}","compare_url":"https://api.github.com/repos/allanpk716/Wox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allanpk716/Wox/merges","archive_url":"https://api.github.com/repos/allanpk716/Wox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allanpk716/Wox/downloads","issues_url":"https://api.github.com/repos/allanpk716/Wox/issues{/number}","pulls_url":"https://api.github.com/repos/allanpk716/Wox/pulls{/number}","milestones_url":"https://api.github.com/repos/allanpk716/Wox/milestones{/number}","notifications_url":"https://api.github.com/repos/allanpk716/Wox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allanpk716/Wox/labels{/name}","releases_url":"https://api.github.com/repos/allanpk716/Wox/releases{/id}","created_at":"2015-01-08T00:42:17Z","updated_at":"2015-01-09T00:38:39Z","pushed_at":"2015-01-09T00:38:39Z","git_url":"git://github.com/allanpk716/Wox.git","ssh_url":"git@github.com:allanpk716/Wox.git","clone_url":"https://github.com/allanpk716/Wox.git","svn_url":"https://github.com/allanpk716/Wox","homepage":"http://www.getwox.com","size":27115,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"qianlifeng:master","ref":"master","sha":"58f2a34c358d0253e99545fd4d7856abed3a92e3","user":{"login":"qianlifeng","id":1725475,"avatar_url":"https://avatars.githubusercontent.com/u/1725475?v=3","gravatar_id":"","url":"https://api.github.com/users/qianlifeng","html_url":"https://github.com/qianlifeng","followers_url":"https://api.github.com/users/qianlifeng/followers","following_url":"https://api.github.com/users/qianlifeng/following{/other_user}","gists_url":"https://api.github.com/users/qianlifeng/gists{/gist_id}","starred_url":"https://api.github.com/users/qianlifeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qianlifeng/subscriptions","organizations_url":"https://api.github.com/users/qianlifeng/orgs","repos_url":"https://api.github.com/users/qianlifeng/repos","events_url":"https://api.github.com/users/qianlifeng/events{/privacy}","received_events_url":"https://api.github.com/users/qianlifeng/received_events","type":"User","site_admin":false},"repo":{"id":15315789,"name":"Wox","full_name":"qianlifeng/Wox","owner":{"login":"qianlifeng","id":1725475,"avatar_url":"https://avatars.githubusercontent.com/u/1725475?v=3","gravatar_id":"","url":"https://api.github.com/users/qianlifeng","html_url":"https://github.com/qianlifeng","followers_url":"https://api.github.com/users/qianlifeng/followers","following_url":"https://api.github.com/users/qianlifeng/following{/other_user}","gists_url":"https://api.github.com/users/qianlifeng/gists{/gist_id}","starred_url":"https://api.github.com/users/qianlifeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qianlifeng/subscriptions","organizations_url":"https://api.github.com/users/qianlifeng/orgs","repos_url":"https://api.github.com/users/qianlifeng/repos","events_url":"https://api.github.com/users/qianlifeng/events{/privacy}","received_events_url":"https://api.github.com/users/qianlifeng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qianlifeng/Wox","description":"A launcher for windows","fork":false,"url":"https://api.github.com/repos/qianlifeng/Wox","forks_url":"https://api.github.com/repos/qianlifeng/Wox/forks","keys_url":"https://api.github.com/repos/qianlifeng/Wox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qianlifeng/Wox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qianlifeng/Wox/teams","hooks_url":"https://api.github.com/repos/qianlifeng/Wox/hooks","issue_events_url":"https://api.github.com/repos/qianlifeng/Wox/issues/events{/number}","events_url":"https://api.github.com/repos/qianlifeng/Wox/events","assignees_url":"https://api.github.com/repos/qianlifeng/Wox/assignees{/user}","branches_url":"https://api.github.com/repos/qianlifeng/Wox/branches{/branch}","tags_url":"https://api.github.com/repos/qianlifeng/Wox/tags","blobs_url":"https://api.github.com/repos/qianlifeng/Wox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qianlifeng/Wox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qianlifeng/Wox/git/refs{/sha}","trees_url":"https://api.github.com/repos/qianlifeng/Wox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qianlifeng/Wox/statuses/{sha}","languages_url":"https://api.github.com/repos/qianlifeng/Wox/languages","stargazers_url":"https://api.github.com/repos/qianlifeng/Wox/stargazers","contributors_url":"https://api.github.com/repos/qianlifeng/Wox/contributors","subscribers_url":"https://api.github.com/repos/qianlifeng/Wox/subscribers","subscription_url":"https://api.github.com/repos/qianlifeng/Wox/subscription","commits_url":"https://api.github.com/repos/qianlifeng/Wox/commits{/sha}","git_commits_url":"https://api.github.com/repos/qianlifeng/Wox/git/commits{/sha}","comments_url":"https://api.github.com/repos/qianlifeng/Wox/comments{/number}","issue_comment_url":"https://api.github.com/repos/qianlifeng/Wox/issues/comments/{number}","contents_url":"https://api.github.com/repos/qianlifeng/Wox/contents/{+path}","compare_url":"https://api.github.com/repos/qianlifeng/Wox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qianlifeng/Wox/merges","archive_url":"https://api.github.com/repos/qianlifeng/Wox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qianlifeng/Wox/downloads","issues_url":"https://api.github.com/repos/qianlifeng/Wox/issues{/number}","pulls_url":"https://api.github.com/repos/qianlifeng/Wox/pulls{/number}","milestones_url":"https://api.github.com/repos/qianlifeng/Wox/milestones{/number}","notifications_url":"https://api.github.com/repos/qianlifeng/Wox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qianlifeng/Wox/labels{/name}","releases_url":"https://api.github.com/repos/qianlifeng/Wox/releases{/id}","created_at":"2013-12-19T15:49:32Z","updated_at":"2015-01-09T01:02:43Z","pushed_at":"2015-01-08T14:49:55Z","git_url":"git://github.com/qianlifeng/Wox.git","ssh_url":"git@github.com:qianlifeng/Wox.git","clone_url":"https://github.com/qianlifeng/Wox.git","svn_url":"https://github.com/qianlifeng/Wox","homepage":"http://www.getwox.com","size":27115,"stargazers_count":907,"watchers_count":907,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":125,"mirror_url":null,"open_issues_count":40,"forks":125,"open_issues":40,"watchers":907,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qianlifeng/Wox/pulls/231"},"html":{"href":"https://github.com/qianlifeng/Wox/pull/231"},"issue":{"href":"https://api.github.com/repos/qianlifeng/Wox/issues/231"},"comments":{"href":"https://api.github.com/repos/qianlifeng/Wox/issues/231/comments"},"review_comments":{"href":"https://api.github.com/repos/qianlifeng/Wox/pulls/231/comments"},"review_comment":{"href":"https://api.github.com/repos/qianlifeng/Wox/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/qianlifeng/Wox/pulls/231/commits"},"statuses":{"href":"https://api.github.com/repos/qianlifeng/Wox/statuses/fdb8b0caaad86218ce7063066809652b1c7ab89e"}}}}