public bool AttachHandler(UWB_IWindowHandler Handler) { if (Handler == m_Handler) { return(true); } if (m_Handler != null) { m_Handler.ShutDownHandler(); m_Handler = null; } bool attachSuccess = Handler.InitializeHandler(Handle); if (attachSuccess) { m_Handler = Handler; } else { MessageBox.Show("Error attaching viewport to window!", "UWBGLE_UIWindow::AttachViewport", MessageBoxButtons.OK, MessageBoxIcon.Stop); } return(attachSuccess); }
public UWBGL_UIWindow(bool timerbased) : base() { m_TimerBased = timerbased; m_Handler = new UWB_IWindowHandler(); }