1 write to _graphics
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\DesignerUtilsTests.cs (1)
23_graphics = Graphics.FromImage(_bitmap);
12 references to _graphics
System.Windows.Forms.Design.Tests (12)
System\Windows\Forms\Design\DesignerUtilsTests.cs (12)
30_graphics.Dispose(); 86DesignerUtils.DrawResizeBorder(_graphics, region, backColor); 100Exception exception = Record.Exception(() => DesignerUtils.DrawGrabHandle(_graphics, _bounds, isPrimary: true)); 108DesignerUtils.DrawGrabHandle(_graphics, _bounds, isPrimary); 118DesignerUtils.DrawLockedHandle(_graphics, _bounds, isPrimary); 127DesignerUtils.DrawLockedHandle(_graphics, _bounds, isPrimary: true); 135DesignerUtils.DrawLockedHandle(_graphics, _bounds, isPrimary: false); 143Exception exception = Record.Exception(() => DesignerUtils.DrawSelectionBorder(_graphics, _bounds)); 150DesignerUtils.DrawSelectionBorder(_graphics, _bounds); 193DesignerUtils.DrawFrame(_graphics, region, style, backColor); 204DesignerUtils.DrawNoResizeHandle(_graphics, _bounds, isPrimary)); 213DesignerUtils.DrawNoResizeHandle(_graphics, _bounds, isPrimary);