Show timestamp. Play selected song with play button
This commit is contained in:
@@ -36,15 +36,7 @@ namespace MusicPlayer
|
|||||||
|
|
||||||
private void PlayButton_Click(object sender, EventArgs e)
|
private void PlayButton_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (testsong == null)
|
SongsTableView_CellDoubleClick(sender, new DataGridViewCellEventArgs(0, 0));
|
||||||
testsong = new Song("917", "Test", "Test", "Test", main.api);
|
|
||||||
|
|
||||||
main.audio.Play(testsong);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SongsTableView_SelectionChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
DataGridViewSelectedRowCollection col = SongsTableView.SelectedRows;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PauseButton_Click(object sender, EventArgs e)
|
private void PauseButton_Click(object sender, EventArgs e)
|
||||||
@@ -63,6 +55,8 @@ namespace MusicPlayer
|
|||||||
BufferBar.Value = main.audio.Buffered;
|
BufferBar.Value = main.audio.Buffered;
|
||||||
PositionBar.Value = main.audio.Position;
|
PositionBar.Value = main.audio.Position;
|
||||||
PositionTrackBar.Value = main.audio.Position;
|
PositionTrackBar.Value = main.audio.Position;
|
||||||
|
LabelCurrentTime.Text = main.audio.CurrentTime;
|
||||||
|
LabelTotalTime.Text = main.audio.TotalTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void GenreListBox_SelectedIndexChanged(object sender, EventArgs e)
|
private void GenreListBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user