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

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

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

            case 4:
                this.LocalOffsetZEditor = (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;
            }
        }