}// // // // ***************************************************** // **** CreateLogViewer() **** // ***************************************************** /// <summary> /// /// </summary> private void CreateLogViewer() { if (m_LogViewer == null && m_GuiCreator == null) { m_GuiCreator = FrontEnds.GuiCreator.Create(typeof(LogViewer), this); m_GuiCreator.FormCreated += new EventHandler(GuiCreator_FormCreated); m_GuiCreator.Start(); } }// CreateLogViewer()
}// CreateLogViewer() // // private void GuiCreator_FormCreated(object sender, EventArgs eventArgs) { m_GuiCreator = null; // let go of this gui creator. if (m_LogViewer == null) { FrontEnds.GuiCreator.CreateFormEventArgs e = (FrontEnds.GuiCreator.CreateFormEventArgs)eventArgs; if (e.CreatedForm is LogViewer) { m_LogViewer = (LogViewer)e.CreatedForm; this.IsViewActive = true; } } }// CreateLogViewer()