예제 #1
0
        public Form1()
        {
            InitializeComponent();

            controlOperation = new AxRenderControlOperation(this.axRenderControl1);
            controlOperation.InitializationAxRenderControl();
            controlOperation.RegisterRcSelectEvent();

            // 设置控件默认值
            this.toolStripSelectModeSetting.SelectedIndex = 0;
        }
예제 #2
0
        private TreeNode selectNode = null;  //标记treeView控件中当前被选中的节点

        public MainForm()
        {
            InitializeComponent();

            controlOperation = new AxRenderControlOperation(this.axRenderControl1);
            controlOperation.InitializationAxRenderControl();
            MyTreeNode treeNodes = controlOperation.BindDataToCatalogTree();

            SetTreeNodeWithContextMenuStrip(treeNodes.Nodes);
            this.treeView1.Nodes.Add(treeNodes.Nodes[0]);
        }
예제 #3
0
        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;
        }