コード例 #1
0
 private RenderControlEditServices()
 {
     this.renderEditorType = RenderEditorType.UnKnownType;
 }
コード例 #2
0
ファイル: UCGeometryEdit.cs プロジェクト: wwcc19870805/DIFGIS
        private void RenderEditorTypeChanged(RenderEditorType type)
        {
            this._editType = type;
            switch (type)
            {
            case RenderEditorType.MoveType:
            case RenderEditorType.GeometryMove:
            {
                this.spinEditX.Properties.MinValue = -79228162514264337593543950335m;
                this.spinEditY.Properties.MinValue = -79228162514264337593543950335m;
                this.spinEditZ.Properties.MinValue = -79228162514264337593543950335m;
                this.spinEditX.Properties.MaxValue = 79228162514264337593543950335m;
                this.spinEditY.Properties.MaxValue = 79228162514264337593543950335m;
                this.spinEditZ.Properties.MaxValue = 79228162514264337593543950335m;
                this.spinEditX.EditValue           = 0;
                this.spinEditY.EditValue           = 0;
                this.spinEditZ.EditValue           = 0;
                this.layoutControlGroup1.Text      = "平移";
                break;
            }

            case RenderEditorType.RotateAllType:
            case RenderEditorType.RotateCenterType:
            case RenderEditorType.GeometryRoate:
            {
                this.spinEditX.Properties.MinValue = -79228162514264337593543950335m;
                this.spinEditY.Properties.MinValue = -79228162514264337593543950335m;
                this.spinEditZ.Properties.MinValue = -79228162514264337593543950335m;
                this.spinEditX.Properties.MaxValue = 79228162514264337593543950335m;
                this.spinEditY.Properties.MaxValue = 79228162514264337593543950335m;
                this.spinEditZ.Properties.MaxValue = 79228162514264337593543950335m;
                this.spinEditX.EditValue           = 0;
                this.spinEditY.EditValue           = 0;
                this.spinEditZ.EditValue           = 0;
                this.layoutControlGroup1.Text      = "旋转";
                break;
            }

            case RenderEditorType.ScaleAllType:
            case RenderEditorType.ScaleCenterType:
            case RenderEditorType.GeometryScale:
            {
                this.spinEditX.Properties.MinValue = 0.01m;
                this.spinEditY.Properties.MinValue = 0.01m;
                this.spinEditZ.Properties.MinValue = 0.01m;
                this.spinEditX.Properties.MaxValue = 79228162514264337593543950335m;
                this.spinEditY.Properties.MaxValue = 79228162514264337593543950335m;
                this.spinEditZ.Properties.MaxValue = 79228162514264337593543950335m;
                this.spinEditX.EditValue           = 1;
                this.spinEditY.EditValue           = 1;
                this.spinEditZ.EditValue           = 1;
                this.layoutControlGroup1.Text      = "缩放";
                break;
            }
                //default:
                //    {
                //        this.panelControl1.Visible = false;
                //        return;
                //    }
            }
            //this.panelControl1.Visible = WorkSpaceServices.Instance().PropertyCanEdit;
            this.panelControl1.Visible = true;
        }