Пример #1
0
        /// <summary>
        /// Copies from given configuration
        /// </summary>
        /// <param name="conf">other configuration. expected to be a GoldProjectConfiguration</param>
        public override void CopyFrom(ItemConfiguration conf)
        {
            if (conf == null)
                return;

            base.CopyFrom (conf);
            var other = (GoldProjectConfiguration)conf;
            outputFormat = other.outputFormat;
            grammarTableName = other.grammarTableName;
        }
Пример #2
0
 static string fileExtensionFromFormat(GrammarTableFormat format)
 {
     string ext = "egt";
     if (format == GrammarTableFormat.CompiledGrammarTable)
         ext = "cgt";
     return ext;
 }
Пример #3
0
 static int getIndexFromFormat(GrammarTableFormat format)
 {
     if (format == GrammarTableFormat.CompiledGrammarTable)
         return 0;
     return 1;
 }