make some projects compatible with netframework4.8 again
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
using Pilz.Drawing;
|
||||
using Pilz.Drawing;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -94,7 +93,7 @@ public class PaintingControl : UserControl, IPaintingObjectContainer
|
||||
{
|
||||
get
|
||||
{
|
||||
return Conversions.ToInteger(GetType().GetField("layoutSuspendCount", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).GetValue(this)) != 0;
|
||||
return Convert.ToInt32(GetType().GetField("layoutSuspendCount", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).GetValue(this)) != 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -545,8 +544,8 @@ public class PaintingControl : UserControl, IPaintingObjectContainer
|
||||
/// <param name="m"></param>
|
||||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
const int WM_NCHITTEST = 0x84;
|
||||
const int HTTRANSPARENT = -1;
|
||||
const nint WM_NCHITTEST = 0x84;
|
||||
const nint HTTRANSPARENT = -1;
|
||||
|
||||
if (!VisibleForMouseEvents && m.Msg == WM_NCHITTEST)
|
||||
m.Result = HTTRANSPARENT;
|
||||
|
||||
Reference in New Issue
Block a user