IfcDoc.FormEdit.SetMode C# (CSharp) Méthode

SetMode() private méthode

private SetMode ( int mode ) : void
mode int
Résultat void
        private void SetMode(int mode)
        {
            DocObject docobj = this.treeView.SelectedNode.Tag as DocObject;

            this.toolStripMenuItemModeSelect.Checked = (mode == 0);
            this.toolStripMenuItemModeMove.Checked = (mode == 1);
            this.toolStripMenuItemModeLink.Checked = (mode == 2);
            this.toolStripButtonModeSelect.Checked = (mode == 0);
            this.toolStripButtonModeMove.Checked = (mode == 1);
            this.toolStripButtonModeLink.Checked = (mode == 2);

            switch (mode)
            {
                case 0:
                    this.ctlExpressG.Mode = ToolMode.Select;
                    this.ctlCheckGrid.Mode = ToolMode.Select;
                    this.ctlInheritance.Mode = ToolMode.Select;
                    break;

                case 1:
                    this.ctlExpressG.Mode = ToolMode.Move;
                    this.ctlCheckGrid.Mode = ToolMode.Move;
                    this.ctlInheritance.Mode = ToolMode.Move;
                    break;

                case 2:
                    this.ctlExpressG.Mode = ToolMode.Link;
                    this.ctlCheckGrid.Mode = ToolMode.Link;
                    this.ctlInheritance.Mode = ToolMode.Link;
                    break;
            }
        }
FormEdit