Exemple #1
0
        /// <summary>
        /// Creates and displays new recording module.
        /// Sets help information rtf and binds events.
        /// </summary>
        /// <returns><strong>True</strong>, if successful,
        /// otherwise <strong>false</strong>.</returns>
        private bool CreateRecordingView()
        {
            Ogama.Modules.Recording.RecordModule objfrmRecord =
                new Ogama.Modules.Recording.RecordModule();

            if (objfrmRecord == null)
            {
                MessageBox.Show(
                    "Couldn't create view",
                    Application.ProductName,
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Exclamation);
                return(false);
            }
            else
            {
                objfrmRecord.MdiParent          = this;
                objfrmRecord.HelpRTF            = Application.StartupPath + @"\Help\REC.rtf";
                objfrmRecord.FormClosing       += new FormClosingEventHandler(this.module_FormClosing);
                objfrmRecord.Activated         += new EventHandler(this.module_Activated);
                objfrmRecord.HelpRequested     += new HelpEventHandler(this.module_HelpButtonClicked);
                objfrmRecord.RecordingFinished += new EventHandler(this.objfrmRecord_RecordingFinished);
                objfrmRecord.Show();
                return(true);
            }
        }
Exemple #2
0
    /// <summary>
    /// Creates and displays new recording module. 
    /// Sets help information rtf and binds events.
    /// </summary>
    /// <returns><strong>True</strong>, if successful,
    /// otherwise <strong>false</strong>.</returns>
    private bool CreateRecordingView()
    {
      Ogama.Modules.Recording.RecordModule objfrmRecord =
        new Ogama.Modules.Recording.RecordModule();

      if (objfrmRecord == null)
      {
        MessageBox.Show(
          "Couldn't create view",
            Application.ProductName,
            MessageBoxButtons.OK,
            MessageBoxIcon.Exclamation);
        return false;
      }
      else
      {
        objfrmRecord.MdiParent = this;
        objfrmRecord.HelpRTF = Application.StartupPath + @"\Help\REC.rtf";
        objfrmRecord.FormClosing += new FormClosingEventHandler(this.module_FormClosing);
        objfrmRecord.Activated += new EventHandler(this.module_Activated);
        objfrmRecord.HelpRequested += new HelpEventHandler(this.module_HelpButtonClicked);
        objfrmRecord.RecordingFinished += new EventHandler(this.objfrmRecord_RecordingFinished);
        objfrmRecord.Show();
        return true;
      }
    }