コード例 #1
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ProjectionGlobalOffset = (ProjectionGlobalOffsetTab)target;
                break;

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

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

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

            default:
                this._contentLoaded = true;
                break;
            }
        }
コード例 #2
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;
            }
        }