private void button1_Click(object sender, EventArgs e) { PlayMusic p = new PlayMusic("告白气球"); p.DelPlayOver += P_DelPlayOver; //注册事件 p.PlaySong(); }