{"action":"created","comment":{"url":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/comments/180825121","pull_request_review_id":111315544,"id":180825121,"diff_hunk":"@@ -0,0 +1,162 @@\n+﻿using OpenLauncher.Core.Projects.DataModel;\n+using System;\n+using System.Collections.Generic;\n+using System.ComponentModel;\n+using System.Data;\n+using System.Drawing;\n+using System.IO;\n+using System.Linq;\n+using System.Text;\n+using System.Threading.Tasks;\n+using System.Windows.Forms;\n+\n+namespace OpenLauncher.Forms\n+{\n+    /// <summary>\n+    /// This form will allow you to create a ProjectConfiguration file for the server\n+    /// </summary>\n+    public partial class CreateProjectConfig : Form\n+    {\n+        private string _baseFolder;\n+\n+        private ProjectConfigJSON _projectConfigJSON;\n+        public ProjectConfigJSON ProjectConfigJSON => _projectConfigJSON;\n+\n+        /// <summary>\n+        /// This will create a new instance of this form\n+        /// </summary>\n+        /// <param name=\"baseFolder\">This is the base folder (The input folder for creating the server files)</param>\n+        public CreateProjectConfig(string baseFolder)\n+        {\n+            InitializeComponent();\n+\n+            _baseFolder = baseFolder;\n+        }\n+\n+        /// <summary>\n+        /// This function will setup the drag and drop functionality\n+        /// </summary>\n+        /// <param name=\"sender\"></param>\n+        /// <param name=\"e\"></param>\n+        private void CreateProjectConfig_Load(object sender, EventArgs e)\n+        {\n+            LV_Executables.AllowDrop = true;\n+            LV_Executables.DragDrop += ListView1_DragDrop;\n+            LV_Executables.DragEnter += ListView1_DragEnter;\n+\n+            LV_Executables.FullRowSelect = true;\n+            LV_Executables.ContextMenuStrip = CMS_ItemSelect;\n+            LV_Executables.MultiSelect = false;\n+        }\n+\n+        /// <summary>\n+        /// This will handle the drag and drop effect shown on the mouse\n+        /// </summary>\n+        /// <param name=\"sender\"></param>\n+        /// <param name=\"e\"></param>\n+        private void ListView1_DragEnter(object sender, DragEventArgs e)\n+        {\n+            e.Effect = DragDropEffects.Copy;\n+        }\n+\n+        /// <summary>\n+        /// Handles the drag and drop event on the listview\n+        /// </summary>\n+        /// <param name=\"sender\"></param>\n+        /// <param name=\"e\"></param>\n+        private void ListView1_DragDrop(object sender, DragEventArgs e)\n+        {\n+            string[] files = (string[])e.Data.GetData(DataFormats.FileDrop, false);\n+            foreach (string currentFile in files)\n+            {\n+                string fileToUse = currentFile.Replace(_baseFolder + \"\\\\\", \"\");\n+                fileToUse = fileToUse.Replace(\"\\\\\", \"/\");\n+                ListViewItem item = new ListViewItem(fileToUse);\n+\n+                FileInfo fi = new FileInfo(currentFile);\n+                string launchName = fi.Name;\n+                launchName = launchName.Replace(fi.Extension, \"\");\n+\n+                item.SubItems.Add(launchName);\n+                LV_Executables.Items.Add(item);\n+            }\n+            LV_Executables.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);\n+        }\n+\n+        /// <summary>\n+        /// This will show the right click menu if you click on one of the entries in the list view\n+        /// </summary>\n+        /// <param name=\"sender\"></param>\n+        /// <param name=\"e\"></param>\n+        private void LV_Executables_MouseClick(object sender, MouseEventArgs e)\n+        {\n+            if (e.Button == MouseButtons.Right)\n+            {\n+                if (LV_Executables.FocusedItem.Bounds.Contains(e.Location) == true)\n+                {\n+                    CMS_ItemSelect.Show(Cursor.Position);\n+                }\n+            }\n+        }\n+\n+        /// <summary>\n+        /// This is the rename button in the context menu\n+        /// </summary>\n+        /// <param name=\"sender\"></param>\n+        /// <param name=\"e\"></param>\n+        private void TSMI_Rename_Click(object sender, EventArgs e)\n+        {\n+            if (LV_Executables.SelectedItems.Count == 0)\n+            {\n+                return;\n+            }\n+\n+            ListViewItem item = LV_Executables.SelectedItems[0];\n+\n+            string executable = item.Text;\n+\n+            TextEntryDialog RenameDialog = new TextEntryDialog($\"Add new name for {executable}\", item.SubItems[1].Text);\n+            RenameDialog.ShowDialog();\n+\n+            if (RenameDialog.TextEntered)\n+            {\n+                item.SubItems[1].Text = RenameDialog.EnteredText;\n+            }\n+           \n+        }\n+\n+        /// <summary>\n+        /// This function will delete the currently selected entrie in the list view\n+        /// </summary>\n+        /// <param name=\"sender\"></param>\n+        /// <param name=\"e\"></param>\n+        private void TSMI_Delete_Click(object sender, EventArgs e)","path":"OpenLauncher/Forms/CreateProjectConfig.cs","position":133,"original_position":133,"commit_id":"fc36dca9adcda489ae31287f8612f9fd4da9212d","original_commit_id":"fc36dca9adcda489ae31287f8612f9fd4da9212d","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Make 'TSMI_Delete_Click' a static method.](https://app.codacy.com/app/simonaberle/OpenLauncher/pullRequest?prid=1527228)","created_at":"2018-04-11T16:52:27Z","updated_at":"2018-04-11T16:52:27Z","html_url":"https://github.com/XanatosX/OpenLauncher/pull/1#discussion_r180825121","pull_request_url":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/comments/180825121"},"html":{"href":"https://github.com/XanatosX/OpenLauncher/pull/1#discussion_r180825121"},"pull_request":{"href":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/1","id":179909798,"html_url":"https://github.com/XanatosX/OpenLauncher/pull/1","diff_url":"https://github.com/XanatosX/OpenLauncher/pull/1.diff","patch_url":"https://github.com/XanatosX/OpenLauncher/pull/1.patch","issue_url":"https://api.github.com/repos/XanatosX/OpenLauncher/issues/1","number":1,"state":"open","locked":false,"title":"Feature/basic project loading","user":{"login":"XanatosX","id":10531466,"avatar_url":"https://avatars2.githubusercontent.com/u/10531466?v=4","gravatar_id":"","url":"https://api.github.com/users/XanatosX","html_url":"https://github.com/XanatosX","followers_url":"https://api.github.com/users/XanatosX/followers","following_url":"https://api.github.com/users/XanatosX/following{/other_user}","gists_url":"https://api.github.com/users/XanatosX/gists{/gist_id}","starred_url":"https://api.github.com/users/XanatosX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XanatosX/subscriptions","organizations_url":"https://api.github.com/users/XanatosX/orgs","repos_url":"https://api.github.com/users/XanatosX/repos","events_url":"https://api.github.com/users/XanatosX/events{/privacy}","received_events_url":"https://api.github.com/users/XanatosX/received_events","type":"User","site_admin":false},"body":"Adding basic functionality to the project","created_at":"2018-04-06T10:24:09Z","updated_at":"2018-04-11T16:52:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94d800e5d2bab7750ec75f304fd551328ca51ccf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/1/commits","review_comments_url":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/1/comments","review_comment_url":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/XanatosX/OpenLauncher/issues/1/comments","statuses_url":"https://api.github.com/repos/XanatosX/OpenLauncher/statuses/fc36dca9adcda489ae31287f8612f9fd4da9212d","head":{"label":"XanatosX:feature/basic-project-loading","ref":"feature/basic-project-loading","sha":"fc36dca9adcda489ae31287f8612f9fd4da9212d","user":{"login":"XanatosX","id":10531466,"avatar_url":"https://avatars2.githubusercontent.com/u/10531466?v=4","gravatar_id":"","url":"https://api.github.com/users/XanatosX","html_url":"https://github.com/XanatosX","followers_url":"https://api.github.com/users/XanatosX/followers","following_url":"https://api.github.com/users/XanatosX/following{/other_user}","gists_url":"https://api.github.com/users/XanatosX/gists{/gist_id}","starred_url":"https://api.github.com/users/XanatosX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XanatosX/subscriptions","organizations_url":"https://api.github.com/users/XanatosX/orgs","repos_url":"https://api.github.com/users/XanatosX/repos","events_url":"https://api.github.com/users/XanatosX/events{/privacy}","received_events_url":"https://api.github.com/users/XanatosX/received_events","type":"User","site_admin":false},"repo":{"id":128268008,"name":"OpenLauncher","full_name":"XanatosX/OpenLauncher","owner":{"login":"XanatosX","id":10531466,"avatar_url":"https://avatars2.githubusercontent.com/u/10531466?v=4","gravatar_id":"","url":"https://api.github.com/users/XanatosX","html_url":"https://github.com/XanatosX","followers_url":"https://api.github.com/users/XanatosX/followers","following_url":"https://api.github.com/users/XanatosX/following{/other_user}","gists_url":"https://api.github.com/users/XanatosX/gists{/gist_id}","starred_url":"https://api.github.com/users/XanatosX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XanatosX/subscriptions","organizations_url":"https://api.github.com/users/XanatosX/orgs","repos_url":"https://api.github.com/users/XanatosX/repos","events_url":"https://api.github.com/users/XanatosX/events{/privacy}","received_events_url":"https://api.github.com/users/XanatosX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XanatosX/OpenLauncher","description":"A program updater which is open source","fork":false,"url":"https://api.github.com/repos/XanatosX/OpenLauncher","forks_url":"https://api.github.com/repos/XanatosX/OpenLauncher/forks","keys_url":"https://api.github.com/repos/XanatosX/OpenLauncher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XanatosX/OpenLauncher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XanatosX/OpenLauncher/teams","hooks_url":"https://api.github.com/repos/XanatosX/OpenLauncher/hooks","issue_events_url":"https://api.github.com/repos/XanatosX/OpenLauncher/issues/events{/number}","events_url":"https://api.github.com/repos/XanatosX/OpenLauncher/events","assignees_url":"https://api.github.com/repos/XanatosX/OpenLauncher/assignees{/user}","branches_url":"https://api.github.com/repos/XanatosX/OpenLauncher/branches{/branch}","tags_url":"https://api.github.com/repos/XanatosX/OpenLauncher/tags","blobs_url":"https://api.github.com/repos/XanatosX/OpenLauncher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XanatosX/OpenLauncher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XanatosX/OpenLauncher/git/refs{/sha}","trees_url":"https://api.github.com/repos/XanatosX/OpenLauncher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XanatosX/OpenLauncher/statuses/{sha}","languages_url":"https://api.github.com/repos/XanatosX/OpenLauncher/languages","stargazers_url":"https://api.github.com/repos/XanatosX/OpenLauncher/stargazers","contributors_url":"https://api.github.com/repos/XanatosX/OpenLauncher/contributors","subscribers_url":"https://api.github.com/repos/XanatosX/OpenLauncher/subscribers","subscription_url":"https://api.github.com/repos/XanatosX/OpenLauncher/subscription","commits_url":"https://api.github.com/repos/XanatosX/OpenLauncher/commits{/sha}","git_commits_url":"https://api.github.com/repos/XanatosX/OpenLauncher/git/commits{/sha}","comments_url":"https://api.github.com/repos/XanatosX/OpenLauncher/comments{/number}","issue_comment_url":"https://api.github.com/repos/XanatosX/OpenLauncher/issues/comments{/number}","contents_url":"https://api.github.com/repos/XanatosX/OpenLauncher/contents/{+path}","compare_url":"https://api.github.com/repos/XanatosX/OpenLauncher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XanatosX/OpenLauncher/merges","archive_url":"https://api.github.com/repos/XanatosX/OpenLauncher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XanatosX/OpenLauncher/downloads","issues_url":"https://api.github.com/repos/XanatosX/OpenLauncher/issues{/number}","pulls_url":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls{/number}","milestones_url":"https://api.github.com/repos/XanatosX/OpenLauncher/milestones{/number}","notifications_url":"https://api.github.com/repos/XanatosX/OpenLauncher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XanatosX/OpenLauncher/labels{/name}","releases_url":"https://api.github.com/repos/XanatosX/OpenLauncher/releases{/id}","deployments_url":"https://api.github.com/repos/XanatosX/OpenLauncher/deployments","created_at":"2018-04-05T21:49:09Z","updated_at":"2018-04-11T06:27:25Z","pushed_at":"2018-04-11T16:50:36Z","git_url":"git://github.com/XanatosX/OpenLauncher.git","ssh_url":"git@github.com:XanatosX/OpenLauncher.git","clone_url":"https://github.com/XanatosX/OpenLauncher.git","svn_url":"https://github.com/XanatosX/OpenLauncher","homepage":null,"size":93,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"XanatosX:master","ref":"master","sha":"39ccdc368e051dc279b1ab88a54c2ba2c9a2bd5b","user":{"login":"XanatosX","id":10531466,"avatar_url":"https://avatars2.githubusercontent.com/u/10531466?v=4","gravatar_id":"","url":"https://api.github.com/users/XanatosX","html_url":"https://github.com/XanatosX","followers_url":"https://api.github.com/users/XanatosX/followers","following_url":"https://api.github.com/users/XanatosX/following{/other_user}","gists_url":"https://api.github.com/users/XanatosX/gists{/gist_id}","starred_url":"https://api.github.com/users/XanatosX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XanatosX/subscriptions","organizations_url":"https://api.github.com/users/XanatosX/orgs","repos_url":"https://api.github.com/users/XanatosX/repos","events_url":"https://api.github.com/users/XanatosX/events{/privacy}","received_events_url":"https://api.github.com/users/XanatosX/received_events","type":"User","site_admin":false},"repo":{"id":128268008,"name":"OpenLauncher","full_name":"XanatosX/OpenLauncher","owner":{"login":"XanatosX","id":10531466,"avatar_url":"https://avatars2.githubusercontent.com/u/10531466?v=4","gravatar_id":"","url":"https://api.github.com/users/XanatosX","html_url":"https://github.com/XanatosX","followers_url":"https://api.github.com/users/XanatosX/followers","following_url":"https://api.github.com/users/XanatosX/following{/other_user}","gists_url":"https://api.github.com/users/XanatosX/gists{/gist_id}","starred_url":"https://api.github.com/users/XanatosX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XanatosX/subscriptions","organizations_url":"https://api.github.com/users/XanatosX/orgs","repos_url":"https://api.github.com/users/XanatosX/repos","events_url":"https://api.github.com/users/XanatosX/events{/privacy}","received_events_url":"https://api.github.com/users/XanatosX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XanatosX/OpenLauncher","description":"A program updater which is open source","fork":false,"url":"https://api.github.com/repos/XanatosX/OpenLauncher","forks_url":"https://api.github.com/repos/XanatosX/OpenLauncher/forks","keys_url":"https://api.github.com/repos/XanatosX/OpenLauncher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XanatosX/OpenLauncher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XanatosX/OpenLauncher/teams","hooks_url":"https://api.github.com/repos/XanatosX/OpenLauncher/hooks","issue_events_url":"https://api.github.com/repos/XanatosX/OpenLauncher/issues/events{/number}","events_url":"https://api.github.com/repos/XanatosX/OpenLauncher/events","assignees_url":"https://api.github.com/repos/XanatosX/OpenLauncher/assignees{/user}","branches_url":"https://api.github.com/repos/XanatosX/OpenLauncher/branches{/branch}","tags_url":"https://api.github.com/repos/XanatosX/OpenLauncher/tags","blobs_url":"https://api.github.com/repos/XanatosX/OpenLauncher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XanatosX/OpenLauncher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XanatosX/OpenLauncher/git/refs{/sha}","trees_url":"https://api.github.com/repos/XanatosX/OpenLauncher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XanatosX/OpenLauncher/statuses/{sha}","languages_url":"https://api.github.com/repos/XanatosX/OpenLauncher/languages","stargazers_url":"https://api.github.com/repos/XanatosX/OpenLauncher/stargazers","contributors_url":"https://api.github.com/repos/XanatosX/OpenLauncher/contributors","subscribers_url":"https://api.github.com/repos/XanatosX/OpenLauncher/subscribers","subscription_url":"https://api.github.com/repos/XanatosX/OpenLauncher/subscription","commits_url":"https://api.github.com/repos/XanatosX/OpenLauncher/commits{/sha}","git_commits_url":"https://api.github.com/repos/XanatosX/OpenLauncher/git/commits{/sha}","comments_url":"https://api.github.com/repos/XanatosX/OpenLauncher/comments{/number}","issue_comment_url":"https://api.github.com/repos/XanatosX/OpenLauncher/issues/comments{/number}","contents_url":"https://api.github.com/repos/XanatosX/OpenLauncher/contents/{+path}","compare_url":"https://api.github.com/repos/XanatosX/OpenLauncher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XanatosX/OpenLauncher/merges","archive_url":"https://api.github.com/repos/XanatosX/OpenLauncher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XanatosX/OpenLauncher/downloads","issues_url":"https://api.github.com/repos/XanatosX/OpenLauncher/issues{/number}","pulls_url":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls{/number}","milestones_url":"https://api.github.com/repos/XanatosX/OpenLauncher/milestones{/number}","notifications_url":"https://api.github.com/repos/XanatosX/OpenLauncher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XanatosX/OpenLauncher/labels{/name}","releases_url":"https://api.github.com/repos/XanatosX/OpenLauncher/releases{/id}","deployments_url":"https://api.github.com/repos/XanatosX/OpenLauncher/deployments","created_at":"2018-04-05T21:49:09Z","updated_at":"2018-04-11T06:27:25Z","pushed_at":"2018-04-11T16:50:36Z","git_url":"git://github.com/XanatosX/OpenLauncher.git","ssh_url":"git@github.com:XanatosX/OpenLauncher.git","clone_url":"https://github.com/XanatosX/OpenLauncher.git","svn_url":"https://github.com/XanatosX/OpenLauncher","homepage":null,"size":93,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/1"},"html":{"href":"https://github.com/XanatosX/OpenLauncher/pull/1"},"issue":{"href":"https://api.github.com/repos/XanatosX/OpenLauncher/issues/1"},"comments":{"href":"https://api.github.com/repos/XanatosX/OpenLauncher/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/XanatosX/OpenLauncher/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/XanatosX/OpenLauncher/statuses/fc36dca9adcda489ae31287f8612f9fd4da9212d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"codacy-bot"}}