Skip to content

Commit

Permalink
Increase debug experience
Browse files Browse the repository at this point in the history
  • Loading branch information
RussKie committed May 14, 2021
1 parent 8de4b5a commit 73affb7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@

#nullable enable

using System.Diagnostics;
using System.Drawing;

namespace System.Windows.Forms.Design.Behavior
{
/// <summary>
/// This is the glyph used to drag container controls around the designer. This glyph (and associated behavior) is created by the ParentControlDesigner.
/// </summary>
[DebuggerDisplay("{GetType().Name}:: Component: {_component}, Cursor: {_hitTestCursor}")]
internal sealed class ContainerSelectorGlyph : Glyph
{
private Rectangle _glyphBounds;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable enable

using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;

namespace System.Windows.Forms.Design.Behavior
Expand All @@ -13,6 +14,7 @@ namespace System.Windows.Forms.Design.Behavior
/// This Glyph is placed on every control sized to the exact bounds of
/// the control.
/// </summary>
[DebuggerDisplay("{GetType().Name, nq}:: Behavior={Behavior.GetType().Name, nq}, {_hitTestCursor}")]
public class ControlBodyGlyph : ComponentGlyph
{
private Rectangle _bounds; //bounds of the related control
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace System.Windows.Forms.Design.Behavior
/// Note that the pen and brush are created once per instance of this class and re-used in our painting logic
/// for perf reasons.
/// </summary>
[DebuggerDisplay("{GetType().Name, nq}:: Behavior={Behavior.GetType().Name, nq}, {rules}, {hitTestCursor}")]
internal class GrabHandleGlyph : SelectionGlyphBase
{
private readonly bool _isPrimary;
Expand Down

0 comments on commit 73affb7

Please sign in to comment.