MindFusion.Scheduling for Silverlight Programmer's Guide
IProjectViewModel.FindFreePeriod Method (IResourceViewModel, TimeSpan)
See Also
 





Finds an unallocated period with the specified duration for the specified resource, within the project's time interval.

Namespace: MindFusion.DataViews.Silverlight
Assembly: MindFusion.DataViews.Silverlight

 Syntax

C#  Copy Code

DateTime FindFreePeriod (
    IResourceViewModel resource,
    TimeSpan duration
)

Visual Basic  Copy Code

Function FindFreePeriod( _
    resource As IResourceViewModel, _
    duration As TimeSpan _
) As DateTime

 Parameters

resource

The resource for which to find a free period.

duration

The required duration of the searched period.

 Return Value

The start time of the found period, or DateTime.MinValue, if the request cannot be satisfied.

 See Also

FindFreePeriod Method Overload List
IProjectViewModel Members
IProjectViewModel Interface
MindFusion.DataViews.Silverlight Namespace