Exemplo n.º 1
0
        protected virtual void OnLibrarySelected(LibrarySelectedEventArgs e)
        {
            var lastSubItem = LibraryList.SelectedItems[0].SubItems.Count - 1;

            e.LibraryId = int.Parse(LibraryList.SelectedItems[0].SubItems[lastSubItem].Text);
            LibrarySelected(this, e);
        }
Exemplo n.º 2
0
        private void OpenLibrary(object sender, EventArgs e)
        {
            LibrarySelectedEventArgs s = new LibrarySelectedEventArgs();
            var lastSubItem            = LibraryList.SelectedItems[0].SubItems.Count - 1;
            var id = int.Parse(LibraryList.SelectedItems[0].SubItems[lastSubItem].Text);

            s.Mode      = (int)SongSelect.Modes.Open;
            s.LibraryId = id;
            //s.Filename = SongLibrary.Libraries.Where(T => T.Id == id).FirstOrDefault().Filepath;
            OnLibrarySelected(s);
            Close();
        }