첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System;
using System.Data;
using System.Linq;
using System.Windows.Forms;

#region 폼 오픈 여부 구하기 - IsFormOpen(formType)

/// <summary>
/// 폼 오픈 여부 구하기
/// </summary>
/// <param name="formType">폼 타입</param>
/// <returns>폼 오픈 여부</returns>
public bool IsFormOpen(Type formType)
{
    return Application.OpenForms.Cast<Form>().Any(openForm => openForm.GetType() == formType);
}

#endregion
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요