Пример #1
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ProjectionTabControl = (ProjectionEditor)target;
                break;

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

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

            case 4:
                this.ProjectionRotationTab = (ProjectionRotationTab)target;
                break;

            case 5:
                this.ProjectionCenterItem = (TabItem)target;
                break;

            case 6:
                this.ProjectionCenterTab = (ProjectionCenterTab)target;
                break;

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

            case 8:
                this.ProjectionGlobalOffsetTab = (ProjectionGlobalOffsetTab)target;
                break;

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

            case 10:
                this.ProjectionLocalOffsetTab = (ProjectionLocalOffsetTab)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }
Пример #2
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;
            }
        }