Changeset 1736


Ignore:
Timestamp:
Jul 15, 2010, 11:32:10 AM (11 years ago)
Author:
Matthäus Wander
Message:

CrypPluginBase:

  • changed samples path
  • added base path
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPluginBase/IO/DirectoryHelper.cs

    r1152 r1736  
    2828        private const string crypPlugins = "CrypPlugins";
    2929        private const string tempFiles = "Temp";
     30        private const string samples = "ProjectSamples";
    3031
    3132        public static string DirectoryCrypPlugins
     
    5354        }
    5455
     56        public static string BaseDirectory
     57        {
     58            get;
     59            private set;
     60        }
     61
    5562        static DirectoryHelper()
    5663        {
    57             DirectoryCrypPlugins = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, crypPlugins);
     64            BaseDirectory = AppDomain.CurrentDomain.BaseDirectory;
     65            DirectoryCrypPlugins = Path.Combine(BaseDirectory, crypPlugins);
    5866            DirectoryLocal = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), crypTool2);
    5967            DirectoryLocalTemp = Path.Combine(DirectoryLocal, tempFiles);
    60             DirectorySamples = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SampleProjects");
     68            DirectorySamples = Path.Combine(BaseDirectory, samples);
    6169        }
    6270
Note: See TracChangeset for help on using the changeset viewer.