{"action":"created","comment":{"url":"https://api.github.com/repos/QuantConnect/Lean/pulls/comments/185684049","pull_request_review_id":117122050,"id":185684049,"diff_hunk":"@@ -0,0 +1,121 @@\n+﻿/*\n+ * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.\n+ * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+*/\n+using Microsoft.VisualStudio.PlatformUI;\n+using Microsoft.VisualStudio.Shell;\n+using System;\n+using System.Linq;\n+using System.Windows;\n+using System.Windows.Input;\n+using System.Windows.Media;\n+\n+namespace QuantConnect.VisualStudioPlugin\n+{\n+    /// <summary>\n+    /// Interaction logic for NewProjectDialog.xaml\n+    /// </summary>\n+    internal partial class NewProjectDialog : DialogWindow\n+    {\n+        /// <summary>\n+        /// True if user entered valid data\n+        /// </summary>\n+        public bool CreateNewProject { get; private set; }\n+\n+        /// <summary>\n+        /// User provided Project name\n+        /// </summary>\n+        public string NewProjectName { get; private set; }\n+\n+        /// <summary>\n+        /// User provided project programming laguange\n+        /// </summary>\n+        public Language NewProjectLanguage { get; private set; }\n+\n+        /// <summary>\n+        /// Supported programming languages. This is to filter enum Language, which has unsupported languages.\n+        /// </summary>\n+        private static string[] _supportedLanguages = { \"FSharp\", \"CSharp\", \"Python\" };","path":"VisualStudioPlugin/NewProjectDialog.xaml.cs","position":48,"original_position":48,"commit_id":"5034c28c2efb4691a148b2c4a59f1c7ceb5f3b7e","original_commit_id":"5034c28c2efb4691a148b2c4a59f1c7ceb5f3b7e","user":{"login":"Martin-Molinero","id":18473240,"avatar_url":"https://avatars1.githubusercontent.com/u/18473240?v=4","gravatar_id":"","url":"https://api.github.com/users/Martin-Molinero","html_url":"https://github.com/Martin-Molinero","followers_url":"https://api.github.com/users/Martin-Molinero/followers","following_url":"https://api.github.com/users/Martin-Molinero/following{/other_user}","gists_url":"https://api.github.com/users/Martin-Molinero/gists{/gist_id}","starred_url":"https://api.github.com/users/Martin-Molinero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Martin-Molinero/subscriptions","organizations_url":"https://api.github.com/users/Martin-Molinero/orgs","repos_url":"https://api.github.com/users/Martin-Molinero/repos","events_url":"https://api.github.com/users/Martin-Molinero/events{/privacy}","received_events_url":"https://api.github.com/users/Martin-Molinero/received_events","type":"User","site_admin":false},"body":"Your right! Using `Language` would of been a cleaner approach. My brain just wasn't contributing when I thought this through. I'll see to it in the next patch 👌","created_at":"2018-05-03T01:54:59Z","updated_at":"2018-05-03T01:55:00Z","html_url":"https://github.com/QuantConnect/Lean/pull/1948#discussion_r185684049","pull_request_url":"https://api.github.com/repos/QuantConnect/Lean/pulls/1948","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/QuantConnect/Lean/pulls/comments/185684049"},"html":{"href":"https://github.com/QuantConnect/Lean/pull/1948#discussion_r185684049"},"pull_request":{"href":"https://api.github.com/repos/QuantConnect/Lean/pulls/1948"}},"in_reply_to_id":185677319},"pull_request":{"url":"https://api.github.com/repos/QuantConnect/Lean/pulls/1948","id":185293338,"html_url":"https://github.com/QuantConnect/Lean/pull/1948","diff_url":"https://github.com/QuantConnect/Lean/pull/1948.diff","patch_url":"https://github.com/QuantConnect/Lean/pull/1948.patch","issue_url":"https://api.github.com/repos/QuantConnect/Lean/issues/1948","number":1948,"state":"closed","locked":false,"title":"VS plugin - Adding new action \"Create Project\"","user":{"login":"Martin-Molinero","id":18473240,"avatar_url":"https://avatars1.githubusercontent.com/u/18473240?v=4","gravatar_id":"","url":"https://api.github.com/users/Martin-Molinero","html_url":"https://github.com/Martin-Molinero","followers_url":"https://api.github.com/users/Martin-Molinero/followers","following_url":"https://api.github.com/users/Martin-Molinero/following{/other_user}","gists_url":"https://api.github.com/users/Martin-Molinero/gists{/gist_id}","starred_url":"https://api.github.com/users/Martin-Molinero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Martin-Molinero/subscriptions","organizations_url":"https://api.github.com/users/Martin-Molinero/orgs","repos_url":"https://api.github.com/users/Martin-Molinero/repos","events_url":"https://api.github.com/users/Martin-Molinero/events{/privacy}","received_events_url":"https://api.github.com/users/Martin-Molinero/received_events","type":"User","site_admin":false},"body":"<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n#### Description\r\n<!--- Describe your changes in detail -->\r\n- Adding new action \"Create Project\" to the tool window\r\n     - Adding popup dialog for new project\r\n- Projects will display the associated Language as a name prefix \r\n- Send For Backtesting will now open backtest\r\n- Moving ProjectNameDialog.ComboboxItem to a new file and renaming to ComboboxProjectItem\r\n- Fix for suggested project in ProjectNameDialog. Before it suggested only with the project name causing a new project with the same name to be created. Now it will use the suggested project name to find the corresponding available project and use it.\r\n- Tool window combobox will now auto select first project and load associated backtests\r\n- Replacing weird positioning of labels in dialogs with padding \r\n- Updating documentation and images.\r\n\r\n\r\n#### Related Issue\r\n<!--- This project only accepts pull requests related to open issues -->\r\n<!--- If suggesting a new feature or change, please discuss it in an issue first -->\r\n<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->\r\n<!--- Please link to the issue here: -->\r\nhttps://github.com/QuantConnect/Lean/issues/1915\r\n#### Motivation and Context\r\n<!--- Why is this change required? What problem does it solve? -->\r\nAdd more value to VS plugin\r\n#### Requires Documentation Change\r\n<!--- Please indicate if these changes will require updates to documentation, and if so, specify what changes are required -->\r\nYes. I'm already updating VS plugin documentation\r\n#### How Has This Been Tested?\r\n<!--- Please describe in detail how you tested your changes. -->\r\n<!--- Include details of your testing environment, and the tests you ran to -->\r\n<!--- see how your change affects other areas of the code, etc. -->\r\nManually VS17 and VS15\r\n#### Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [x] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n- [x] Non-functional change (xml comments/documentation/ect)\r\n\r\n#### Checklist:\r\n<!--- The following is a checklist of items that MUST be completed before a PR is accepted -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] My code follows the code style of this project.\r\n- [x] I have read the **CONTRIBUTING** [document](https://github.com/QuantConnect/Lean/blob/master/CONTRIBUTING.md).\r\n- [ ] I have added tests to cover my changes. <!--- If not applicable, please explain why -->\r\n- [x] All new and existing tests passed.\r\n- [x] My branch follows the naming convention `bug-<issue#>-<description` or `feature-<issue#>-<description>`\r\n\r\n<!--- Template inspired by https://www.talater.com/open-source-templates/#/page/99 -->","created_at":"2018-05-01T22:34:37Z","updated_at":"2018-05-03T01:55:00Z","closed_at":"2018-05-03T00:52:55Z","merged_at":"2018-05-03T00:52:55Z","merge_commit_sha":"c1f194bb530be2bd86884796fa71343eec8b3991","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/QuantConnect/Lean/pulls/1948/commits","review_comments_url":"https://api.github.com/repos/QuantConnect/Lean/pulls/1948/comments","review_comment_url":"https://api.github.com/repos/QuantConnect/Lean/pulls/comments{/number}","comments_url":"https://api.github.com/repos/QuantConnect/Lean/issues/1948/comments","statuses_url":"https://api.github.com/repos/QuantConnect/Lean/statuses/5034c28c2efb4691a148b2c4a59f1c7ceb5f3b7e","head":{"label":"Martin-Molinero:issue-1915-vs-plugin-create-project-action","ref":"issue-1915-vs-plugin-create-project-action","sha":"5034c28c2efb4691a148b2c4a59f1c7ceb5f3b7e","user":{"login":"Martin-Molinero","id":18473240,"avatar_url":"https://avatars1.githubusercontent.com/u/18473240?v=4","gravatar_id":"","url":"https://api.github.com/users/Martin-Molinero","html_url":"https://github.com/Martin-Molinero","followers_url":"https://api.github.com/users/Martin-Molinero/followers","following_url":"https://api.github.com/users/Martin-Molinero/following{/other_user}","gists_url":"https://api.github.com/users/Martin-Molinero/gists{/gist_id}","starred_url":"https://api.github.com/users/Martin-Molinero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Martin-Molinero/subscriptions","organizations_url":"https://api.github.com/users/Martin-Molinero/orgs","repos_url":"https://api.github.com/users/Martin-Molinero/repos","events_url":"https://api.github.com/users/Martin-Molinero/events{/privacy}","received_events_url":"https://api.github.com/users/Martin-Molinero/received_events","type":"User","site_admin":false},"repo":{"id":102406163,"name":"Lean","full_name":"Martin-Molinero/Lean","owner":{"login":"Martin-Molinero","id":18473240,"avatar_url":"https://avatars1.githubusercontent.com/u/18473240?v=4","gravatar_id":"","url":"https://api.github.com/users/Martin-Molinero","html_url":"https://github.com/Martin-Molinero","followers_url":"https://api.github.com/users/Martin-Molinero/followers","following_url":"https://api.github.com/users/Martin-Molinero/following{/other_user}","gists_url":"https://api.github.com/users/Martin-Molinero/gists{/gist_id}","starred_url":"https://api.github.com/users/Martin-Molinero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Martin-Molinero/subscriptions","organizations_url":"https://api.github.com/users/Martin-Molinero/orgs","repos_url":"https://api.github.com/users/Martin-Molinero/repos","events_url":"https://api.github.com/users/Martin-Molinero/events{/privacy}","received_events_url":"https://api.github.com/users/Martin-Molinero/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Martin-Molinero/Lean","description":"Lean Algorithmic Trading Engine by QuantConnect (C#, Python, F#, VB, Java)","fork":true,"url":"https://api.github.com/repos/Martin-Molinero/Lean","forks_url":"https://api.github.com/repos/Martin-Molinero/Lean/forks","keys_url":"https://api.github.com/repos/Martin-Molinero/Lean/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Martin-Molinero/Lean/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Martin-Molinero/Lean/teams","hooks_url":"https://api.github.com/repos/Martin-Molinero/Lean/hooks","issue_events_url":"https://api.github.com/repos/Martin-Molinero/Lean/issues/events{/number}","events_url":"https://api.github.com/repos/Martin-Molinero/Lean/events","assignees_url":"https://api.github.com/repos/Martin-Molinero/Lean/assignees{/user}","branches_url":"https://api.github.com/repos/Martin-Molinero/Lean/branches{/branch}","tags_url":"https://api.github.com/repos/Martin-Molinero/Lean/tags","blobs_url":"https://api.github.com/repos/Martin-Molinero/Lean/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Martin-Molinero/Lean/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Martin-Molinero/Lean/git/refs{/sha}","trees_url":"https://api.github.com/repos/Martin-Molinero/Lean/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Martin-Molinero/Lean/statuses/{sha}","languages_url":"https://api.github.com/repos/Martin-Molinero/Lean/languages","stargazers_url":"https://api.github.com/repos/Martin-Molinero/Lean/stargazers","contributors_url":"https://api.github.com/repos/Martin-Molinero/Lean/contributors","subscribers_url":"https://api.github.com/repos/Martin-Molinero/Lean/subscribers","subscription_url":"https://api.github.com/repos/Martin-Molinero/Lean/subscription","commits_url":"https://api.github.com/repos/Martin-Molinero/Lean/commits{/sha}","git_commits_url":"https://api.github.com/repos/Martin-Molinero/Lean/git/commits{/sha}","comments_url":"https://api.github.com/repos/Martin-Molinero/Lean/comments{/number}","issue_comment_url":"https://api.github.com/repos/Martin-Molinero/Lean/issues/comments{/number}","contents_url":"https://api.github.com/repos/Martin-Molinero/Lean/contents/{+path}","compare_url":"https://api.github.com/repos/Martin-Molinero/Lean/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Martin-Molinero/Lean/merges","archive_url":"https://api.github.com/repos/Martin-Molinero/Lean/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Martin-Molinero/Lean/downloads","issues_url":"https://api.github.com/repos/Martin-Molinero/Lean/issues{/number}","pulls_url":"https://api.github.com/repos/Martin-Molinero/Lean/pulls{/number}","milestones_url":"https://api.github.com/repos/Martin-Molinero/Lean/milestones{/number}","notifications_url":"https://api.github.com/repos/Martin-Molinero/Lean/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Martin-Molinero/Lean/labels{/name}","releases_url":"https://api.github.com/repos/Martin-Molinero/Lean/releases{/id}","deployments_url":"https://api.github.com/repos/Martin-Molinero/Lean/deployments","created_at":"2017-09-04T22:02:34Z","updated_at":"2018-05-02T23:33:29Z","pushed_at":"2018-05-02T23:33:52Z","git_url":"git://github.com/Martin-Molinero/Lean.git","ssh_url":"git@github.com:Martin-Molinero/Lean.git","clone_url":"https://github.com/Martin-Molinero/Lean.git","svn_url":"https://github.com/Martin-Molinero/Lean","homepage":"https://lean.quantconnect.com","size":205612,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"QuantConnect:master","ref":"master","sha":"0488739f43381463488250f7cc40a1b7add21bc7","user":{"login":"QuantConnect","id":3912814,"avatar_url":"https://avatars0.githubusercontent.com/u/3912814?v=4","gravatar_id":"","url":"https://api.github.com/users/QuantConnect","html_url":"https://github.com/QuantConnect","followers_url":"https://api.github.com/users/QuantConnect/followers","following_url":"https://api.github.com/users/QuantConnect/following{/other_user}","gists_url":"https://api.github.com/users/QuantConnect/gists{/gist_id}","starred_url":"https://api.github.com/users/QuantConnect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuantConnect/subscriptions","organizations_url":"https://api.github.com/users/QuantConnect/orgs","repos_url":"https://api.github.com/users/QuantConnect/repos","events_url":"https://api.github.com/users/QuantConnect/events{/privacy}","received_events_url":"https://api.github.com/users/QuantConnect/received_events","type":"Organization","site_admin":false},"repo":{"id":27251463,"name":"Lean","full_name":"QuantConnect/Lean","owner":{"login":"QuantConnect","id":3912814,"avatar_url":"https://avatars0.githubusercontent.com/u/3912814?v=4","gravatar_id":"","url":"https://api.github.com/users/QuantConnect","html_url":"https://github.com/QuantConnect","followers_url":"https://api.github.com/users/QuantConnect/followers","following_url":"https://api.github.com/users/QuantConnect/following{/other_user}","gists_url":"https://api.github.com/users/QuantConnect/gists{/gist_id}","starred_url":"https://api.github.com/users/QuantConnect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuantConnect/subscriptions","organizations_url":"https://api.github.com/users/QuantConnect/orgs","repos_url":"https://api.github.com/users/QuantConnect/repos","events_url":"https://api.github.com/users/QuantConnect/events{/privacy}","received_events_url":"https://api.github.com/users/QuantConnect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/QuantConnect/Lean","description":"Lean Algorithmic Trading Engine by QuantConnect (C#, Python, F#)","fork":false,"url":"https://api.github.com/repos/QuantConnect/Lean","forks_url":"https://api.github.com/repos/QuantConnect/Lean/forks","keys_url":"https://api.github.com/repos/QuantConnect/Lean/keys{/key_id}","collaborators_url":"https://api.github.com/repos/QuantConnect/Lean/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/QuantConnect/Lean/teams","hooks_url":"https://api.github.com/repos/QuantConnect/Lean/hooks","issue_events_url":"https://api.github.com/repos/QuantConnect/Lean/issues/events{/number}","events_url":"https://api.github.com/repos/QuantConnect/Lean/events","assignees_url":"https://api.github.com/repos/QuantConnect/Lean/assignees{/user}","branches_url":"https://api.github.com/repos/QuantConnect/Lean/branches{/branch}","tags_url":"https://api.github.com/repos/QuantConnect/Lean/tags","blobs_url":"https://api.github.com/repos/QuantConnect/Lean/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/QuantConnect/Lean/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/QuantConnect/Lean/git/refs{/sha}","trees_url":"https://api.github.com/repos/QuantConnect/Lean/git/trees{/sha}","statuses_url":"https://api.github.com/repos/QuantConnect/Lean/statuses/{sha}","languages_url":"https://api.github.com/repos/QuantConnect/Lean/languages","stargazers_url":"https://api.github.com/repos/QuantConnect/Lean/stargazers","contributors_url":"https://api.github.com/repos/QuantConnect/Lean/contributors","subscribers_url":"https://api.github.com/repos/QuantConnect/Lean/subscribers","subscription_url":"https://api.github.com/repos/QuantConnect/Lean/subscription","commits_url":"https://api.github.com/repos/QuantConnect/Lean/commits{/sha}","git_commits_url":"https://api.github.com/repos/QuantConnect/Lean/git/commits{/sha}","comments_url":"https://api.github.com/repos/QuantConnect/Lean/comments{/number}","issue_comment_url":"https://api.github.com/repos/QuantConnect/Lean/issues/comments{/number}","contents_url":"https://api.github.com/repos/QuantConnect/Lean/contents/{+path}","compare_url":"https://api.github.com/repos/QuantConnect/Lean/compare/{base}...{head}","merges_url":"https://api.github.com/repos/QuantConnect/Lean/merges","archive_url":"https://api.github.com/repos/QuantConnect/Lean/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/QuantConnect/Lean/downloads","issues_url":"https://api.github.com/repos/QuantConnect/Lean/issues{/number}","pulls_url":"https://api.github.com/repos/QuantConnect/Lean/pulls{/number}","milestones_url":"https://api.github.com/repos/QuantConnect/Lean/milestones{/number}","notifications_url":"https://api.github.com/repos/QuantConnect/Lean/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/QuantConnect/Lean/labels{/name}","releases_url":"https://api.github.com/repos/QuantConnect/Lean/releases{/id}","deployments_url":"https://api.github.com/repos/QuantConnect/Lean/deployments","created_at":"2014-11-28T04:20:19Z","updated_at":"2018-05-03T00:52:58Z","pushed_at":"2018-05-03T00:52:55Z","git_url":"git://github.com/QuantConnect/Lean.git","ssh_url":"git@github.com:QuantConnect/Lean.git","clone_url":"https://github.com/QuantConnect/Lean.git","svn_url":"https://github.com/QuantConnect/Lean","homepage":"http://lean.io","size":205672,"stargazers_count":1628,"watchers_count":1628,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":927,"mirror_url":null,"archived":false,"open_issues_count":95,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":927,"open_issues":95,"watchers":1628,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/QuantConnect/Lean/pulls/1948"},"html":{"href":"https://github.com/QuantConnect/Lean/pull/1948"},"issue":{"href":"https://api.github.com/repos/QuantConnect/Lean/issues/1948"},"comments":{"href":"https://api.github.com/repos/QuantConnect/Lean/issues/1948/comments"},"review_comments":{"href":"https://api.github.com/repos/QuantConnect/Lean/pulls/1948/comments"},"review_comment":{"href":"https://api.github.com/repos/QuantConnect/Lean/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/QuantConnect/Lean/pulls/1948/commits"},"statuses":{"href":"https://api.github.com/repos/QuantConnect/Lean/statuses/5034c28c2efb4691a148b2c4a59f1c7ceb5f3b7e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Martin-Molinero"}}