Ejemplo n.º 1
0
        public override ReleaseSide GetInstance()
        {
            //TODO: Yeah, this code sucks.

            //Determine the FTP Server to view.
            SiteSelection f = new SiteSelection(manifestManager);

            PopulateData(f);
            f.ShowDialog();

            if (f.DialogResult == DialogResult.Cancel)
            {
                return(null);
            }

            var manifest = f.Result;


            IFTPClient client = getFTPClient(manifest, f.PasswordResult);
            //Determine the release to view from the FTP as comparison.

            var releaseIDResult = getReleaseNumber(client);

            if (!releaseIDResult.Item1)
            {
                return(null);
            }

            int releaseNumber = releaseIDResult.Item2;

            string ftpFolderLocation = Settings.Default.LocalFTPLocation;


            string releaseFolderPath = LocalFTPServiceUtilities.GetFolderPathForSite(ftpFolderLocation, manifest.FTPServer);

            throw new NotImplementedException();
            //TODO: localSiteManager should be instantiated with the value of the site here.
            LocalSiteManager siteManager2 = new LocalSiteManager(null, null);

            LocalFTPSiteCache cache = new LocalFTPSiteCache(releaseFolderPath, localSiteManager);


            return(new FTPReleaseSide(client, cache, releaseNumber));
        }
Ejemplo n.º 2
0
 partial void PopulateData(SiteSelection f)
 {
 }