void FillOverview() { JukeboxColumn col = 0; JukeboxRow row = 0; int listIndex = 0; ListBox actListBox = m_OverwiewListBoxList[listIndex]; try { for (col = JukeboxColumn.JukeboxColumnA; col <= JukeboxColumn.JukeboxColumnV; ++col) { actListBox = m_OverwiewListBoxList[listIndex]; for (row = JukeboxRow.JukeboxRow1; row <= JukeboxRow.JukeboxRow8; ++row) { JukeboxSlot actSlot = new JukeboxSlot(col, row); SmallSongItem smallItem = new SmallSongItem(); smallItem.Load(actSlot); actListBox.Items.Add(smallItem); } ++listIndex; } } catch { MessageBox.Show("Error filling overwiew on Position: " + col.ToString() + " " + row.ToString()); } }
public SmallSongItem() { InitializeComponent(); m_Slot = new JukeboxSlot(); playButton.Click += playButton_Click; Update(); }
public void Load(JukeboxSlot slot) { m_Slot = slot; Update(); }