This commit is contained in:
Danil Kislov
2019-03-01 18:26:38 +03:00
parent a65176bc53
commit ff3a78eb3f
24 changed files with 4482 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace JiraTimeBotForm.Extensions
{
public static class Extensions
{
[DllImport( "user32.dll" )]
private static extern int ShowWindow( IntPtr hWnd, uint Msg );
private const uint SW_RESTORE = 0x09;
public static void Restore( this Form form )
{
if (form.WindowState == FormWindowState.Minimized)
{
ShowWindow(form.Handle, SW_RESTORE);
}
}
}
}