-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm1.cs
69 lines (56 loc) · 2.04 KB
/
Form1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using DiscogsNet.User;
using MusicFactory;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Simile
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnGo_Click(object sender, EventArgs e)
{
GlobalUserConfig config = new GlobalUserConfig();
GlobalUserConfig.ParentFolderPath = txtPath.Text.Trim();
// DirectoryProcess dprocess = new DirectoryProcess();
ProcessMusicFiles processMFiles = new ProcessMusicFiles();
processMFiles.Process();
//TruncateSymbolFactory symbolFactory = new TruncateSymbolFactory();
//symbolFactory.Process();
// TagNameForFileName obj = new TagNameForFileName();
// obj.Process();
//TruncasteNumber obj = new TruncasteNumber();
//obj.Process();
}
private void btnFolderName_Click(object sender, EventArgs e)
{
GlobalUserConfig config = new GlobalUserConfig();
GlobalUserConfig.ParentFolderPath = txtPath.Text.Trim();
List<DirectoryInfo> dir = null;
DirectoryProcess dirProcess = new DirectoryProcess();
dir = dirProcess.GetDirectories();
List<string> fName = new List<string>();
StringBuilder strBuilder = new StringBuilder();
foreach (var folderName in dir)
{
strBuilder.Append("insert into MusicBand (FolderName) values ('");
strBuilder.Append(folderName.Name.Trim());
strBuilder.Append("');");
strBuilder.AppendLine("");
}
txtMusicFolderName.Text = strBuilder.ToString();
//listBox1.DataSource = fName;
}
}
}