void ucm_Closed(object sender, EventArgs e) { if (ucmSave.DialogResult.Value) { IsolatedStorageFile isf = CommHelper.currentISF; CommHelper.CheckDiskCapcity(); if (!isf.DirectoryExists("Musics")) { isf.CreateDirectory("Musics"); } IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(string.Format("Musics/{0}_Sign.sgn", musicFile.Name), FileMode.Create, isf); IsolatedStorageFileStream realisfs = new IsolatedStorageFileStream(string.Format("Musics/{0}", musicFile.Name), FileMode.Create, isf); WriterMusicSignInfo(isfs, System.IO.Path.GetFileNameWithoutExtension(musicFile.Name)); WriterRealMusic(realisfs); isfs.Close(); realisfs.Close(); ucmSave.Show("保存?", "保存成功!"); listSigns.Clear(); StopRelaPty(true); ucmSave.Closed -= new EventHandler(ucm_Closed); ReloadLocalMusicList(); this.UpdateLayout(); } }