void ucm_DeleteClosed(object sender, EventArgs e) { if (ucmDel.DialogResult.Value) { MusicInfo mi = lbLocalMusicList.SelectedItem as MusicInfo; CommHelper.DeleteLocalSignAndMusic(mi); ucmDel.Show("删除成功!"); StopRelaPty(true); ReloadLocalMusicList(); ucmDel.Closed -= new EventHandler(ucm_DeleteClosed); } this.UpdateLayout(); }