public override void Execute(BHAV bhav, UIBHAVEditor editor) { var tree = editor.GetSavableTree(); Box.SetComment(NewComment); Box.ApplyBoxPositionCentered(); NotifyGotos(); Content.Content.Get().Changes.ChunkChanged(tree); }
public override void Undo(BHAV bhav, UIBHAVEditor editor) { var tree = editor.GetSavableTree(); Box.TreeBox.X = (short)BeforePos.X; Box.TreeBox.Y = (short)BeforePos.Y; Box.TreeBox.Width = (short)BeforeSize.X; Box.TreeBox.Height = (short)BeforeSize.Y; Box.ApplyBoxPositionCentered(); Content.Content.Get().Changes.ChunkChanged(tree); }