C# Class PurplePen.EventDB

Exibir arquivo Open project: petergolde/PurplePen Class Usage Examples

Public Methods

Method 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

Method Description
FixControlPointGaps ( ) : void
FixCourseSortOrders ( ) : void
FixPrintAreas ( ) : void

Method Details

AddControlPoint() public method

public AddControlPoint ( ControlPoint control ) : Id
control ControlPoint
return Id

AddCourse() public method

public AddCourse ( Course course ) : Id
course Course
return Id

AddCourseControl() public method

public AddCourseControl ( CourseControl courseControl ) : Id
courseControl CourseControl
return Id

AddLeg() public method

public AddLeg ( Leg leg ) : Id
leg Leg
return Id

AddSpecial() public method

public AddSpecial ( Special special ) : Id
special Special
return Id

ChangeEvent() public method

public ChangeEvent ( Event e ) : void
e Event
return void

CheckControlId() public method

public CheckControlId ( Id id ) : void
id Id
return void

CheckCourseControlId() public method

public CheckCourseControlId ( Id id ) : void
id Id
return void

CheckCourseId() public method

public CheckCourseId ( Id id ) : void
id Id
return void

CheckLegId() public method

public CheckLegId ( Id id ) : void
id Id
return void

CheckSpecialId() public method

public CheckSpecialId ( Id id ) : void
id Id
return void

EventDB() public method

public EventDB ( UndoMgr undomgr ) : System
undomgr UndoMgr
return System

GetControl() public method

public GetControl ( Id controlId ) : ControlPoint
controlId Id
return ControlPoint

GetCourse() public method

public GetCourse ( Id courseId ) : Course
courseId Id
return Course

GetCourseControl() public method

public GetCourseControl ( Id courseControlId ) : CourseControl
courseControlId Id
return CourseControl

GetEvent() public method

public GetEvent ( ) : Event
return Event

GetLeg() public method

public GetLeg ( Id legId ) : Leg
legId Id
return Leg

GetSpecial() public method

public GetSpecial ( Id specialId ) : Special
specialId Id
return Special

IsControlPresent() public method

public IsControlPresent ( Id id ) : bool
id Id
return bool

IsCourseControlPresent() public method

public IsCourseControlPresent ( Id id ) : bool
id Id
return bool

IsCoursePresent() public method

public IsCoursePresent ( Id id ) : bool
id Id
return bool

IsLegPresent() public method

public IsLegPresent ( Id id ) : bool
id Id
return bool

IsSpecialPresent() public method

public IsSpecialPresent ( Id id ) : bool
id Id
return bool

Load() public method

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

RemoveControlPoint() public method

public RemoveControlPoint ( Id id ) : void
id Id
return void

RemoveCourse() public method

public RemoveCourse ( Id id ) : void
id Id
return void

RemoveCourseControl() public method

public RemoveCourseControl ( Id id ) : void
id Id
return void

RemoveLeg() public method

public RemoveLeg ( Id id ) : void
id Id
return void

RemoveSpecial() public method

public RemoveSpecial ( Id id ) : void
id Id
return void

ReplaceControlPoint() public method

public ReplaceControlPoint ( Id id, ControlPoint control ) : void
id Id
control ControlPoint
return void

ReplaceCourse() public method

public ReplaceCourse ( Id id, Course course ) : void
id Id
course Course
return void

ReplaceCourseControl() public method

public ReplaceCourseControl ( Id id, CourseControl courseControl ) : void
id Id
courseControl CourseControl
return void

ReplaceLeg() public method

public ReplaceLeg ( Id id, Leg leg ) : void
id Id
leg Leg
return void

ReplaceSpecial() public method

public ReplaceSpecial ( Id id, Special special ) : void
id Id
special Special
return void

Save() public method

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

Validate() public method

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