Ejemplo n.º 1
0
        public void _openUrl(string nUrl)
        {
            UrlParser urlParser_ = new UrlParser(nUrl);
            string    path_      = urlParser_._returnResult();

            mStreamReader = new StreamReader(path_);
        }
Ejemplo n.º 2
0
        public void _openUrl(string nUrl)
        {
            UrlParser urlParser_ = new UrlParser(nUrl);
            string    path_      = urlParser_._returnResult();

            mXmlDocument.Load(path_);
        }
Ejemplo n.º 3
0
        public void _openUrl(string nUrl)
        {
            UrlParser urlParser_ = new UrlParser(nUrl);

            mPath = urlParser_._returnResult();
            XmlDeclaration xmlDeclaration_ = mXmlDocument.CreateXmlDeclaration("1.0", "utf-8", null);

            mXmlDocument.AppendChild(xmlDeclaration_);
        }
Ejemplo n.º 4
0
        bool _haveUfl(string nUrl)
        {
            UrlParser urlParser_   = new UrlParser(nUrl);
            string    archivePath_ = urlParser_._returnResult();

            if (File.Exists(archivePath_))
            {
                return(true);
            }
            return(false);
        }
Ejemplo n.º 5
0
        public void _delHeadstream(string nUrl)
        {
            if (!this._isUfl(nUrl))
            {
                return;
            }
            if (!this._haveUfl(nUrl))
            {
                return;
            }
            UrlParser urlParser_   = new UrlParser(nUrl);
            string    archivePath_ = urlParser_._returnResult();

            File.Delete(archivePath_);
        }
Ejemplo n.º 6
0
        public override void _runLoad(string nUrl)
        {
            UrlParser    urlParser_    = new UrlParser(nUrl);
            string       assemblyPath_ = urlParser_._returnResult();
            AssemblyName assemblyName_ = AssemblyName.GetAssemblyName(assemblyPath_);
            AppDomain    appDomain_    = AppDomain.CurrentDomain;

            Assembly[] assemblies_ = appDomain_.GetAssemblies();
            foreach (Assembly i in assemblies_)
            {
                if (string.Compare(i.FullName, assemblyName_.FullName) == 0)
                {
                    mAssembly = i;
                }
            }
            if (null == mAssembly)
            {
                mAssembly = Assembly.LoadFrom(assemblyPath_);
            }
            base._runLoad(nUrl);
        }