using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace IceInk
{
///
/// //基于WinForm窗体的帮助类
///
public class EkWinFormHelper
{
///
/// 判断窗体是否打开
///
/// 窗体类型
///
public static bool CheckIsOpenForm() where T : Form
{
Type wormType = typeof(T);
foreach (Form frm in Application.OpenForms)
{
if (frm.Name.Equals(wormType.Name))
{
return true;
}
}
return false;
}
}
}



