C# Class PurplePen.Tests.TestUI

Inheritance: IUserInterface
Mostrar archivo Open project: petergolde/PurplePen Class Usage Examples

Public Properties

Property Type Description
controller Controller
expectedMissingMapFile string
newMapDpi float
newMapType MapType
output System.IO.TextWriter
returnOpenFileName string
returnQuestion System.Windows.Forms.DialogResult
symbolDB SymbolDB

Public Methods

Method Description
Create ( ) : TestUI
EndProgressDialog ( ) : void
ErrorMessage ( string message ) : void
FindMissingMapFile ( string missingMapFile ) : bool
GetCurrentLocation ( PointF &location, float &pixelSize ) : bool
GetOpenFileName ( ) : string
InfoMessage ( string message ) : void
Initialize ( Controller controller, SymbolDB symbolDB ) : void
InitiateMapDragging ( PointF initialPos, System buttonEnd ) : void
LeftButtonDown ( float x, float y, float pixelSize ) : MapViewer.DragAction
MouseMoved ( float x, float y, float pixelSize ) : void
MovingSharedControl ( string controlCode, string otherCourses ) : System.Windows.Forms.DialogResult
OKCancelMessage ( string message, bool okDefault ) : bool
ShowProgressDialog ( bool knownDuration ) : void
ShowTopologyView ( ) : void
UpdateProgressDialog ( string info, double fractionDone ) : bool
WarningMessage ( string message ) : void
YesNoCancelQuestion ( string message, bool yesDefault ) : System.Windows.Forms.DialogResult
YesNoQuestion ( string message, bool yesDefault ) : bool

Method Details

Create() public static method

public static Create ( ) : TestUI
return TestUI

EndProgressDialog() public method

public EndProgressDialog ( ) : void
return void

ErrorMessage() public method

public ErrorMessage ( string message ) : void
message string
return void

FindMissingMapFile() public method

public FindMissingMapFile ( string missingMapFile ) : bool
missingMapFile string
return bool

GetCurrentLocation() public method

public GetCurrentLocation ( PointF &location, float &pixelSize ) : bool
location System.Drawing.PointF
pixelSize float
return bool

GetOpenFileName() public method

public GetOpenFileName ( ) : string
return string

InfoMessage() public method

public InfoMessage ( string message ) : void
message string
return void

Initialize() public method

public Initialize ( Controller controller, SymbolDB symbolDB ) : void
controller Controller
symbolDB SymbolDB
return void

InitiateMapDragging() public method

public InitiateMapDragging ( PointF initialPos, System buttonEnd ) : void
initialPos System.Drawing.PointF
buttonEnd System
return void

LeftButtonDown() public method

public LeftButtonDown ( float x, float y, float pixelSize ) : MapViewer.DragAction
x float
y float
pixelSize float
return MapViewer.DragAction

MouseMoved() public method

public MouseMoved ( float x, float y, float pixelSize ) : void
x float
y float
pixelSize float
return void

MovingSharedControl() public method

public MovingSharedControl ( string controlCode, string otherCourses ) : System.Windows.Forms.DialogResult
controlCode string
otherCourses string
return System.Windows.Forms.DialogResult

OKCancelMessage() public method

public OKCancelMessage ( string message, bool okDefault ) : bool
message string
okDefault bool
return bool

ShowProgressDialog() public method

public ShowProgressDialog ( bool knownDuration ) : void
knownDuration bool
return void

ShowTopologyView() public method

public ShowTopologyView ( ) : void
return void

UpdateProgressDialog() public method

public UpdateProgressDialog ( string info, double fractionDone ) : bool
info string
fractionDone double
return bool

WarningMessage() public method

public WarningMessage ( string message ) : void
message string
return void

YesNoCancelQuestion() public method

public YesNoCancelQuestion ( string message, bool yesDefault ) : System.Windows.Forms.DialogResult
message string
yesDefault bool
return System.Windows.Forms.DialogResult

YesNoQuestion() public method

public YesNoQuestion ( string message, bool yesDefault ) : bool
message string
yesDefault bool
return bool

Property Details

controller public_oe property

public Controller controller
return Controller

expectedMissingMapFile public_oe property

public string expectedMissingMapFile
return string

newMapDpi public_oe property

public float newMapDpi
return float

newMapType public_oe property

public MapType newMapType
return MapType

output public_oe property

public TextWriter,System.IO output
return System.IO.TextWriter

returnOpenFileName public_oe property

public string returnOpenFileName
return string

returnQuestion public_oe property

public System.Windows.Forms.DialogResult returnQuestion
return System.Windows.Forms.DialogResult

symbolDB public_oe property

public SymbolDB symbolDB
return SymbolDB