C# 클래스 PurplePen.EventDB

파일 보기 프로젝트 열기: petergolde/PurplePen 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
FixControlPointGaps ( ) : void
FixCourseSortOrders ( ) : void
FixPrintAreas ( ) : void

메소드 상세

AddControlPoint() 공개 메소드

public AddControlPoint ( ControlPoint control ) : Id
control ControlPoint
리턴 Id

AddCourse() 공개 메소드

public AddCourse ( Course course ) : Id
course Course
리턴 Id

AddCourseControl() 공개 메소드

public AddCourseControl ( CourseControl courseControl ) : Id
courseControl CourseControl
리턴 Id

AddLeg() 공개 메소드

public AddLeg ( Leg leg ) : Id
leg Leg
리턴 Id

AddSpecial() 공개 메소드

public AddSpecial ( Special special ) : Id
special Special
리턴 Id

ChangeEvent() 공개 메소드

public ChangeEvent ( Event e ) : void
e Event
리턴 void

CheckControlId() 공개 메소드

public CheckControlId ( Id id ) : void
id Id
리턴 void

CheckCourseControlId() 공개 메소드

public CheckCourseControlId ( Id id ) : void
id Id
리턴 void

CheckCourseId() 공개 메소드

public CheckCourseId ( Id id ) : void
id Id
리턴 void

CheckLegId() 공개 메소드

public CheckLegId ( Id id ) : void
id Id
리턴 void

CheckSpecialId() 공개 메소드

public CheckSpecialId ( Id id ) : void
id Id
리턴 void

EventDB() 공개 메소드

public EventDB ( UndoMgr undomgr ) : System
undomgr UndoMgr
리턴 System

GetControl() 공개 메소드

public GetControl ( Id controlId ) : ControlPoint
controlId Id
리턴 ControlPoint

GetCourse() 공개 메소드

public GetCourse ( Id courseId ) : Course
courseId Id
리턴 Course

GetCourseControl() 공개 메소드

public GetCourseControl ( Id courseControlId ) : CourseControl
courseControlId Id
리턴 CourseControl

GetEvent() 공개 메소드

public GetEvent ( ) : Event
리턴 Event

GetLeg() 공개 메소드

public GetLeg ( Id legId ) : Leg
legId Id
리턴 Leg

GetSpecial() 공개 메소드

public GetSpecial ( Id specialId ) : Special
specialId Id
리턴 Special

IsControlPresent() 공개 메소드

public IsControlPresent ( Id id ) : bool
id Id
리턴 bool

IsCourseControlPresent() 공개 메소드

public IsCourseControlPresent ( Id id ) : bool
id Id
리턴 bool

IsCoursePresent() 공개 메소드

public IsCoursePresent ( Id id ) : bool
id Id
리턴 bool

IsLegPresent() 공개 메소드

public IsLegPresent ( Id id ) : bool
id Id
리턴 bool

IsSpecialPresent() 공개 메소드

public IsSpecialPresent ( Id id ) : bool
id Id
리턴 bool

Load() 공개 메소드

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

RemoveControlPoint() 공개 메소드

public RemoveControlPoint ( Id id ) : void
id Id
리턴 void

RemoveCourse() 공개 메소드

public RemoveCourse ( Id id ) : void
id Id
리턴 void

RemoveCourseControl() 공개 메소드

public RemoveCourseControl ( Id id ) : void
id Id
리턴 void

RemoveLeg() 공개 메소드

public RemoveLeg ( Id id ) : void
id Id
리턴 void

RemoveSpecial() 공개 메소드

public RemoveSpecial ( Id id ) : void
id Id
리턴 void

ReplaceControlPoint() 공개 메소드

public ReplaceControlPoint ( Id id, ControlPoint control ) : void
id Id
control ControlPoint
리턴 void

ReplaceCourse() 공개 메소드

public ReplaceCourse ( Id id, Course course ) : void
id Id
course Course
리턴 void

ReplaceCourseControl() 공개 메소드

public ReplaceCourseControl ( Id id, CourseControl courseControl ) : void
id Id
courseControl CourseControl
리턴 void

ReplaceLeg() 공개 메소드

public ReplaceLeg ( Id id, Leg leg ) : void
id Id
leg Leg
리턴 void

ReplaceSpecial() 공개 메소드

public ReplaceSpecial ( Id id, Special special ) : void
id Id
special Special
리턴 void

Save() 공개 메소드

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

Validate() 공개 메소드

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