Exemple #1
0
        protected virtual void OnSetlistSelected(SetlistSelectedEventArgs e)
        {
            var lastSubItem = SetlistList.SelectedItems[0].SubItems.Count - 1;

            e.SetlistId = int.Parse(SetlistList.SelectedItems[0].SubItems[lastSubItem].Text);
            SetlistSelected(this, e);
        }
Exemple #2
0
        private void OpenSetlist(object sender, EventArgs e)
        {
            SetlistSelectedEventArgs s = new SetlistSelectedEventArgs();
            var lastSubItem            = SetlistList.SelectedItems[0].SubItems.Count - 1;
            var id = int.Parse(SetlistList.SelectedItems[0].SubItems[lastSubItem].Text);

            s.Mode      = (int)SongSelect.Modes.Open;
            s.SetlistId = id;
            OnSetlistSelected(s);
            Close();
        }