/// <summary>
        /// Prepares the error report.
        /// (Expands it with the user's information and removes unchecked files.)
        /// </summary>
        /// <remarks>Documented by Dev02, 2009-07-16</remarks>
        private void PrepareErrorReport()
        {
            try
            {
                errorReportHandler.SetValue(Resources.ERRORREPORTPATH_USEREMAIL, textBoxEmailAddress.Text);
                errorReportHandler.SetValue(Resources.ERRORREPORTPATH_USERDESCRIPTION, textBoxAdditionalInformation.Text);
                errorReportHandler.CommitUpdates();
            }
            catch (Exception ex)
            {
                Trace.WriteLine("Error during adding user fields to error report:");
                Trace.WriteLine(ex.ToString());
            }

            try
            {
                //remove unchecked files
                foreach (ListViewItem item in listViewFiles.Items)
                {
                    string filename = item.Tag as string;

                    if (!item.Checked && !String.IsNullOrEmpty(filename))
                    {
                        errorReportHandler.RemoveFile(filename);
                    }
                }
            }
            catch (Exception ex)
            {
                Trace.WriteLine("Error during removing error report files:");
                Trace.WriteLine(ex.ToString());
            }
        }