示例#1
0
        static void Main(string[] args)
        {
            var storageSystem = new StorageSystem(
                "c:\\scratch\\",
                "c:\\FacesProject\\LocalS3",
                "LocalS3",
                "c:\\FacesProject\\TrainingDropZone",
                0);
            var fl = new FacesLite(
                        "Chin,60,200x200,noW",
                        Properties.Settings.Default.FacesLiteDBConnectionString, ".\\", storageSystem);
            bool saveOnly = false;

            if (saveOnly)
            {
                fl.SaveCoordinates(@"C:\FacesProject\TrainingDropZone\", @"c:\FacesProject\Faces\");
            }
            else
            {
                fl.Load();

                //var html = fl.CarouselHTML(S3URL, "doesntMatter.aspx", ".", ".", 14774, false);
                //using (var outFile = new StreamWriter(rootPath + "page.html"))
                //    outFile.Write(html);
            }
        }
示例#2
0
        public FacesLite(String modelName, String connectionString, String imageCachePath, StorageSystem storageSystem)
        {
            if (_firstCall) throw new ApplicationException("Programming Error: 2 instances of FacesLite!");
            _firstCall = true;

            _imageCache = ImageCache.getImageCache(imageCachePath);
            _storageSystem = storageSystem;

            _modelName = modelName;
            _connectionString = connectionString;
        }