示例#1
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Root = (TextAlignmentEditor)target;
                break;

            case 2:
                this.TextAlignmentChoiceEditor = (ChoiceEditor)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
示例#2
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.codeOptionsControl = (CodeOptionsControl)target;
                break;

            case 2:
                this.CurrentSettings = (ComboBox)target;
                break;

            case 3:
                this.FontFamily = (ChoiceEditor)target;
                break;

            case 4:
                this.FontSize = (ChoiceEditor)target;
                break;

            case 5:
                this.TabSize = (NumberEditor)target;
                break;

            case 6:
                this.InsertSpacesCheckBox = (WorkaroundRadioButton)target;
                break;

            case 7:
                this.KeepTabsCheckBox = (WorkaroundRadioButton)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.showGridCheckBox = (CheckBox)target;
                break;

            case 2:
                this.snapToGridCheckBox = (CheckBox)target;
                break;

            case 3:
                this.gridSpacingLabel = (Label)target;
                break;

            case 4:
                this.gridSpacingTextBox = (NumberEditor)target;
                break;

            case 5:
                this.snapToSnapLinesCheckBox = (CheckBox)target;
                break;

            case 6:
                this.snapLineMarginLabel = (Label)target;
                break;

            case 7:
                this.snapLineMarginTextBox = (NumberEditor)target;
                break;

            case 8:
                this.snapLinePaddingLabel = (Label)target;
                break;

            case 9:
                this.snapLinePaddingTextBox = (NumberEditor)target;
                break;

            case 10:
                this.isInGridDesignModeCheckBox = (CheckBox)target;
                break;

            case 11:
                this.ColorPopupButton = (ToggleButton)target;
                break;

            case 12:
                this.ZoomGestureChoiceEditor = (ChoiceEditor)target;
                break;

            case 13:
                this.EffectsEnabled = (CheckBox)target;
                break;

            case 14:
                this.ZoomThresholdComboBox = (NumberComboBox)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }