Пример #1
0
        void DeserializeCheckmarks(string txt)
        {
            RSSConfig.ReadConfigSettings();

            if (!SmallWorldAvailable)
            {
                RSSConfig.SearchSmallWorldEnabled = false;
            }

            SetCheckMark(AltForms, RSSConfig.SearchFssEnabled, txt);
            SetCheckMark(MatchedPairs, RSSConfig.SearchMmpEnabled, txt);
            SetCheckMark(SmallWorld, RSSConfig.SearchSmallWorldEnabled, txt);
            SetCheckMark(SimilarStructure, RSSConfig.SearchSimEnabled, txt);

            SetCheckMark(AllMatches, true, txt);

            SetCheckMark(CorpDB, true, txt);
            SetCheckMark(ChemblDB, true, txt);

            SetCheckMark(IncludeQueryStruct, true, txt);

            return;
        }
Пример #2
0
        string SerializeCheckmarks()
        {
            string txt = "";

            RSSConfig.ReadConfigSettings();

            GetCheckMark(AltForms, RSSConfig.SearchCorpDbFssEnabled, ref txt);
            GetCheckMark(MatchedPairs, RSSConfig.SearchCorpDbMmpEnabled, ref txt);
            GetCheckMark(SmallWorld, RSSConfig.SearchCorpDbSmallWorldEnabled, ref txt);
            GetCheckMark(SimilarStructure, RSSConfig.SearchSimEnabled, ref txt);

            GetCheckMark(AllMatches, true, ref txt);

            GetCheckMark(CorpDB, true, ref txt);
            GetCheckMark(ChemblDB, true, ref txt);

            GetCheckMark(IncludeQueryStruct, true, ref txt);

            if (Lex.IsUndefined(txt))
            {
                txt = "<none>";                                   // indicate that nothing is checked
            }
            return(txt);
        }