internal ProjectConfiguration(string name, string folderPath, string description, string databasePath, Dictionary <string, string> propertiesMap, DateTime creationTime) { if (string.IsNullOrEmpty(name)) { throw new ArgumentException(); } if (string.IsNullOrEmpty(folderPath)) { throw new ArgumentException(); } if (string.IsNullOrEmpty(databasePath)) { throw new ArgumentException(); } _name = name; _folderPath = folderPath; _description = description; _creationTime = creationTime; // make project database path. By default it has common path with project xml file _databasePath = databasePath; _projectProperties = new ProjectProperties(propertiesMap); _projectArchivingSettings = new ProjectArchivingSettings(_projectProperties); _breaksSettings = new BreaksSettings(_projectProperties); }
/// <summary> /// Constructor. /// </summary> /// <param name="plannedDate">Date on which routes are planning.</param> /// <param name="settings">Breaks settings.</param> public BreaksConverter(DateTime plannedDate, BreaksSettings settings) { _plannedDate = plannedDate; _settings = settings; }