DutyContent/ThirdParty/WinFormSupp.cs
ksh cbfa535d20
Enhanced after version 14 (#30)
* Add log tab
* Merge control mesg & duty log
* Fix ping (calc loss)
* Add current connection in ping tab. Able to copy by double clicking item
* Log font has moved to config
* Add debug enable on config + save
* Display ping failed reason (debug enable)
* Handled copy exception
* New content list in duty tab
* Show loss rate option in ping tab
* Rename Chinese packet info file (No data)
* Bigger UI font
2021-08-14 23:35:53 +09:00

16 lines
411 B
C#

using System.Reflection;
using System.Windows.Forms;
namespace DutyContent.ThirdParty
{
static class WinFormSupp
{
public static void DoubleBuffered(Control control, bool enabled)
{
var prop = control.GetType().GetProperty(
"DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic);
prop.SetValue(control, enabled, null);
}
}
}