MindFusion.Scheduling for Silverlight Programmer's Guide
IProjectViewModel.CreateResourceAllocation Method
See Also
 





Creates and adds a new resource allocation to the project. A respective object of type ResourceAllocationType is created and added to the underlying model as well.

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

 Syntax

C#  Copy Code

public abstract IResourceAllocationViewModel CreateResourceAllocation (
    IResourceViewModel resource,
    IActivityViewModel activity
)

Visual Basic  Copy Code

Public MustOverride Function CreateResourceAllocation ( _
    resource As IResourceViewModel, _
    activity As IActivityViewModel _
) As IResourceAllocationViewModel

 Parameters

resource
The resource related to the new allocation.
activity
The activity related to the new allocation.

 Return Value

An IResourceAllocationViewModel representing the newly created resource allocation, or null (Nothing in Visual Basic), if the operation could not be completed.

 See Also

IProjectViewModel Members
IProjectViewModel Interface
MindFusion.DataViews.Silverlight Namespace