Esempio n. 1
0
        /// <summary>
        /// The <see cref="Control.Click"/> event handler for
        /// the <see cref="Button"/> <see cref="btnViewLog"/>.
        /// Shows a <see cref="ShowLogDialog"/> with the content
        /// of the "exception.log" file
        /// </summary>
        /// <param name="sender">Source of the event.</param>
        /// <param name="e">An empty <see cref="EventArgs"/></param>
        private void btnViewLog_Click(object sender, EventArgs e)
        {
            var logForm =
                new ShowLogDialog(System.IO.Path.Combine(Properties.Settings.Default.LogfilePath, "exception.log"));

            logForm.ShowDialog();
        }
Esempio n. 2
0
    ///////////////////////////////////////////////////////////////////////////////
    // Defining Properties                                                       //
    ///////////////////////////////////////////////////////////////////////////////
    #region PROPERTIES
    #endregion //PROPERTIES

    ///////////////////////////////////////////////////////////////////////////////
    // Eventhandler                                                              //
    ///////////////////////////////////////////////////////////////////////////////
    #region EVENTS

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

    /// <summary>
    /// The <see cref="Control.Click"/> event handler for
    /// the <see cref="Button"/> <see cref="btnErrorLog"/>.
    /// Shows a <see cref="ShowLogDialog"/> with the content
    /// of the "error.log" file
    /// </summary>
    /// <param name="sender">Source of the event.</param>
    /// <param name="e">An empty <see cref="EventArgs"/></param>
    private void btnErrorLog_Click(object sender, EventArgs e)
    {
      var logForm =
        new ShowLogDialog(System.IO.Path.Combine(Properties.Settings.Default.LogfilePath, "error.log"));
      logForm.ShowDialog();
    }