private void buttonDetect_Click(object sender, EventArgs e) { if (m_pKey != null) { object pFrame; string strConfig = "type='" + comboBoxDetectType.Text + "' max_keys='" + numericKeys.Value.ToString() + "'" + " show_blocks=" + (checkBoxShowBlocks.Checked ? "true" : "false"); m_pKey.KeyDetect(strConfig, out pFrame); UpdatePicture(pFrame); UpdateKey(); } }