C# Class PurplePen.EventDB

Afficher le fichier Open project: petergolde/PurplePen Class Usage Examples

Méthodes publiques

Méthode Description
AddControlPoint ( ControlPoint control ) : Id
AddCourse ( Course course ) : Id
AddCourseControl ( CourseControl courseControl ) : Id
AddLeg ( Leg leg ) : Id
AddSpecial ( Special special ) : Id
ChangeEvent ( Event e ) : void
CheckControlId ( Id id ) : void
CheckCourseControlId ( Id id ) : void
CheckCourseId ( Id id ) : void
CheckLegId ( Id id ) : void
CheckSpecialId ( Id id ) : void
EventDB ( UndoMgr undomgr ) : System
GetControl ( Id controlId ) : ControlPoint
GetCourse ( Id courseId ) : Course
GetCourseControl ( Id courseControlId ) : CourseControl
GetEvent ( ) : Event
GetLeg ( Id legId ) : Leg
GetSpecial ( Id specialId ) : Special
IsControlPresent ( Id id ) : bool
IsCourseControlPresent ( Id id ) : bool
IsCoursePresent ( Id id ) : bool
IsLegPresent ( Id id ) : bool
IsSpecialPresent ( Id id ) : bool
Load ( string filename ) : void

Load the entire state of the event DB from a file.

RemoveControlPoint ( Id id ) : void
RemoveCourse ( Id id ) : void
RemoveCourseControl ( Id id ) : void
RemoveLeg ( Id id ) : void
RemoveSpecial ( Id id ) : void
ReplaceControlPoint ( Id id, ControlPoint control ) : void
ReplaceCourse ( Id id, Course course ) : void
ReplaceCourseControl ( Id id, CourseControl courseControl ) : void
ReplaceLeg ( Id id, Leg leg ) : void
ReplaceSpecial ( Id id, Special special ) : void
Save ( string filename ) : void

Save the entire state of the event DB to a file.

Validate ( ) : void

Validate that items in the event DB are internally consistent.

Private Methods

Méthode Description
FixControlPointGaps ( ) : void
FixCourseSortOrders ( ) : void
FixPrintAreas ( ) : void

Method Details

AddControlPoint() public méthode

public AddControlPoint ( ControlPoint control ) : Id
control ControlPoint
Résultat Id

AddCourse() public méthode

public AddCourse ( Course course ) : Id
course Course
Résultat Id

AddCourseControl() public méthode

public AddCourseControl ( CourseControl courseControl ) : Id
courseControl CourseControl
Résultat Id

AddLeg() public méthode

public AddLeg ( Leg leg ) : Id
leg Leg
Résultat Id

AddSpecial() public méthode

public AddSpecial ( Special special ) : Id
special Special
Résultat Id

ChangeEvent() public méthode

public ChangeEvent ( Event e ) : void
e Event
Résultat void

CheckControlId() public méthode

public CheckControlId ( Id id ) : void
id Id
Résultat void

CheckCourseControlId() public méthode

public CheckCourseControlId ( Id id ) : void
id Id
Résultat void

CheckCourseId() public méthode

public CheckCourseId ( Id id ) : void
id Id
Résultat void

CheckLegId() public méthode

public CheckLegId ( Id id ) : void
id Id
Résultat void

CheckSpecialId() public méthode

public CheckSpecialId ( Id id ) : void
id Id
Résultat void

EventDB() public méthode

public EventDB ( UndoMgr undomgr ) : System
undomgr UndoMgr
Résultat System

GetControl() public méthode

public GetControl ( Id controlId ) : ControlPoint
controlId Id
Résultat ControlPoint

GetCourse() public méthode

public GetCourse ( Id courseId ) : Course
courseId Id
Résultat Course

GetCourseControl() public méthode

public GetCourseControl ( Id courseControlId ) : CourseControl
courseControlId Id
Résultat CourseControl

GetEvent() public méthode

public GetEvent ( ) : Event
Résultat Event

GetLeg() public méthode

public GetLeg ( Id legId ) : Leg
legId Id
Résultat Leg

GetSpecial() public méthode

public GetSpecial ( Id specialId ) : Special
specialId Id
Résultat Special

IsControlPresent() public méthode

public IsControlPresent ( Id id ) : bool
id Id
Résultat bool

IsCourseControlPresent() public méthode

public IsCourseControlPresent ( Id id ) : bool
id Id
Résultat bool

IsCoursePresent() public méthode

public IsCoursePresent ( Id id ) : bool
id Id
Résultat bool

IsLegPresent() public méthode

public IsLegPresent ( Id id ) : bool
id Id
Résultat bool

IsSpecialPresent() public méthode

public IsSpecialPresent ( Id id ) : bool
id Id
Résultat bool

Load() public méthode

Load the entire state of the event DB from a file.
public Load ( string filename ) : void
filename string
Résultat void

RemoveControlPoint() public méthode

public RemoveControlPoint ( Id id ) : void
id Id
Résultat void

RemoveCourse() public méthode

public RemoveCourse ( Id id ) : void
id Id
Résultat void

RemoveCourseControl() public méthode

public RemoveCourseControl ( Id id ) : void
id Id
Résultat void

RemoveLeg() public méthode

public RemoveLeg ( Id id ) : void
id Id
Résultat void

RemoveSpecial() public méthode

public RemoveSpecial ( Id id ) : void
id Id
Résultat void

ReplaceControlPoint() public méthode

public ReplaceControlPoint ( Id id, ControlPoint control ) : void
id Id
control ControlPoint
Résultat void

ReplaceCourse() public méthode

public ReplaceCourse ( Id id, Course course ) : void
id Id
course Course
Résultat void

ReplaceCourseControl() public méthode

public ReplaceCourseControl ( Id id, CourseControl courseControl ) : void
id Id
courseControl CourseControl
Résultat void

ReplaceLeg() public méthode

public ReplaceLeg ( Id id, Leg leg ) : void
id Id
leg Leg
Résultat void

ReplaceSpecial() public méthode

public ReplaceSpecial ( Id id, Special special ) : void
id Id
special Special
Résultat void

Save() public méthode

Save the entire state of the event DB to a file.
public Save ( string filename ) : void
filename string
Résultat void

Validate() public méthode

Validate that items in the event DB are internally consistent.
public Validate ( ) : void
Résultat void