/// <summary> /// Creates and displays new attention map module. /// Sets help information rtf and binds events. /// </summary> /// <returns><strong>True</strong>, if successful, /// otherwise <strong>false</strong>.</returns> private bool CreateAttentionMapView() { Ogama.Modules.AttentionMap.AttentionMapModule objfrmAttentionMap = new Ogama.Modules.AttentionMap.AttentionMapModule(); if (objfrmAttentionMap == null) { MessageBox.Show( "Couldn't create view", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return(false); } else { objfrmAttentionMap.MdiParent = this; objfrmAttentionMap.HelpRTF = Application.StartupPath + @"\Help\ATM.rtf"; objfrmAttentionMap.FormClosing += new FormClosingEventHandler(this.module_FormClosing); objfrmAttentionMap.Activated += new EventHandler(this.module_Activated); objfrmAttentionMap.HelpRequested += new HelpEventHandler(this.module_HelpButtonClicked); objfrmAttentionMap.Show(); return(true); } }
/// <summary> /// Creates and displays new attention map module. /// Sets help information rtf and binds events. /// </summary> /// <returns><strong>True</strong>, if successful, /// otherwise <strong>false</strong>.</returns> private bool CreateAttentionMapView() { Ogama.Modules.AttentionMap.AttentionMapModule objfrmAttentionMap = new Ogama.Modules.AttentionMap.AttentionMapModule(); if (objfrmAttentionMap == null) { MessageBox.Show( "Couldn't create view", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return false; } else { objfrmAttentionMap.MdiParent = this; objfrmAttentionMap.HelpRTF = Application.StartupPath + @"\Help\ATM.rtf"; objfrmAttentionMap.FormClosing += new FormClosingEventHandler(this.module_FormClosing); objfrmAttentionMap.Activated += new EventHandler(this.module_Activated); objfrmAttentionMap.HelpRequested += new HelpEventHandler(this.module_HelpButtonClicked); objfrmAttentionMap.Show(); return true; } }