Exemplo n.º 1
0
        private FinTransmogrifierRepository _GetSyntax()
        {
            FinTransmogrifierRepository aSyntax = new FinTransmogrifierRepository();

            Assembly aThisAssembly = Assembly.GetExecutingAssembly();

            using (Stream aStream = aThisAssembly.GetManifestResourceStream("Subsembly.syntax.xml"))
            {
                aSyntax.Load(aStream);
                Debug.Assert(aStream != null, "aStream != null");
                aStream.Close();
            }

            return(aSyntax);
        }
Exemplo n.º 2
0
        protected override bool OnParse(string action, StringDictionary arguments)
        {
            string sFileName = arguments["-xmlfile"];

            if (sFileName == null)
            {
                Io.Error.Write("Argument -xmlfile muss angegeben werden!");
                return(false);
            }
            if (!File.Exists(sFileName))
            {
                Io.Error.Write("XML Datei {0} nicht gefunden!", sFileName);
                return(false);
            }

            m_aXmlDocument = new XmlDocument();
            m_aXmlDocument.Load(sFileName);

            m_aSyntax = _GetSyntax();

            return(true);
        }
Exemplo n.º 3
0
        private FinTransmogrifierRepository _GetSyntax()
        {
            FinTransmogrifierRepository aSyntax = new FinTransmogrifierRepository();

            Assembly aThisAssembly = Assembly.GetExecutingAssembly();
            using (Stream aStream = aThisAssembly.GetManifestResourceStream("Subsembly.syntax.xml"))
            {
                aSyntax.Load(aStream);
                Debug.Assert(aStream != null, "aStream != null");
                aStream.Close();
            }

            return aSyntax;
        }
Exemplo n.º 4
0
        protected override bool OnParse(string action, StringDictionary arguments)
        {
            string sFileName = arguments["-xmlfile"];
            if (sFileName == null)
            {
                Io.Error.Write("Argument -xmlfile muss angegeben werden!");
                return false;
            }
            if (!File.Exists(sFileName))
            {
                Io.Error.Write("XML Datei {0} nicht gefunden!", sFileName);
                return false;
            }

            m_aXmlDocument = new XmlDocument();
            m_aXmlDocument.Load(sFileName);

            m_aSyntax = _GetSyntax();

            return true;
        }