Exemplo n.º 1
0
        public override void Read(DataStream strIn)
        {
            DataStream temp = new DataStream(new System.IO.MemoryStream(), 0, 0);

            strIn.WriteTo(temp);
            temp.BaseStream.Seek(0, System.IO.SeekOrigin.Begin);

            Configuration config = Configuration.GetInstance();

            script = new NinoScritor.Script(
                temp.BaseStream,
                scriptName,
                System.IO.Path.Combine(config.AppPath, "temp_names.xml"),
                System.IO.Path.Combine(config.AppPath, "temp_context.xml"),
                System.IO.Path.Combine(config.AppPath, "temp_replace.xml"),
                ""
                );

            temp.Dispose();
        }
Exemplo n.º 2
0
        public override void Read(DataStream strIn)
        {
            DataStream temp = new DataStream(new System.IO.MemoryStream(), 0, 0);
            strIn.WriteTo(temp);
            temp.BaseStream.Seek(0, System.IO.SeekOrigin.Begin);

            Configuration config = Configuration.GetInstance();

            script = new NinoScritor.Script(
                temp.BaseStream,
                scriptName,
                System.IO.Path.Combine(config.AppPath, "temp_names.xml"),
                System.IO.Path.Combine(config.AppPath, "temp_context.xml"),
                System.IO.Path.Combine(config.AppPath, "temp_replace.xml"),
                ""
            );

            temp.Dispose();
        }