void UpdateToolbar()
        {
            IMouseContext context = EditorManager.ActiveView.CurrentContext;

            this.toolStripButton_ContextAdd.Checked = context == _contextAdd;

            if (this.toolStripButton_ContextAdd.Checked)
            {
                StatusText = "Hold down CTRL and click into the view to add new decoration instances";
            }
            else
            {
                StatusText = null;
            }

            groupBox_Create.Visible = this.toolStripButton_ContextAdd.Checked;
            if (groupBox_Create.Visible)
            {
                this.Size = this.MaximumSize;
            }
            else
            {
                this.Size = this.MinimumSize;
            }
        }
Exemple #2
0
        void UpdateToolbar()
        {
            IMouseContext context = EditorManager.ActiveView.CurrentContext;

            this.toolStripButton_ContextAdd.Checked    = context == _contextAdd;
            this.toolStripButton_ContextRemove.Checked = context == _contextRemove;
            this.toolStripButton_ContextSelect.Checked = context == _contextSelect;

            if (this.toolStripButton_ContextAdd.Checked)
            {
                StatusText = "Hold down CTRL and click into the view to add new billboards";
            }
            else if (this.toolStripButton_ContextRemove.Checked)
            {
                StatusText = "Hold down CTRL and click into the view to delete billboards";
            }
            else if (this.toolStripButton_ContextSelect.Checked)
            {
                StatusText = "Hold down CTRL and click into the view to select and modify billboards";
            }
            else
            {
                StatusText = null;
            }

            groupBox_Create.Visible = this.toolStripButton_ContextAdd.Checked;
            if (groupBox_Create.Visible)
            {
                this.Size = this.MaximumSize;
            }
            else
            {
                this.Size = this.MinimumSize;
            }
        }