Exemplo n.º 1
0
        public void SetDetailInfo(List <TrackInfo> trackInfos, Image cover, bool open, MyMixContainer callFm)
        {
            track_dataGridView.Rows.Clear();
            this.trackInfos = trackInfos;
            //create template row
            track_dataGridView.Rows.Add();
            track_dataGridView.Rows[0].Visible = false;
            rows.Clear();
            foreach (TrackInfo track in trackInfos)
            {
                DataGridViewRow tempRow = (DataGridViewRow)track_dataGridView.Rows[0].Clone();
                tempRow.Visible        = true;
                tempRow.Tag            = track;
                tempRow.Cells[0].Value = track.Title;
                tempRow.Cells[1].Value = track.Artist;
                tempRow.Cells[2].Value = track.Time;
                tempRow.Cells[3].Value = Properties.Resources.add;
                if (track.IsLoved)
                {
                    tempRow.Cells[4].Value = Properties.Resources.liked;
                }
                else
                {
                    tempRow.Cells[4].Value = Properties.Resources.like;
                }
                rows.Add(tempRow);
            }

            track_dataGridView.Rows.AddRange(rows.ToArray());
            cover_pictureBox.Image = cover;
            mixTitle_label.Text    = callFm.playlistName_label.Text;
            mixArtist_label.Text   = callFm.artist_label.Text;


            if (open)
            {
                myMix.openChildForm(this);
            }
            //remove template row
            track_dataGridView.Rows.Remove(track_dataGridView.Rows[0]);
        }
Exemplo n.º 2
0
 private void opacity_panel_MouseClick(object sender, MouseEventArgs e)
 {
     mixForm.openChildForm(mixForm.mixDetail);
     loadMixDetailContent(mixID);
 }