예제 #1
0
        /// <summary>
        /// Creates and displays new fixations module.
        /// Sets help information rtf and binds events.
        /// </summary>
        /// <returns><strong>True</strong>, if successful,
        /// otherwise <strong>false</strong>.</returns>
        private bool CreateFixationsView()
        {
            Ogama.Modules.Fixations.FixationsModule objfrmFixations =
                new Ogama.Modules.Fixations.FixationsModule();

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

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