In this example we will change some of the default settings. For this example we will presume that we have created or opened a project file:
First we'll get default settings of the project file:
[C#]
DefaultSettings ds = file.DefaultSettings;
[Visual Basic]
Dim ds As DefaultSettings = file.DefaultSettings
For this example we will change default standard and overtime rates:
[C#]
ds.DefaultStandardRate = new PayRate(25, TimeUnit.Days);
ds.DefaultOvertimeRate = new PayRate(40, TimeUnit.Days);
[Visual Basic]
ds.DefaultStandardRate = New PayRate(25, TimeUnit.Days)
ds.DefaultOvertimeRate = New PayRate(40, TimeUnit.Days)