private void LoadProfileByName(string name)
        {
            try
            {
                if (_profiles != null)
                {
                    // load the appropiate profile
                    _profile = name == String.Empty
                                   ? _profiles.Items[0]
                                   : ProfileHandler.GetProfileByName(_profiles, name);

                    if (_profile != null)
                    {
                        //select the profile in the drop down list
                        cboProfiles.SelectedValue = _profile.Name;

                        uxAuthServerUrl.Text   = _profile.ServerUrl;
                        uxAuthUserID.Text      = _profile.Username;
                        uxAuthPassword.Text    = _profile.Password;
                        txtFilePath.Text       = _profile.ImportCsvSourcePath;
                        txtExportFilePath.Text = _profile.ExportCsvTargetPath;
                        SelectFormTemplate(_profile.ImportFormTemplateName);
                        SelectFormDashboard(_profile.ExportFormDashboardName);
                        chkCsvHeadersQuoted.Checked = _profile.CsvHeadersQuoted;
                        chkCsvLinesQuoted.Checked   = _profile.CsvLineItemsQuoted;
                        chkAllowUpdate.Checked      = _profile.AllowUpdate;

                        if (!string.IsNullOrEmpty(_profile.CsvDelimeterCharacter))
                        {
                            txtDelimeter.Text = _profile.CsvDelimeterCharacter;
                        }

                        if (!string.IsNullOrEmpty(_profile.DateTimeFormat))
                        {
                            txtDateTimeFormat.Text = _profile.DateTimeFormat;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(string.Format("{0} {1}", ex.Message, ex.StackTrace));
            }
        }