mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2025-02-16 10:38:23 +00:00
Fixed this item that's annoying when debugging
This commit is contained in:
parent
7c730f5fbb
commit
cd5d6de003
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Drawing.Drawing2D;
|
using System.Drawing.Drawing2D;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
namespace UWUVCI_AIO_WPF.Classes
|
namespace UWUVCI_AIO_WPF.Classes
|
||||||
{
|
{
|
||||||
|
@ -90,7 +91,12 @@ namespace UWUVCI_AIO_WPF.Classes
|
||||||
Rectangle rectangle;
|
Rectangle rectangle;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
rectangle = (Rectangle)GetType().GetField(_imageVar).GetValue(this);
|
FieldInfo fieldInfo = GetType().GetField(_imageVar, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
|
||||||
|
|
||||||
|
rectangle = fieldInfo != null
|
||||||
|
? (Rectangle)fieldInfo.GetValue(this)
|
||||||
|
: _rectangleH4V3;
|
||||||
|
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue