private void FRM_Main_Load(object sender, EventArgs e) { m_GraphHandler = new GraphHandler(PAN_Canvas); m_CurrentCodecToolStripMenuItem = InstallCodec(new DefaultCodecConfig(), CheckState.Checked); m_GraphCodec = m_CurrentCodecToolStripMenuItem.GetCodec(); }
private void TSM_CodecSelect_Click(object sender, EventArgs e) { CodecToolStripMenuItem senderItem = sender as CodecToolStripMenuItem; if (senderItem != null) { m_CurrentCodecToolStripMenuItem.CheckState = CheckState.Unchecked; m_CurrentCodecToolStripMenuItem = senderItem; m_CurrentCodecToolStripMenuItem.CheckState = CheckState.Checked; m_GraphCodec = m_CurrentCodecToolStripMenuItem.GetCodec(); } }