Skip to content

Commit ef0ec3c

Browse files
committed
wip
1 parent 05e12b2 commit ef0ec3c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ShiftSharp/WorkSchedule.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class WorkSchedule : Named
3939
private const string MESSAGE_RESOURCE_NAME = "./Resources/Message.properties";
4040

4141
// resource manager for exception messages
42-
internal static PropertyManager MessagesManager;
42+
internal static PropertyManager MessagesManager = new PropertyManager(MESSAGE_RESOURCE_NAME);
4343

4444
// cached time zone for working time calculations
4545
private DateTimeZone ZONE_ID = DateTimeZone.Utc;
@@ -53,6 +53,10 @@ public class WorkSchedule : Named
5353
// holidays and planned downtime
5454
private List<NonWorkingPeriod> nonWorkingPeriods = new List<NonWorkingPeriod>();
5555

56+
public WorkSchedule() : base()
57+
{
58+
}
59+
5660
/**
5761
* Construct a work schedule
5862
*
@@ -65,8 +69,6 @@ public class WorkSchedule : Named
6569
*/
6670
public WorkSchedule(string name, string description) : base(name, description)
6771
{
68-
// localizable string managers
69-
MessagesManager = new PropertyManager(MESSAGE_RESOURCE_NAME);
7072
}
7173

7274
/// <summary>

0 commit comments

Comments
 (0)