public void TestSetup()
        {
            m_cache = new BFeatureCache();

            var list = new List <Feature>();

            list.Add(new Feature {
                Name = "red"
            });
            list.Add(new Feature {
                Name = "blue"
            });
            m_cache.LoadFromList(list);
        }
        /// ------------------------------------------------------------------------------------
        public ProjectSettingsDlg()
        {
            InitializeComponent();

            NewlyMappedFields = new List <string>(0);

            pnlGridHdg.Font      = FontHelper.UIFont;
            lblLanguageName.Font = FontHelper.UIFont;
            lblLanguageCode.Font = FontHelper.UIFont;
            lblResearcher.Font   = FontHelper.UIFont;
            lblSpeaker.Font      = FontHelper.UIFont;
            lblTranscriber.Font  = FontHelper.UIFont;
            lblProjName.Font     = FontHelper.UIFont;
            lblComments.Font     = FontHelper.UIFont;
            txtLanguageName.Font = FontHelper.UIFont;
            txtLanguageCode.Font = FontHelper.UIFont;
            lnkEthnologue.Font   = FontHelper.UIFont;
            txtResearcher.Font   = FontHelper.UIFont;
            txtSpeaker.Font      = FontHelper.UIFont;
            txtTranscriber.Font  = FontHelper.UIFont;
            txtProjName.Font     = FontHelper.UIFont;
            txtComments.Font     = FontHelper.UIFont;
            _chkMakeFolder.Font  = FontHelper.UIFont;
            _labelDistinctiveFeaturesSet.Font = FontHelper.UIFont;
            _comboDistinctiveFeaturesSet.Font = FontHelper.UIFont;

            _chkMakeFolder.Parent.Controls.Remove(_chkMakeFolder);
            tblLayoutButtons.Controls.Add(_chkMakeFolder, 0, 0);

            foreach (var featureSetName in BFeatureCache.GetAvailableFeatureSetNames().OrderBy(n => n))
            {
                if (featureSetName != BFeatureCache.DefaultFeatureSetName)
                {
                    _comboDistinctiveFeaturesSet.Items.Add(featureSetName);
                }
                else
                {
                    _comboDistinctiveFeaturesSet.Items.Insert(0, LocalizationManager.GetString(
                                                                  "DialogBoxes.ProjectSettingsDlg.DefaultFeatureSetName", "(default)"));
                }
            }
        }
 /// ------------------------------------------------------------------------------------
 private Migration0333(string prjfilepath, Func <string, string, string> GetPrjPathPrefixAction)
     : base(prjfilepath, GetPrjPathPrefixAction)
 {
     _defaultDescriptiveFeatures = App.AFeatureCache.Select(kvp => kvp.Value).ToList();
     _defaultDistinctiveFeatures = BFeatureCache.GetFeaturesFromDefaultSet().ToList();
 }