private void UpdataStatus(View.ucSinglePlayWnd wnd) { if (InvokeRequired) { this.Invoke(new Action <View.ucSinglePlayWnd>(UpdataStatus), wnd); } else { switch (wnd.VideoStatus) { case E_VDA_PLAY_STATUS.E_PLAY_STATUS_FINISH: case E_VDA_PLAY_STATUS.E_PLAY_STATUS_FAILED: wnd.StopPlayBack(); break; default: break; } labelX3.Text = wnd.VideoStatusString; } }
private void buttonX3_Click(object sender, EventArgs e) { currWnd.StopPlayBack(); }