From 2a2c550690c98882725dbdfa97d8ab54520dc8c6 Mon Sep 17 00:00:00 2001 From: Roshel-Tec <79127292+Roshel-Tec@users.noreply.github.com> Date: Sun, 24 Oct 2021 21:17:15 +0200 Subject: [PATCH] Create MusicPlayer.cs --- MusicPlayer.cs | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 MusicPlayer.cs diff --git a/MusicPlayer.cs b/MusicPlayer.cs new file mode 100644 index 0000000..9608d73 --- /dev/null +++ b/MusicPlayer.cs @@ -0,0 +1,53 @@ +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 MusicPlayer +{ + public partial class MusicPlayerApp : Form + { + public MusicPlayerApp() + { + InitializeComponent(); + } + + String[] paths, files; + + private void btn_Click(object sender, EventArgs e) + { + OpenFileDialog ofd = new OpenFileDialog(); + ofd.Multiselect = true; + if(ofd.ShowDialog()==System.Windows.Forms.DialogResult.OK) + { + files = ofd.SafeFileNames; + paths = ofd.FileNames; + + for (int i = 0; i