예제 #1
0
 public override void Execute(BHAV bhav, UIBHAVEditor editor)
 {
     Old      = editor.BHAVView.EditTarget;
     OldScope = editor.BHAVView.Scope;
     OldFrame = editor.DebugFrame;
     editor.BHAVView.OnSelectedChanged -= SelectCallback;
     editor.SwitchBHAV(Target, TargetScope, Frame);
     editor.BHAVView.OnSelectedChanged += SelectCallback;
 }
예제 #2
0
 public override void Undo(BHAV bhav, UIBHAVEditor editor)
 {
     editor.BHAVView.OnSelectedChanged -= SelectCallback;
     editor.SwitchBHAV(Old, OldScope, OldFrame);
     editor.BHAVView.OnSelectedChanged += SelectCallback;
 }