diff --git a/.vs/SoundCloud/v16/.suo b/.vs/SoundCloud/v16/.suo index cf56a1e..cea8257 100644 Binary files a/.vs/SoundCloud/v16/.suo and b/.vs/SoundCloud/v16/.suo differ diff --git a/SoundCloud/FrmMain.Designer.cs b/SoundCloud/FrmMain.Designer.cs index 46527ae..39fd1d0 100644 --- a/SoundCloud/FrmMain.Designer.cs +++ b/SoundCloud/FrmMain.Designer.cs @@ -34,11 +34,11 @@ private void InitializeComponent() Bunifu.UI.WinForms.BunifuTextBox.StateProperties stateProperties2 = new Bunifu.UI.WinForms.BunifuTextBox.StateProperties(); Bunifu.UI.WinForms.BunifuTextBox.StateProperties stateProperties3 = new Bunifu.UI.WinForms.BunifuTextBox.StateProperties(); Bunifu.UI.WinForms.BunifuTextBox.StateProperties stateProperties4 = new Bunifu.UI.WinForms.BunifuTextBox.StateProperties(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain)); this.bunifuFormDock1 = new Bunifu.UI.WinForms.BunifuFormDock(); this.pnHeader = new System.Windows.Forms.Panel(); this.txtBusca = new Bunifu.UI.WinForms.BunifuTextBox(); @@ -65,14 +65,14 @@ private void InitializeComponent() this.label3 = new System.Windows.Forms.Label(); this.bunifuSeparator1 = new Bunifu.UI.WinForms.BunifuSeparator(); this.grid = new System.Windows.Forms.DataGridView(); + this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); + this.timer1 = new System.Windows.Forms.Timer(this.components); + this.PlayPause = new Bunifu.UI.WinForms.BunifuToolTip(this.components); this.Column1 = new System.Windows.Forms.DataGridViewImageColumn(); this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); - this.timer1 = new System.Windows.Forms.Timer(this.components); - this.PlayPause = new Bunifu.UI.WinForms.BunifuToolTip(this.components); this.pnHeader.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.panel1.SuspendLayout(); @@ -135,7 +135,7 @@ private void InitializeComponent() this.pnHeader.Dock = System.Windows.Forms.DockStyle.Top; this.pnHeader.Location = new System.Drawing.Point(0, 0); this.pnHeader.Name = "pnHeader"; - this.pnHeader.Size = new System.Drawing.Size(953, 71); + this.pnHeader.Size = new System.Drawing.Size(954, 71); this.pnHeader.TabIndex = 2; this.PlayPause.SetToolTip(this.pnHeader, ""); this.PlayPause.SetToolTipIcon(this.pnHeader, null); @@ -234,7 +234,7 @@ private void InitializeComponent() this.btnMin.Name = "btnMin"; this.btnMin.Shape = Bunifu.UI.WinForms.BunifuShapes.Shapes.Line; this.btnMin.Sides = 5; - this.btnMin.Size = new System.Drawing.Size(18, 10); + this.btnMin.Size = new System.Drawing.Size(19, 10); this.btnMin.TabIndex = 1; this.btnMin.Text = "bunifuShapes1"; this.PlayPause.SetToolTip(this.btnMin, ""); @@ -292,7 +292,7 @@ private void InitializeComponent() this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 71); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(953, 216); + this.panel1.Size = new System.Drawing.Size(954, 216); this.panel1.TabIndex = 3; this.PlayPause.SetToolTip(this.panel1, ""); this.PlayPause.SetToolTipIcon(this.panel1, null); @@ -743,13 +743,14 @@ private void InitializeComponent() // grid // this.grid.AllowDrop = true; + this.grid.AllowUserToAddRows = false; this.grid.AllowUserToDeleteRows = false; this.grid.AllowUserToResizeRows = false; dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.AppWorkspace; - dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Yellow; - dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.Red; - dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(230)))), ((int)(((byte)(223))))); + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(230)))), ((int)(((byte)(223))))); + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.Black; this.grid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.grid.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.grid.BorderStyle = System.Windows.Forms.BorderStyle.None; @@ -773,9 +774,9 @@ private void InitializeComponent() dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); - dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.Red; - dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(176)))), ((int)(((byte)(153)))), ((int)(((byte)(123))))); + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(236)))), ((int)(((byte)(230)))), ((int)(((byte)(223))))); + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.Black; dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.grid.DefaultCellStyle = dataGridViewCellStyle3; this.grid.EnableHeadersVisualStyles = false; @@ -802,37 +803,11 @@ private void InitializeComponent() this.grid.DragDrop += new System.Windows.Forms.DragEventHandler(this.dataGridView1_DragDrop); this.grid.DragEnter += new System.Windows.Forms.DragEventHandler(this.dataGridView1_DragEnter); // - // Column1 - // - this.Column1.FillWeight = 20F; - this.Column1.HeaderText = ""; - this.Column1.Name = "Column1"; - this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False; - // - // Column2 - // - this.Column2.HeaderText = "Música"; - this.Column2.Name = "Column2"; - // - // Column3 - // - this.Column3.HeaderText = "Gênero"; - this.Column3.Name = "Column3"; - // - // Column4 - // - this.Column4.HeaderText = "Artista"; - this.Column4.Name = "Column4"; - // - // Column5 - // - this.Column5.HeaderText = "Duração"; - this.Column5.Name = "Column5"; - // // openFileDialog1 // this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.Filter = "Audio Files|*.mp3"; + this.openFileDialog1.Multiselect = true; this.openFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk); // // timer1 @@ -876,12 +851,44 @@ private void InitializeComponent() this.PlayPause.ToolTipPosition = new System.Drawing.Point(0, 0); this.PlayPause.ToolTipTitle = null; // + // Column1 + // + this.Column1.FillWeight = 20F; + this.Column1.HeaderText = ""; + this.Column1.Image = ((System.Drawing.Image)(resources.GetObject("Column1.Image"))); + this.Column1.Name = "Column1"; + this.Column1.ReadOnly = true; + this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False; + // + // Column2 + // + this.Column2.HeaderText = "Música"; + this.Column2.Name = "Column2"; + this.Column2.ReadOnly = true; + // + // Column3 + // + this.Column3.HeaderText = "Gênero"; + this.Column3.Name = "Column3"; + this.Column3.ReadOnly = true; + // + // Column4 + // + this.Column4.HeaderText = "Artista"; + this.Column4.Name = "Column4"; + this.Column4.ReadOnly = true; + // + // Column5 + // + this.Column5.HeaderText = "Duração"; + this.Column5.Name = "Column5"; + // // FrmMain // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.ButtonHighlight; - this.ClientSize = new System.Drawing.Size(953, 597); + this.ClientSize = new System.Drawing.Size(954, 591); this.Controls.Add(this.grid); this.Controls.Add(this.bunifuSeparator1); this.Controls.Add(this.label3); @@ -926,11 +933,6 @@ private void InitializeComponent() private Bunifu.UI.WinForms.BunifuSeparator bunifuSeparator1; private System.Windows.Forms.Label label3; private System.Windows.Forms.DataGridView grid; - private System.Windows.Forms.DataGridViewImageColumn Column1; - private System.Windows.Forms.DataGridViewTextBoxColumn Column2; - private System.Windows.Forms.DataGridViewTextBoxColumn Column3; - private System.Windows.Forms.DataGridViewTextBoxColumn Column4; - private System.Windows.Forms.DataGridViewTextBoxColumn Column5; private System.Windows.Forms.PictureBox picWv; private Bunifu.UI.WinForms.BunifuImageButton btnPlayPause; private System.Windows.Forms.PictureBox iconPause; @@ -944,6 +946,11 @@ private void InitializeComponent() private System.Windows.Forms.Timer timer1; private Bunifu.UI.WinForms.BunifuHSlider vol; private Bunifu.UI.WinForms.BunifuToolTip PlayPause; + private System.Windows.Forms.DataGridViewImageColumn Column1; + private System.Windows.Forms.DataGridViewTextBoxColumn Column2; + private System.Windows.Forms.DataGridViewTextBoxColumn Column3; + private System.Windows.Forms.DataGridViewTextBoxColumn Column4; + private System.Windows.Forms.DataGridViewTextBoxColumn Column5; } } diff --git a/SoundCloud/FrmMain.cs b/SoundCloud/FrmMain.cs index 6cde4a5..f685185 100644 --- a/SoundCloud/FrmMain.cs +++ b/SoundCloud/FrmMain.cs @@ -19,6 +19,7 @@ public FrmMain() { InitializeComponent(); grid.Columns[0].DefaultCellStyle.NullValue = null; + grid.Rows.Clear(); } private void btnMin_Click(object sender, EventArgs e) @@ -137,13 +138,13 @@ private void btnPlayPause_Click(object sender, EventArgs e) { if (wavePlayer.PlaybackState == PlaybackState.Playing) { - wavePlayer.Pause(); btnPlayPause.Image = iconPlay.Image; + wavePlayer.Pause(); } else { - wavePlayer.Play(); btnPlayPause.Image = iconPause.Image; + wavePlayer.Play(); } } diff --git a/SoundCloud/FrmMain.resx b/SoundCloud/FrmMain.resx index fa7fea8..38aba3e 100644 --- a/SoundCloud/FrmMain.resx +++ b/SoundCloud/FrmMain.resx @@ -123,6 +123,15 @@ True + + + + iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAKBJREFUSEvt + klsKwjAQRbOR+t0l5QHZoFXclyjULsDOwBWGMFq45qfQA+fvchJIwkFXSinvX2LG40WtmPF4UStmPF7U + ihmPF7VixtMt9I3jgE32dUCt9SSxi3iHV42rmPAg/vwEWzHjkYje3I2rmPFI5NVGrZjxSGRpo8YZMx6J + 3Jqo9YwZT0pplJD3yI8Y44DZf5hvqu8x55ynbvEdEcIKN4Xg+EpUznIAAAAASUVORK5CYII= + + True @@ -138,7 +147,6 @@ 393, 17 - iVBORw0KGgoAAAANSUhEUgAAASwAAAARCAYAAABn7pGyAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 diff --git a/SoundCloud/bin/Debug/SoundCloud.exe b/SoundCloud/bin/Debug/SoundCloud.exe index dfc2798..65b80c9 100644 Binary files a/SoundCloud/bin/Debug/SoundCloud.exe and b/SoundCloud/bin/Debug/SoundCloud.exe differ diff --git a/SoundCloud/bin/Debug/SoundCloud.pdb b/SoundCloud/bin/Debug/SoundCloud.pdb index d485f47..904ca76 100644 Binary files a/SoundCloud/bin/Debug/SoundCloud.pdb and b/SoundCloud/bin/Debug/SoundCloud.pdb differ diff --git a/SoundCloud/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/SoundCloud/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 754f4e1..0b21f65 100644 Binary files a/SoundCloud/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/SoundCloud/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/SoundCloud/obj/Debug/SoundCloud.FrmMain.resources b/SoundCloud/obj/Debug/SoundCloud.FrmMain.resources index ea1c473..51937f4 100644 Binary files a/SoundCloud/obj/Debug/SoundCloud.FrmMain.resources and b/SoundCloud/obj/Debug/SoundCloud.FrmMain.resources differ diff --git a/SoundCloud/obj/Debug/SoundCloud.csproj.GenerateResource.cache b/SoundCloud/obj/Debug/SoundCloud.csproj.GenerateResource.cache index 166d59e..186cc99 100644 Binary files a/SoundCloud/obj/Debug/SoundCloud.csproj.GenerateResource.cache and b/SoundCloud/obj/Debug/SoundCloud.csproj.GenerateResource.cache differ diff --git a/SoundCloud/obj/Debug/SoundCloud.exe b/SoundCloud/obj/Debug/SoundCloud.exe index dfc2798..65b80c9 100644 Binary files a/SoundCloud/obj/Debug/SoundCloud.exe and b/SoundCloud/obj/Debug/SoundCloud.exe differ diff --git a/SoundCloud/obj/Debug/SoundCloud.pdb b/SoundCloud/obj/Debug/SoundCloud.pdb index d485f47..904ca76 100644 Binary files a/SoundCloud/obj/Debug/SoundCloud.pdb and b/SoundCloud/obj/Debug/SoundCloud.pdb differ