/// <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;
        }
Beispiel #2
0
 static string fileExtensionFromFormat(GrammarTableFormat format)
 {
     string ext = "egt";
     if (format == GrammarTableFormat.CompiledGrammarTable)
         ext = "cgt";
     return ext;
 }
 static int getIndexFromFormat(GrammarTableFormat format)
 {
     if (format == GrammarTableFormat.CompiledGrammarTable)
         return 0;
     return 1;
 }