{"action":"created","comment":{"url":"https://api.github.com/repos/rvsosn/file-sorter/pulls/comments/295240101","pull_request_review_id":251624630,"id":295240101,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5NTI0MDEwMQ==","diff_hunk":"@@ -0,0 +1,74 @@\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 WindowsFormsApp1\n+{\n+    public partial class Form1 : Form\n+    {\n+        public Form1()\n+        {\n+            InitializeComponent();\n+        }\n+\n+        private void Button1_Click(object sender, EventArgs e)\n+        {           \n+            string[] files = Directory.GetFiles(textBox2.Text);\n+            if (files.Length != 0)\n+            {\n+                for (int i = 0; i < files.Length; i++)\n+                {\n+                    if (Directory.Exists(files[i].Substring(files[i].LastIndexOf('.') + 1)) == false)\n+                    {\n+                        Directory.CreateDirectory(textBox2.Text + \"\\\\\" + files[i].Substring(files[i].LastIndexOf('.') + 1));\n+                    }\n+                }\n+                int j = 1;\n+                for (int i = 0; i < files.Length; i++)\n+                {\n+                    if (File.Exists(files[i]) == true && File.Exists(textBox2.Text + \"\\\\\" + files[i].Substring(files[i].LastIndexOf('.') + 1) + \"\\\\\" + files[i].Substring(files[i].LastIndexOf('\\\\') + 1)) == false)\n+                    {\n+                        File.Move(files[i], textBox2.Text + \"\\\\\" + files[i].Substring(files[i].LastIndexOf('.') + 1) + \"\\\\\" + files[i].Substring(files[i].LastIndexOf('\\\\') + 1));\n+                    }\n+                    else\n+                    {\n+                        File.Move(files[i], textBox2.Text + \"\\\\\" + files[i].Substring(files[i].LastIndexOf('.') + 1) + \"\\\\\" + j + files[i].Substring(files[i].LastIndexOf('\\\\') + 1));\n+                        j++;\n+                    }\n+                }\n+                MessageBox.Show(\"Готово!\");\n+            }\n+            else\n+            {\n+                MessageBox.Show(\"В папке нет файлов для копирования!\");\n+            }\n+        }\n+\n+        private void Button2_Click(object sender, EventArgs e)\n+        {\n+            DialogResult result = folderBrowserDialog1.ShowDialog();\n+            if (result == DialogResult.OK)\n+            {\n+                textBox2.Text = folderBrowserDialog1.SelectedPath;\n+                if (textBox2.Text != \"\")\n+                {\n+                    button1.Enabled = true;\n+                }\n+            }\n+            else { }","path":"WindowsFormsApp1/Form1.cs","position":null,"original_position":65,"commit_id":"870ae90da9be88572edfb0cc081ba7a6fe73b6ce","original_commit_id":"27d63ebbf45f097ddce3a07efb3ece2b00d7199a","user":{"login":"myalinivan","id":12157653,"node_id":"MDQ6VXNlcjEyMTU3NjUz","avatar_url":"https://avatars3.githubusercontent.com/u/12157653?v=4","gravatar_id":"","url":"https://api.github.com/users/myalinivan","html_url":"https://github.com/myalinivan","followers_url":"https://api.github.com/users/myalinivan/followers","following_url":"https://api.github.com/users/myalinivan/following{/other_user}","gists_url":"https://api.github.com/users/myalinivan/gists{/gist_id}","starred_url":"https://api.github.com/users/myalinivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myalinivan/subscriptions","organizations_url":"https://api.github.com/users/myalinivan/orgs","repos_url":"https://api.github.com/users/myalinivan/repos","events_url":"https://api.github.com/users/myalinivan/events{/privacy}","received_events_url":"https://api.github.com/users/myalinivan/received_events","type":"User","site_admin":false},"body":"удалил","created_at":"2019-06-19T11:02:44Z","updated_at":"2019-06-19T11:02:44Z","html_url":"https://github.com/rvsosn/file-sorter/pull/2#discussion_r295240101","pull_request_url":"https://api.github.com/repos/rvsosn/file-sorter/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/rvsosn/file-sorter/pulls/comments/295240101"},"html":{"href":"https://github.com/rvsosn/file-sorter/pull/2#discussion_r295240101"},"pull_request":{"href":"https://api.github.com/repos/rvsosn/file-sorter/pulls/2"}},"in_reply_to_id":294811252},"pull_request":{"url":"https://api.github.com/repos/rvsosn/file-sorter/pulls/2","id":289261912,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg5MjYxOTEy","html_url":"https://github.com/rvsosn/file-sorter/pull/2","diff_url":"https://github.com/rvsosn/file-sorter/pull/2.diff","patch_url":"https://github.com/rvsosn/file-sorter/pull/2.patch","issue_url":"https://api.github.com/repos/rvsosn/file-sorter/issues/2","number":2,"state":"open","locked":false,"title":"Первая версия программы","user":{"login":"myalinivan","id":12157653,"node_id":"MDQ6VXNlcjEyMTU3NjUz","avatar_url":"https://avatars3.githubusercontent.com/u/12157653?v=4","gravatar_id":"","url":"https://api.github.com/users/myalinivan","html_url":"https://github.com/myalinivan","followers_url":"https://api.github.com/users/myalinivan/followers","following_url":"https://api.github.com/users/myalinivan/following{/other_user}","gists_url":"https://api.github.com/users/myalinivan/gists{/gist_id}","starred_url":"https://api.github.com/users/myalinivan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myalinivan/subscriptions","organizations_url":"https://api.github.com/users/myalinivan/orgs","repos_url":"https://api.github.com/users/myalinivan/repos","events_url":"https://api.github.com/users/myalinivan/events{/privacy}","received_events_url":"https://api.github.com/users/myalinivan/received_events","type":"User","site_admin":false},"body":"Первый комментарий для pull request, Зачем нужны пр?\r\n\r\n# Скриншоты\r\n![image](https://user-images.githubusercontent.com/17113958/59699129-b3be7b00-91f9-11e9-81d9-694b0ee4b276.png)\r\n![image](https://user-images.githubusercontent.com/17113958/59699134-b7ea9880-91f9-11e9-85fc-592c11f950ea.png)\r\n![image](https://user-images.githubusercontent.com/17113958/59699139-b9b45c00-91f9-11e9-86a3-4c3e50a637dc.png)\r\n\r\n","created_at":"2019-06-18T12:39:42Z","updated_at":"2019-06-19T11:02:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c146e46268a6b3e7947ee9ff1272c1c59e87289","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rvsosn/file-sorter/pulls/2/commits","review_comments_url":"https://api.github.com/repos/rvsosn/file-sorter/pulls/2/comments","review_comment_url":"https://api.github.com/repos/rvsosn/file-sorter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rvsosn/file-sorter/issues/2/comments","statuses_url":"https://api.github.com/repos/rvsosn/file-sorter/statuses/870ae90da9be88572edfb0cc081ba7a6fe73b6ce","head":{"label":"rvsosn:feature/copy","ref":"feature/copy","sha":"870ae90da9be88572edfb0cc081ba7a6fe73b6ce","user":{"login":"rvsosn","id":17113958,"node_id":"MDQ6VXNlcjE3MTEzOTU4","avatar_url":"https://avatars3.githubusercontent.com/u/17113958?v=4","gravatar_id":"","url":"https://api.github.com/users/rvsosn","html_url":"https://github.com/rvsosn","followers_url":"https://api.github.com/users/rvsosn/followers","following_url":"https://api.github.com/users/rvsosn/following{/other_user}","gists_url":"https://api.github.com/users/rvsosn/gists{/gist_id}","starred_url":"https://api.github.com/users/rvsosn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvsosn/subscriptions","organizations_url":"https://api.github.com/users/rvsosn/orgs","repos_url":"https://api.github.com/users/rvsosn/repos","events_url":"https://api.github.com/users/rvsosn/events{/privacy}","received_events_url":"https://api.github.com/users/rvsosn/received_events","type":"User","site_admin":false},"repo":{"id":192365053,"node_id":"MDEwOlJlcG9zaXRvcnkxOTIzNjUwNTM=","name":"file-sorter","full_name":"rvsosn/file-sorter","private":false,"owner":{"login":"rvsosn","id":17113958,"node_id":"MDQ6VXNlcjE3MTEzOTU4","avatar_url":"https://avatars3.githubusercontent.com/u/17113958?v=4","gravatar_id":"","url":"https://api.github.com/users/rvsosn","html_url":"https://github.com/rvsosn","followers_url":"https://api.github.com/users/rvsosn/followers","following_url":"https://api.github.com/users/rvsosn/following{/other_user}","gists_url":"https://api.github.com/users/rvsosn/gists{/gist_id}","starred_url":"https://api.github.com/users/rvsosn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvsosn/subscriptions","organizations_url":"https://api.github.com/users/rvsosn/orgs","repos_url":"https://api.github.com/users/rvsosn/repos","events_url":"https://api.github.com/users/rvsosn/events{/privacy}","received_events_url":"https://api.github.com/users/rvsosn/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rvsosn/file-sorter","description":null,"fork":false,"url":"https://api.github.com/repos/rvsosn/file-sorter","forks_url":"https://api.github.com/repos/rvsosn/file-sorter/forks","keys_url":"https://api.github.com/repos/rvsosn/file-sorter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rvsosn/file-sorter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rvsosn/file-sorter/teams","hooks_url":"https://api.github.com/repos/rvsosn/file-sorter/hooks","issue_events_url":"https://api.github.com/repos/rvsosn/file-sorter/issues/events{/number}","events_url":"https://api.github.com/repos/rvsosn/file-sorter/events","assignees_url":"https://api.github.com/repos/rvsosn/file-sorter/assignees{/user}","branches_url":"https://api.github.com/repos/rvsosn/file-sorter/branches{/branch}","tags_url":"https://api.github.com/repos/rvsosn/file-sorter/tags","blobs_url":"https://api.github.com/repos/rvsosn/file-sorter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rvsosn/file-sorter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rvsosn/file-sorter/git/refs{/sha}","trees_url":"https://api.github.com/repos/rvsosn/file-sorter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rvsosn/file-sorter/statuses/{sha}","languages_url":"https://api.github.com/repos/rvsosn/file-sorter/languages","stargazers_url":"https://api.github.com/repos/rvsosn/file-sorter/stargazers","contributors_url":"https://api.github.com/repos/rvsosn/file-sorter/contributors","subscribers_url":"https://api.github.com/repos/rvsosn/file-sorter/subscribers","subscription_url":"https://api.github.com/repos/rvsosn/file-sorter/subscription","commits_url":"https://api.github.com/repos/rvsosn/file-sorter/commits{/sha}","git_commits_url":"https://api.github.com/repos/rvsosn/file-sorter/git/commits{/sha}","comments_url":"https://api.github.com/repos/rvsosn/file-sorter/comments{/number}","issue_comment_url":"https://api.github.com/repos/rvsosn/file-sorter/issues/comments{/number}","contents_url":"https://api.github.com/repos/rvsosn/file-sorter/contents/{+path}","compare_url":"https://api.github.com/repos/rvsosn/file-sorter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rvsosn/file-sorter/merges","archive_url":"https://api.github.com/repos/rvsosn/file-sorter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rvsosn/file-sorter/downloads","issues_url":"https://api.github.com/repos/rvsosn/file-sorter/issues{/number}","pulls_url":"https://api.github.com/repos/rvsosn/file-sorter/pulls{/number}","milestones_url":"https://api.github.com/repos/rvsosn/file-sorter/milestones{/number}","notifications_url":"https://api.github.com/repos/rvsosn/file-sorter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rvsosn/file-sorter/labels{/name}","releases_url":"https://api.github.com/repos/rvsosn/file-sorter/releases{/id}","deployments_url":"https://api.github.com/repos/rvsosn/file-sorter/deployments","created_at":"2019-06-17T14:42:17Z","updated_at":"2019-06-17T14:42:20Z","pushed_at":"2019-06-19T11:01:02Z","git_url":"git://github.com/rvsosn/file-sorter.git","ssh_url":"git@github.com:rvsosn/file-sorter.git","clone_url":"https://github.com/rvsosn/file-sorter.git","svn_url":"https://github.com/rvsosn/file-sorter","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"rvsosn:master","ref":"master","sha":"eee12756ab2d1009f5d7c5047613dc0032c97e5f","user":{"login":"rvsosn","id":17113958,"node_id":"MDQ6VXNlcjE3MTEzOTU4","avatar_url":"https://avatars3.githubusercontent.com/u/17113958?v=4","gravatar_id":"","url":"https://api.github.com/users/rvsosn","html_url":"https://github.com/rvsosn","followers_url":"https://api.github.com/users/rvsosn/followers","following_url":"https://api.github.com/users/rvsosn/following{/other_user}","gists_url":"https://api.github.com/users/rvsosn/gists{/gist_id}","starred_url":"https://api.github.com/users/rvsosn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvsosn/subscriptions","organizations_url":"https://api.github.com/users/rvsosn/orgs","repos_url":"https://api.github.com/users/rvsosn/repos","events_url":"https://api.github.com/users/rvsosn/events{/privacy}","received_events_url":"https://api.github.com/users/rvsosn/received_events","type":"User","site_admin":false},"repo":{"id":192365053,"node_id":"MDEwOlJlcG9zaXRvcnkxOTIzNjUwNTM=","name":"file-sorter","full_name":"rvsosn/file-sorter","private":false,"owner":{"login":"rvsosn","id":17113958,"node_id":"MDQ6VXNlcjE3MTEzOTU4","avatar_url":"https://avatars3.githubusercontent.com/u/17113958?v=4","gravatar_id":"","url":"https://api.github.com/users/rvsosn","html_url":"https://github.com/rvsosn","followers_url":"https://api.github.com/users/rvsosn/followers","following_url":"https://api.github.com/users/rvsosn/following{/other_user}","gists_url":"https://api.github.com/users/rvsosn/gists{/gist_id}","starred_url":"https://api.github.com/users/rvsosn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvsosn/subscriptions","organizations_url":"https://api.github.com/users/rvsosn/orgs","repos_url":"https://api.github.com/users/rvsosn/repos","events_url":"https://api.github.com/users/rvsosn/events{/privacy}","received_events_url":"https://api.github.com/users/rvsosn/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rvsosn/file-sorter","description":null,"fork":false,"url":"https://api.github.com/repos/rvsosn/file-sorter","forks_url":"https://api.github.com/repos/rvsosn/file-sorter/forks","keys_url":"https://api.github.com/repos/rvsosn/file-sorter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rvsosn/file-sorter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rvsosn/file-sorter/teams","hooks_url":"https://api.github.com/repos/rvsosn/file-sorter/hooks","issue_events_url":"https://api.github.com/repos/rvsosn/file-sorter/issues/events{/number}","events_url":"https://api.github.com/repos/rvsosn/file-sorter/events","assignees_url":"https://api.github.com/repos/rvsosn/file-sorter/assignees{/user}","branches_url":"https://api.github.com/repos/rvsosn/file-sorter/branches{/branch}","tags_url":"https://api.github.com/repos/rvsosn/file-sorter/tags","blobs_url":"https://api.github.com/repos/rvsosn/file-sorter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rvsosn/file-sorter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rvsosn/file-sorter/git/refs{/sha}","trees_url":"https://api.github.com/repos/rvsosn/file-sorter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rvsosn/file-sorter/statuses/{sha}","languages_url":"https://api.github.com/repos/rvsosn/file-sorter/languages","stargazers_url":"https://api.github.com/repos/rvsosn/file-sorter/stargazers","contributors_url":"https://api.github.com/repos/rvsosn/file-sorter/contributors","subscribers_url":"https://api.github.com/repos/rvsosn/file-sorter/subscribers","subscription_url":"https://api.github.com/repos/rvsosn/file-sorter/subscription","commits_url":"https://api.github.com/repos/rvsosn/file-sorter/commits{/sha}","git_commits_url":"https://api.github.com/repos/rvsosn/file-sorter/git/commits{/sha}","comments_url":"https://api.github.com/repos/rvsosn/file-sorter/comments{/number}","issue_comment_url":"https://api.github.com/repos/rvsosn/file-sorter/issues/comments{/number}","contents_url":"https://api.github.com/repos/rvsosn/file-sorter/contents/{+path}","compare_url":"https://api.github.com/repos/rvsosn/file-sorter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rvsosn/file-sorter/merges","archive_url":"https://api.github.com/repos/rvsosn/file-sorter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rvsosn/file-sorter/downloads","issues_url":"https://api.github.com/repos/rvsosn/file-sorter/issues{/number}","pulls_url":"https://api.github.com/repos/rvsosn/file-sorter/pulls{/number}","milestones_url":"https://api.github.com/repos/rvsosn/file-sorter/milestones{/number}","notifications_url":"https://api.github.com/repos/rvsosn/file-sorter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rvsosn/file-sorter/labels{/name}","releases_url":"https://api.github.com/repos/rvsosn/file-sorter/releases{/id}","deployments_url":"https://api.github.com/repos/rvsosn/file-sorter/deployments","created_at":"2019-06-17T14:42:17Z","updated_at":"2019-06-17T14:42:20Z","pushed_at":"2019-06-19T11:01:02Z","git_url":"git://github.com/rvsosn/file-sorter.git","ssh_url":"git@github.com:rvsosn/file-sorter.git","clone_url":"https://github.com/rvsosn/file-sorter.git","svn_url":"https://github.com/rvsosn/file-sorter","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rvsosn/file-sorter/pulls/2"},"html":{"href":"https://github.com/rvsosn/file-sorter/pull/2"},"issue":{"href":"https://api.github.com/repos/rvsosn/file-sorter/issues/2"},"comments":{"href":"https://api.github.com/repos/rvsosn/file-sorter/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/rvsosn/file-sorter/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/rvsosn/file-sorter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rvsosn/file-sorter/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/rvsosn/file-sorter/statuses/870ae90da9be88572edfb0cc081ba7a6fe73b6ce"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"myalinivan"}}