/// <summary> /// OSD信息显示. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void OSDShow_MenuItem_Click(object sender, EventArgs e) { if (channelID <= 0) { return; } var checkState = (sender as ToolStripMenuItem).CheckState; if (checkState == CheckState.Unchecked) { int ret = PlayerSdk.EasyPlayer_ShowStatisticalInfo(channelID, 1); (sender as ToolStripMenuItem).CheckState = CheckState.Checked; } if (checkState == CheckState.Checked) { int ret = PlayerSdk.EasyPlayer_ShowStatisticalInfo(channelID, 0); (sender as ToolStripMenuItem).CheckState = CheckState.Unchecked; } }