File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments