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