change UI to UI.WinForms
This commit is contained in:
19
Pilz.UI.WinForms/HelpfulFunctions.cs
Normal file
19
Pilz.UI.WinForms/HelpfulFunctions.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Diagnostics;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Pilz.UI.WinForms;
|
||||
|
||||
public static class HelpfulFunctions
|
||||
{
|
||||
public static void Sleep(int milliseconds)
|
||||
{
|
||||
var stopw = new Stopwatch();
|
||||
|
||||
stopw.Start();
|
||||
|
||||
while (stopw.ElapsedMilliseconds < milliseconds)
|
||||
Application.DoEvents();
|
||||
|
||||
stopw.Stop();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user