Ejemplo n.º 1
0
        }     // BtnSendPidCommandClick()

        /// <summary>
        /// Handles the Click event of the <c>btnCreateFullReport</c> control.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing
        /// the event data.</param>
        private void BtnCreateFullReportClick(object sender, EventArgs e)
        {
            try
            {
                this.resultBuilder = new StringBuilder(1000);
                this.obdManager.CreateFullReport(this.OutputResultBuilder);

                var resultForm = new ResultForm(this.resultBuilder.ToString());
                resultForm.ShowDialog(this);
            }
            catch (Exception ex)
            {
                log.Error("Error creating full report", ex);
            } // catch
        }     // BtnCreateFullReportClick()
Ejemplo n.º 2
0
        }     // UpdateSensorList()

        /// <summary>
        /// Lists the capabilities.
        /// </summary>
        private void ListCapabilities()
        {
            if (this.obdManager == null)
            {
                return;
            } // if

            try
            {
                this.resultBuilder = new StringBuilder(1000);
                this.obdManager.ListCapabilities(this.OutputResultBuilder);
                var resultForm = new ResultForm(this.resultBuilder.ToString());
                resultForm.ShowDialog(this);
            }
            catch (Exception ex)
            {
                log.Error("Error listing capabilities", ex);
            } // catch
        }     // ListCapabilities()
Ejemplo n.º 3
0
        }     // ListCapabilities()

        /// <summary>
        /// Creates the raw report.
        /// </summary>
        private void CreateRawReport()
        {
            if (this.obdManager == null)
            {
                return;
            } // if

            try
            {
                this.resultBuilder = new StringBuilder(1000);
                this.obdManager.CreateRawReport(this.OutputResultBuilder);
                var resultForm = new ResultForm(this.resultBuilder.ToString());
                resultForm.ShowDialog(this);
            }
            catch (Exception ex)
            {
                log.Error("Error creating raw report", ex);
            } // catch
        }     // CreateRawReport()