MindFusion.Wpf Pack Programmer's Guide
IProjectViewModel.DoCreateResourceAllocation Method
See Also
 





Creates and adds a new resource allocation to the project.

Namespace: MindFusion.DataViews.Wpf
Assembly: MindFusion.DataViews.Wpf

 Syntax

C#  Copy Code

public abstract IResourceAllocationViewModel DoCreateResourceAllocation (
    IResourceViewModel resource,
    IActivityViewModel activity
)

Visual Basic  Copy Code

Public MustOverride Function DoCreateResourceAllocation ( _
    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.

 Remarks

This method is not subject to undo/redo and should not be invoked directly. Instead, call the CreateResourceAllocation method, which will register the operation for subsequent undo.

 See Also

IProjectViewModel Members
IProjectViewModel Interface
MindFusion.DataViews.Wpf Namespace