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





Adds an existing activity to the project.

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

 Syntax

C#  Copy Code

public abstract bool AddActivity (
    IActivityViewModel activity,
    int index
)

Visual Basic  Copy Code

Public MustOverride Function AddActivity ( _
    activity As IActivityViewModel, _
    index As Integer _
) As Boolean

 Parameters

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

 See Also

IProjectViewModel Members
IProjectViewModel Interface
MindFusion.DataViews.Silverlight Namespace