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





Adds an existing resource to the project.

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

 Syntax

C#  Copy Code

public abstract bool AddResource (
    IResourceViewModel resource,
    int index
)

Visual Basic  Copy Code

Public MustOverride Function AddResource ( _
    resource As IResourceViewModel, _
    index As Integer _
) As Boolean

 Parameters

resource
The resource to add to the project.
index
The 0-based index of the resource, or -1, to add the resource 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 to the model, call CreateResource.

 See Also

IProjectViewModel Members
IProjectViewModel Interface
MindFusion.DataViews.Silverlight Namespace