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

            case 2:
                this.Tabs = (FocusDenyingTabControl)target;
                break;

            case 3:
                this.PositionTabItem = (TabItem)target;
                break;

            case 4:
                this.RotationItem = (TabItem)target;
                break;

            case 5:
                this.RotationTab = (RotationTab)target;
                break;

            case 6:
                this.ScaleItem = (TabItem)target;
                break;

            case 7:
                this.SkewItem = (TabItem)target;
                break;

            case 8:
                this.CenterItem = (TabItem)target;
                break;

            case 9:
                this.ReflectItem = (TabItem)target;
                break;

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

            case 2:
                this.RotationSpinner = (PropertyContainer)target;
                break;

            case 3:
                this.ArcBall = (PropertyContainer)target;
                break;

            case 4:
                this.RotationPropertyContainer = (PropertyContainer)target;
                break;

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

            case 6:
                this.XInputTextBox = (NumberEditor)target;
                break;

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

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