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





Adds an existing resource allocation to the project.

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

 Syntax

C#  Copy Code

public abstract bool AddResourceAllocation (
    IResourceAllocationViewModel allocation,
    int index
)

Visual Basic  Copy Code

Public MustOverride Function AddResourceAllocation ( _
    allocation As IResourceAllocationViewModel, _
    index As Integer _
) As Boolean

 Parameters

allocation
The allocation to add to the project.
activityIndex
The 0-based index of the resource allocation within its related activity, or -1, to add the allocation at the end of the list.
resourceIndex

The 0-based index of the resource allocation within its related resource, or -1, to add the allocation at the end of the list.

 Return Value

true if the operation was successful; otherwise, false.

 Remarks

This method is not subject to undo/redo and should not be invoked directly. If you need to add new resource allocation to the model, call CreateResourceAllocation.

 See Also

IProjectViewModel Members
IProjectViewModel Interface
MindFusion.DataViews.Silverlight Namespace