From 0eefd695d52cc9bb8472c8007a4eca5d1f33ccd5 Mon Sep 17 00:00:00 2001
From: Daniel Brunner <0xFEEDC0DE64@gmail.com>
Date: Sun, 9 Jul 2017 14:27:38 +0200
Subject: [PATCH] Added needed libraries and MainForm
---
.gitmodules | 9 ++
ListViewPrinter | 1 +
MusicOrganizer.sln | 18 ++++
MusicOrganizer/MainForm.Designer.cs | 46 ++++++++++
MusicOrganizer/MainForm.cs | 20 +++++
MusicOrganizer/MainForm.resx | 120 +++++++++++++++++++++++++++
MusicOrganizer/MusicOrganizer.csproj | 27 ++++++
MusicOrganizer/Program.cs | 14 ++--
ObjectListView | 1 +
SparkleLibrary | 1 +
10 files changed, 248 insertions(+), 9 deletions(-)
create mode 100644 .gitmodules
create mode 160000 ListViewPrinter
create mode 100644 MusicOrganizer/MainForm.Designer.cs
create mode 100644 MusicOrganizer/MainForm.cs
create mode 100644 MusicOrganizer/MainForm.resx
create mode 160000 ObjectListView
create mode 160000 SparkleLibrary
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..0a3d7dd
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,9 @@
+[submodule "ListViewPrinter"]
+ path = ListViewPrinter
+ url = https://github.com/0xFEEDC0DE64/ListViewPrinter.git
+[submodule "ObjectListView"]
+ path = ObjectListView
+ url = https://github.com/0xFEEDC0DE64/ObjectListView.git
+[submodule "SparkleLibrary"]
+ path = SparkleLibrary
+ url = https://github.com/0xFEEDC0DE64/SparkleLibrary.git
diff --git a/ListViewPrinter b/ListViewPrinter
new file mode 160000
index 0000000..c607d64
--- /dev/null
+++ b/ListViewPrinter
@@ -0,0 +1 @@
+Subproject commit c607d641dc174fa4d4f9d38bd3e1f530f1cce56b
diff --git a/MusicOrganizer.sln b/MusicOrganizer.sln
index 40de795..ee443d3 100644
--- a/MusicOrganizer.sln
+++ b/MusicOrganizer.sln
@@ -5,6 +5,12 @@ VisualStudioVersion = 15.0.26403.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MusicOrganizer", "MusicOrganizer\MusicOrganizer.csproj", "{FCCFFEFE-15D8-47CF-8345-1B901C7B105A}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ObjectListView2012", "ObjectListView\ObjectListView2012.csproj", "{18FEDA0C-D147-4286-B39A-01204808106A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ListViewPrinter2012", "ListViewPrinter\ListViewPrinter2012.csproj", "{E73A10BD-2B5A-4BAC-897F-3A58CFC07631}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SparkleLibrary2012", "SparkleLibrary\SparkleLibrary2012.csproj", "{D63F9786-B608-4085-AF08-D909448B0426}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +21,18 @@ Global
{FCCFFEFE-15D8-47CF-8345-1B901C7B105A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FCCFFEFE-15D8-47CF-8345-1B901C7B105A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FCCFFEFE-15D8-47CF-8345-1B901C7B105A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {18FEDA0C-D147-4286-B39A-01204808106A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {18FEDA0C-D147-4286-B39A-01204808106A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {18FEDA0C-D147-4286-B39A-01204808106A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {18FEDA0C-D147-4286-B39A-01204808106A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E73A10BD-2B5A-4BAC-897F-3A58CFC07631}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E73A10BD-2B5A-4BAC-897F-3A58CFC07631}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E73A10BD-2B5A-4BAC-897F-3A58CFC07631}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E73A10BD-2B5A-4BAC-897F-3A58CFC07631}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D63F9786-B608-4085-AF08-D909448B0426}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D63F9786-B608-4085-AF08-D909448B0426}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D63F9786-B608-4085-AF08-D909448B0426}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D63F9786-B608-4085-AF08-D909448B0426}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/MusicOrganizer/MainForm.Designer.cs b/MusicOrganizer/MainForm.Designer.cs
new file mode 100644
index 0000000..5311166
--- /dev/null
+++ b/MusicOrganizer/MainForm.Designer.cs
@@ -0,0 +1,46 @@
+namespace MusicOrganizer
+{
+ partial class MainForm
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.SuspendLayout();
+ //
+ // MainForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(618, 424);
+ this.Name = "MainForm";
+ this.Text = "MainForm";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/MusicOrganizer/MainForm.cs b/MusicOrganizer/MainForm.cs
new file mode 100644
index 0000000..8e22b12
--- /dev/null
+++ b/MusicOrganizer/MainForm.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace MusicOrganizer
+{
+ public partial class MainForm : Form
+ {
+ public MainForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/MusicOrganizer/MainForm.resx b/MusicOrganizer/MainForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/MusicOrganizer/MainForm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/MusicOrganizer/MusicOrganizer.csproj b/MusicOrganizer/MusicOrganizer.csproj
index 21b5e39..2da38df 100644
--- a/MusicOrganizer/MusicOrganizer.csproj
+++ b/MusicOrganizer/MusicOrganizer.csproj
@@ -37,6 +37,8 @@
+
+
@@ -48,6 +50,12 @@
+
+ Form
+
+
+ MainForm.cs
+
@@ -55,5 +63,24 @@
+
+
+ {e73a10bd-2b5a-4bac-897f-3a58cfc07631}
+ ListViewPrinter2012
+
+
+ {18feda0c-d147-4286-b39a-01204808106a}
+ ObjectListView2012
+
+
+ {d63f9786-b608-4085-af08-d909448b0426}
+ SparkleLibrary2012
+
+
+
+
+ MainForm.cs
+
+
\ No newline at end of file
diff --git a/MusicOrganizer/Program.cs b/MusicOrganizer/Program.cs
index f0b8634..79e85f5 100644
--- a/MusicOrganizer/Program.cs
+++ b/MusicOrganizer/Program.cs
@@ -1,20 +1,16 @@
using System;
-using System.IO;
+using System.Windows.Forms;
namespace MusicOrganizer
{
internal static class Program
{
+ [STAThread]
private static void Main(string[] args)
{
- var paths = Directory.GetFiles(@"C:\Users\Daniel\Music\Bollwerk", "*.mp3", SearchOption.AllDirectories);
- foreach (var path in paths)
- {
- var file = TagLib.File.Create(path);
- Console.WriteLine("{0}BPM: {1}", file.Tag.BeatsPerMinute, Path.GetFileName(path));
- }
-
- Console.ReadLine();
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new MainForm());
}
}
}
diff --git a/ObjectListView b/ObjectListView
new file mode 160000
index 0000000..7c97b9e
--- /dev/null
+++ b/ObjectListView
@@ -0,0 +1 @@
+Subproject commit 7c97b9e539c6157c2f47e09c0a6de167986fafec
diff --git a/SparkleLibrary b/SparkleLibrary
new file mode 160000
index 0000000..31f6f92
--- /dev/null
+++ b/SparkleLibrary
@@ -0,0 +1 @@
+Subproject commit 31f6f925064b9b9a3e846e6aabe026b9bc210574