private void CreateLibrary(object sender, EventArgs e) { LibraryMaintenance dlg = new LibraryMaintenance(); dlg.ShowDialog(); LoadLibraryList(); EnableButtons(sender, e); }
private void EditLibrary(object sender, EventArgs e) { var lastSubItem = LibraryList.SelectedItems[0].SubItems.Count - 1; var LibraryId = int.Parse(LibraryList.SelectedItems[0].SubItems[lastSubItem].Text); LibraryMaintenance dlg = new LibraryMaintenance(LibraryId, SongSelect.Modes.Edit); dlg.ShowDialog(); LoadLibraryList(); EnableButtons(sender, e); }