private void ViewRtsp_FormClosing(object sender, FormClosingEventArgs e) { //MessageBox.Show("界面即将关闭"); if (screenmonitor != null) { screenmonitor.stopMonitorOrder_A(ip, port); } if (this.player != null) { player.dispose(); } }