MindFusion.Wpf Pack Programmer's Guide
IProjectViewModel Methods
 


 Public Methods

  Name Description

AddActivity

Adds an existing activity to the project.

AddDependency

Adds an existing dependency to the project.

AddResource

Adds an existing resource to the project.

AddResourceAllocation

Adds an existing resource allocation to the project.

CancelCompositeOperation

Stops recording undo/redo commands into a CompositeCommand and discards the records created so far.

ClearActivities

Removes all activities from the project.

ClearDependencies

Removes all dependencies from the project.

ClearResourceAllocations

Removes all resource allocations from the project.

ClearResources

Removes all resources from the project.

CommitCompositeOperation

Stops recording undo/redo commands into a CompositeCommand and saves the composite in the history queue.

CreateActivity

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

CreateDependency

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

CreateResource

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

CreateResourceAllocation

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.

DoCreateActivity

Creates and adds a new activity to the project.

DoCreateDependency

Creates and adds a new dependency to the project.

DoCreateResource

Creates and adds a new resource to the project.

DoCreateResourceAllocation

Creates and adds a new resource allocation to the project.

DoRemoveActivity

Removes the specified activity from the project.

DoRemoveDependency

Removes the specified dependency from the project.

DoRemoveResource

Removes the specified resource from the project.

DoRemoveResourceAllocation

Removes the specified resource allocation from the project.

ExecuteCommand

Executes the specified command on this project.

FindCriticalPath

Finds the critical path in the project.

FindFreePeriod

Overloaded. Finds an unallocated period with the specified duration for the specified resource, within the specified time interval.

InvalidateBounds

Invalidates the bounds of all activities in the project.

PurgeUndoHistory

Purges all commands from the underlying undo history. If undo is not enabled, nothing happens.

RaiseActionRedone

Raises the ActionRedone event.

RaiseActionUndone

Raises the ActionUndone event.

Redo

Executes again an action saved in the command history.

RemoveActivity

Removes the specified activity from the project.

RemoveDependency

Removes the specified dependency from the project.

RemoveResource

Removes the specified resource from the project.

RemoveResourceAllocation

Removes the specified resource allocation from the project.

StartCompositeOperation

Starts recording undo/redo commands into a CompositeCommand.

Undo

Undoes an action saved in the command history.

 See Also

IProjectViewModel Interface
MindFusion.DataViews.Wpf Namespace