public WaitDialog(WaitDialogType type) { m_DialogForm = null; if (type != WaitDialogType.None) { Title = GetMessage("msgWaitFormCaption"); m_Caption = GetMessage("msg" + type); Init(); } }
public bool Lock(WaitDialogType waitType = WaitDialogType.None) { if (m_Locked) { return(false); } if (waitType != WaitDialogType.None && (ShowWaitDialog != null)) { m_WaitDialog = ShowWaitDialog(waitType); } return(m_Locked = true); }
public static object ShowWaitDialog(WaitDialogType type) { return(new WaitDialog(type)); }