コード例 #1
0
        public void SetTitle(string title)
        {
            this.Text = title;
            switch (this.Text)
            {
            case "轴1-旋转中心":
                tempBlock      = MyGlobal.tbDown1;
                rotationCenter = MyGlobal.rotationCenterDown1;
                fileName       = "rotationCenterDown1.xml";
                break;

            case "轴2-旋转中心":
                tempBlock      = MyGlobal.tbDown1;
                rotationCenter = MyGlobal.rotationCenterDown2;
                fileName       = "rotationCenterDown2.xml";
                break;

            case "轴3-旋转中心":
                tempBlock      = MyGlobal.tbDown2;
                rotationCenter = MyGlobal.rotationCenterDown3;
                fileName       = "rotationCenterDown3.xml";
                break;

            case "轴4-旋转中心":
                tempBlock      = MyGlobal.tbDown2;
                rotationCenter = MyGlobal.rotationCenterDown4;
                fileName       = "rotationCenterDown4.xml";
                break;

            default:
                return;
            }
        }
コード例 #2
0
 public RotationCenterVM(RotationCenter mode, string name, string description)
 {
     this.Model       = mode;
     this.Name        = name;
     this.Description = description;
 }
コード例 #3
0
 private void OnRotationCenterChanged(RotationCenter rotationCenter)
 {
     this.ConfigHangarScene(h => h.RotationCenter = rotationCenter);
 }