private void BUTTON_GET_MARK_BEAT_COUNT_Click(object sender, EventArgs e) { string name = ""; m_samlight.ScGetIDStringData(( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlStringDataIdGetToplevelEntity, Convert.ToInt32(EDIT_ID.Text, CultureInfo.InvariantCulture), ref name); m_samlight.ScSetIDStringData(( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlStringDataIdSetToplevelEntity, Convert.ToInt32(EDIT_ID.Text, CultureInfo.InvariantCulture), "temp_name"); EDIT_MARK_BEAT_COUNT.Text = Convert.ToString(m_samlight.ScGetEntityLongData("temp_name", ( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdEntityMarkBeatCount), CultureInfo.InvariantCulture); m_samlight.ScSetIDStringData(( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlStringDataIdSetToplevelEntity, Convert.ToInt32(EDIT_ID.Text, CultureInfo.InvariantCulture), name); }
private void CHECK_SCANNER_BITMAP_AND_BIDIRECTIONAL_CheckedChanged(object sender, EventArgs e) { int flags = 0; if (m_samlight.ScIsRunning() == 0) { MessageBox.Show("SAMLight not found", "Warning", MessageBoxButtons.OK); return; } if (CHECK_SCANNER_BITMAP_AND_BIDIRECTIONAL.Checked) { flags = m_samlight.ScGetEntityLongData(EDIT_ENTITY_NAME.Text, ( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdBitmapMode); flags |= (( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdBitmapModeBidirectional); m_samlight.ScSetEntityLongData(EDIT_ENTITY_NAME.Text, ( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdBitmapMode, flags); } else { flags = m_samlight.ScGetEntityLongData(EDIT_ENTITY_NAME.Text, ( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdBitmapMode); flags &= ~(( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdBitmapModeBidirectional); m_samlight.ScSetEntityLongData(EDIT_ENTITY_NAME.Text, ( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdBitmapMode, flags); } }
private void BUTTON_GET_MARK_LOOP_COUNT_Click(object sender, EventArgs e) { EDIT_MARK_LOOP_COUNT.Text = Convert.ToString(m_samlight.ScGetEntityLongData(EDIT_ENTITY_NAME.Text, ( int )ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdEntityMarkLoopCount), CultureInfo.InvariantCulture); }
private void BUTTON_CHANGE_TEXT_ALIGNMENT_GET_Click(object sender, EventArgs e) { m_alignment_flags = m_samlight.ScGetEntityLongData(EDIT_ENTITY_NAME.Text, (int)ScComSAMLightClientCtrlFlags.scComSAMLightClientCtrlLongDataIdTextAlignment); members_to_radial_state(); }