Click or drag to resize

ProjectCloneController Class

Controller class which manages the clones for a project.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ApplicationCore.ProjectClassesProjectCloneController

Namespace:  SD.LLBLGen.Pro.ApplicationCore.ProjectClasses
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.10.0.0 (5.10.0)
Syntax
public class ProjectCloneController

The ProjectCloneController type exposes the following members.

Constructors
  NameDescription
Public methodProjectCloneController
CTor
Top
Properties
  NameDescription
Public propertyActiveClone
Gets the active clone. Can be null, in which case there's no active clone (project hasn't been cloned yet)
Public propertyKnownClones
Gets a readonly list of clones which are known by this controller.
Top
Methods
  NameDescription
Public methodActivateClone
Makes the clone specified the active clone. This means the files of the clone are copied as the project file to load. It will first preserve the loaded project to the files of the clone that's active.
Public methodCreateClone
Creates a new clone from the clone specified.
Public methodDeleteAllCloneFiles
Deletes the clones folder
Public methodDeleteClone
Deletes the clone with id specified and reparents the child clones to the parent of the clone specified. Assumes the clones to delete aren't the active clone. If toDelete is the root, false is returned. The files of the clone are removed from the clones folder.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetClone
Returns the clone with the id specified or null if not found.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodProjectClosing
Called when the active project is about to be closed
Public methodProjectLoaded
Method which is called to signal the controller that a new project has been loaded
Public methodProjectSaved
Called when the currently loaded project is saved
Public methodProjectSavedAs
Called when the active project was saved to a different filename. This means the clones of the original filename are no longer valid for the new project filename, so we have to reset the internal structures.
Public methodReset
Resets this instance, which means after this method for the currently loaded project there's no known clone information in memory. THere might be on disk, but not in memory.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
All methods in this class assume the current project has been saved successfully and / or is unloaded. If the project file is needed, it has to be passed into the method; the methods in this class can't assume the project file is available.
See Also