示例#1
0
文件: Program.cs 项目: darkmag0/vEEE
        public vClient(string w)
        {
            vConsoleDebug.debugMessage("client run");

            this.vWorkCatalog = new vCatalog(w);
        }
示例#2
0
文件: Program.cs 项目: darkmag0/vEEE
        public vClient()
        {
            vConsoleDebug.debugMessage("client run");

            this.vWorkCatalog = new vCatalog("C:\\vEEE\\WC");
        }
示例#3
0
文件: Program.cs 项目: darkmag0/vEEE
        public vServer(string r, string f)
        {
            vConsoleDebug.debugMessage("server run");

            vRepositoryCatalog = new vCatalog(r);
            vFinalCatalog = new vCatalog(f);
        }
示例#4
0
文件: Program.cs 项目: darkmag0/vEEE
        public static bool setRepositoryPath()
        {
            Regex re = new Regex("conf.rep (?<rep>.*)");
            Match match;

            match = re.Match(vConsole.vLastCommand);

            if (match.Success)
            {
                if (Directory.Exists(match.Groups["rep"].Value))
                {
                    vRepositoryCatalog = new vCatalog(match.Groups["rep"].Value);
                    vConsoleDebug.debugMessage("repository catalog was changed on " + match.Groups["rep"].Value);
                    return true;
                }
                else
                {
                    vConsoleDebug.debugMessage("path \"" + match.Groups["rep"].Value + "\" does not exist");
                }
            }

            return false; ;
        }
示例#5
0
文件: Program.cs 项目: darkmag0/vEEE
        public vServer()
        {
            vConsoleDebug.debugMessage("server run");

            if (vIniResource.vIniParameters.ContainsKey("vIniServerRepositoryPath"))
                vRepositoryCatalog = new vCatalog(vIniResource.vIniParameters["vIniServerRepositoryPath"]);
            if (vIniResource.vIniParameters.ContainsKey("vIniServerFinalPath"))
                vFinalCatalog = new vCatalog(vIniResource.vIniParameters["vIniServerFinalPath"]);
        }