MindFusion.Scheduling for Silverlight Programmer's Guide
IProjectViewModel Members
Properties Methods Events
 


Represents a project in the ViewModel.

The following tables list the members exposed by the IProjectViewModel type.

 Public Properties

  Name Description

Activities

Gets the top-level activities in the ViewModel.

ActivityActivator

Gets or sets a delegate that can be used to create new activities.

ActivityType

Gets or sets the type of activities created through the ViewModel.

CanRedo

Gets or sets a value indicating whether there is a command in the redo history which can be redone.

CanUndo

Gets or sets a value indicating whether there is a command in the undo history which can be undone.

Dependencies

Gets all dependencies in the ViewModel.

DependencyActivator

Gets or sets a delegate that can be used to create new dependencies.

DependencyType

Gets or sets the type of dependencies created through the ViewModel.

IsEndTimeSticky

Gets or sets a value indicating whether to recalculate Activity.Duration or Activity.EndTime when StartTime changes.

NonWorkingDays

Gets or sets the non-working days for a week in a project.

NonWorkingHours

Gets or sets the non-working hours for a working day in a project.

ProjectEnd

Gets or sets a date, indicating the end of a project.

ProjectStart

Gets or sets a date, indicating the start of a project.

RedoCommand

Gets a command which performs redo on the last undone action in the command history.

ResourceActivator

Gets or sets a delegate that can be used to create new resources.

ResourceAllocationActivator

Gets or sets a delegate that can be used to create new resource allocations.

ResourceAllocations

Gets all resource allocations in the ViewModel.

ResourceAllocationType

Gets or sets the type of resource allocations created through the ViewModel.

Resources

Gets the top-level resources in the ViewModel.

ResourceType

Gets or sets the type of resources created through the ViewModel.

UndoCommand

Gets a command which performs undo on the current action saved in the command history.

UndoEnabled

Gets or sets a value indicating whether saving action records for later undo is enabled.

 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.

 Public Events

  Name Description

ActionRedone

Raised when an action is redone.

ActionUndone

Raised when an action is undone.

Changed

Raised when the activities or dependencies in the project are changed.

InvalidateActivityIndexes

Raised when the activity indices need to be reevaluated.

 See Also

IProjectViewModel Interface
MindFusion.DataViews.Silverlight Namespace