Пример #1
0
 private void OnPositionChanged(SpatialManip sender, Vector2f oldValue)
 {
   UpdateSelectedSpatial();
 }
Пример #2
0
 private void OnAngleChanged(SpatialManip sender, float oldValue)
 {
   UpdateSelectedSpatial();
 }
Пример #3
0
 private void OnShapeManipChanged(ShapesView sender, SpatialManip oldValue)
 {
   if(oldValue != null)
   {
     oldValue.PositionChanged -= this.OnPositionChanged;
     oldValue.AngleChanged -= this.OnAngleChanged;
   }
   
   if(sender.SelectedManip != null)
   {
     sender.SelectedManip.PositionChanged += this.OnPositionChanged;
     sender.SelectedManip.AngleChanged += this.OnAngleChanged;
   }
   
   UpdateSelectedSpatial();
 }