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; }
public override void Undo(BHAV bhav, UIBHAVEditor editor) { editor.BHAVView.OnSelectedChanged -= SelectCallback; editor.SwitchBHAV(Old, OldScope, OldFrame); editor.BHAVView.OnSelectedChanged += SelectCallback; }