Beispiel #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="backupProjectView">The backup project dialog box.</param>
        /// <param name="appAbbrev">The command-line abbreviation for the application displaying
        /// this backup dialog box.</param>
        /// <param name="cache">The cache.</param>
        /// ------------------------------------------------------------------------------------
        internal BackupProjectPresenter(IBackupProjectView backupProjectView, string appAbbrev, FdoCache cache)
        {
            m_cache             = cache;
            m_appAbbrev         = appAbbrev;
            m_backupProjectView = backupProjectView;

            //Older projects might not have this folder so when launching the backup dialog we want to create it.
            Directory.CreateDirectory(FdoFileHelper.GetSupportingFilesDir(m_cache.ProjectId.ProjectFolder));
        }