private void Check_CheckedChanged(object sender, EventArgs e) { if (check.Checked) { controlOperation.SetSelectMode("漫游模式"); } else { controlOperation.SetSelectMode("仅点选"); } }
public Form1() { InitializeComponent(); controlOperation = new AxRenderControlOperation(this.axRenderControl1); controlOperation.InitializationAxRenderControl(); controlOperation.SetI3dObjectType(); controlOperation.SetSelectMode("仅点选"); controlOperation.RegisterRcSelectEvent(); controlOperation.CallbackMsg += ControlOperation_CallbackMsg; toolStripComboBoxObjectManager.SelectedIndex = 0; toolStripComboBoxColor.SelectedIndex = 0; }
private void toolStripSelectModeSetting_SelectedIndexChanged(object sender, System.EventArgs e) { ToolStripComboBox cb = sender as ToolStripComboBox; controlOperation.SetSelectMode(cb.Text); }