mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 05:34:13 +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.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Reflection;
|
||||
|
||||
namespace UWUVCI_AIO_WPF.Classes
|
||||
{
|
||||
|
@ -90,7 +91,12 @@ namespace UWUVCI_AIO_WPF.Classes
|
|||
Rectangle rectangle;
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue