コード例 #1
0
        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler                                                              //
        ///////////////////////////////////////////////////////////////////////////////
        #region EVENTS

        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler for UI, Menu, Buttons, Toolbars etc.                         //
        ///////////////////////////////////////////////////////////////////////////////
        #region WINDOWSEVENTHANDLER

        /// <summary>
        /// The <see cref="Form.Load"/> event handler.
        /// Selects first entry in recent files list.
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void frmStartUpDlg_Load(object sender, EventArgs e)
        {
            this.lsbRecentProjects.SelectedIndex = 0;
            try
            {
                this.TryLoadingFlash();
            }
            catch (COMException)
            {
                FlashMissing errorWindow = new FlashMissing();
                errorWindow.ShowDialog();
                Application.Exit();
            }
        }
コード例 #2
0
ファイル: StartUpDialog.cs プロジェクト: DeSciL/Ogama
    ///////////////////////////////////////////////////////////////////////////////
    // Eventhandler                                                              //
    ///////////////////////////////////////////////////////////////////////////////
    #region EVENTS

    ///////////////////////////////////////////////////////////////////////////////
    // Eventhandler for UI, Menu, Buttons, Toolbars etc.                         //
    ///////////////////////////////////////////////////////////////////////////////
    #region WINDOWSEVENTHANDLER

    /// <summary>
    /// The <see cref="Form.Load"/> event handler. 
    /// Selects first entry in recent files list.
    /// </summary>
    /// <param name="sender">Source of the event.</param>
    /// <param name="e">An empty <see cref="EventArgs"/></param>
    private void frmStartUpDlg_Load(object sender, EventArgs e)
    {
      this.lsbRecentProjects.SelectedIndex = 0;
      try
      {
        this.TryLoadingFlash();
      }
      catch (COMException)
      {
        FlashMissing errorWindow = new FlashMissing();
        errorWindow.ShowDialog();
        Application.Exit();
      }
    }