public OptionsDisplayControl(
            NameSpace session,
            Func <Guid, string> profileDataDirectoryFactory,
            bool fixInvalidSettings)
        {
            ISettingsFaultFinder faultFinder;

            InitializeComponent();

            if (fixInvalidSettings)
            {
                faultFinder = new SettingsFaultFinder(_syncSettingsControl);
            }
            else
            {
                faultFinder = NullSettingsFaultFinder.Instance;
            }

            _serverSettingsControl.Initialize(faultFinder, this);

            _outlookFolderControl.Initialize(session, faultFinder);
            _profileDataDirectoryFactory = profileDataDirectoryFactory;

            _profileNameTextBox.TextChanged     += _profileNameTextBox_TextChanged;
            _inactiveCheckBox.CheckedChanged    += _inactiveCheckBox_CheckedChanged;
            _outlookFolderControl.FolderChanged += OutlookFolderControl_FolderChanged;
            _configurationFormFactory            = OptionTasks.CreateConfigurationFormFactory(_serverSettingsControl);
        }
    public GoogleOptionsDisplayControl (
        NameSpace session,
        Func<Guid, string> profileDataDirectoryFactory,
        bool fixInvalidSettings)
    {
      ISettingsFaultFinder faultFinder;
      InitializeComponent();

      if (fixInvalidSettings)
        faultFinder = new SettingsFaultFinder (_syncSettingsControl);
      else
        faultFinder = NullSettingsFaultFinder.Instance;

      _serverSettingsControl.Initialize (faultFinder, this);

      _outlookFolderControl.Initialize (session, faultFinder);

      _profileNameTextBox.TextChanged += _profileNameTextBox_TextChanged;
      _inactiveCheckBox.CheckedChanged += _inactiveCheckBox_CheckedChanged;
      _outlookFolderControl.FolderChanged += OutlookFolderControl_FolderChanged;
      _profileDataDirectoryFactory = profileDataDirectoryFactory;

      _configurationFormFactory = OptionTasks.CreateConfigurationFormFactory(_serverSettingsControl);
    }