示例#1
0
        private void CreateLibrary(object sender, EventArgs e)
        {
            LibraryMaintenance dlg = new LibraryMaintenance();

            dlg.ShowDialog();
            LoadLibraryList();
            EnableButtons(sender, e);
        }
示例#2
0
        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);
        }