C# Class PurplePen.MainFrame

Inheritance: System.Windows.Forms.Form, IUserInterface
Afficher le fichier Open project: petergolde/PurplePen Class Usage Examples

Méthodes publiques

Méthode Description
EndProgressDialog ( ) : void
ErrorMessage ( string message ) : void
FindMissingMapFile ( string missingMapFile ) : bool
GetCurrentLocation ( PointF &location, float &pixelSize ) : bool
GetOpenFileName ( ) : string
GetSaveFileName ( string initialName ) : string
InfoMessage ( string message ) : void
Initialize ( Controller controller, SymbolDB symbolDB ) : void
InitiateMapDragging ( PointF initialPos, System buttonEnd ) : void
MainFrame ( ) : System
MovingSharedControl ( string controlCode, string otherCourses ) : 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 ) : DialogResult
YesNoQuestion ( string message, bool yesDefault ) : bool

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Private Methods

Méthode Description
Application_Idle ( object sender, EventArgs e ) : void
CheckForMissingFonts ( ) : void
CheckForNonRenderableObjects ( bool onlyOnce, bool showCancelAndContinue ) : bool
ExportVariationReport ( TeamVariationsForm form, TeamVariationsForm exportFileType, string exportFileName ) : void
HandleMouseEvent ( Pane pane, MapViewer activePaneMapViewer, MouseAction action, int buttonNumber, bool whichButtonsDown, PointF location, PointF locationStart ) : MapViewer.DragAction
HasSelectionDescChanged ( TextPart newSelectionDesc ) : bool
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

InitializeCoursePropertiesDialogWithCurrentValues ( AddCourse addCourseDialog ) : void
MainFrame_Activated ( object sender, EventArgs e ) : void
MainFrame_FormClosed ( object sender, System.Windows.Forms.FormClosedEventArgs e ) : void
MainFrame_FormClosing ( object sender, FormClosingEventArgs e ) : void
MainFrame_Load ( object sender, EventArgs e ) : void
MainFrame_Shown ( object sender, EventArgs e ) : void
ReloadMainFrameStrings ( ) : void
SetBannerVisibility ( bool bannerVisible ) : void
SetMenuIcons ( ) : void
SetPrintArea ( PrintAreaKind printAreaKind ) : void
SetQuality ( bool highQuality ) : void
SetVariationReportBody ( TeamVariationsForm form ) : void
ShowHelp ( HelpNavigator navigator, object parameter ) : void
ShowRectangle ( RectangleF bounds ) : void
TranslatedWebSiteExists ( ) : bool
UpdateComponentProperty ( ComponentResourceManager resources, object control, string componentName, string propertyName ) : void
UpdateComponentText ( ComponentResourceManager resources, object control, string componentName ) : void
UpdateCourse ( ) : void
UpdateCustomSymbolText ( ) : void
UpdateDescription ( ) : void
UpdateHighlight ( ) : void
UpdateLabelsAndScrollBars ( ) : void
UpdateMapFile ( ) : void
UpdateMenuItem ( ToolStripItem menuItem, CommandStatus status ) : void
UpdateMenusToolbarButtons ( ) : void
UpdatePartBanner ( ) : void
UpdatePartBannerProperties ( ) : void
UpdatePointerLabel ( bool inViewport, System location ) : void
UpdatePrintArea ( ) : void
UpdateSelection ( ) : void
UpdateSelectionPanel ( ) : void
UpdateStatusText ( ) : void
UpdateTabs ( ) : void
UpdateTopology ( ) : void
UpdateTopologyHighlight ( ) : void
UpdateTopologyScrollBars ( ) : void
UpdateWindowTitle ( ) : void
aboutMenu_Click ( object sender, EventArgs e ) : void
addBendMenu_Click ( object sender, EventArgs e ) : void
addBoundaryMenu_Click ( object sender, EventArgs e ) : void
addControlMenu_Click ( object sender, EventArgs e ) : void
addCourseMenu_Click ( object sender, EventArgs e ) : void
addDangerousMenu_Click ( object sender, EventArgs e ) : void
addDescriptionLanguageMenu_Click ( object sender, EventArgs e ) : void
addDescriptionsMenu_Click ( object sender, EventArgs e ) : void
addFinishMenu_Click ( object sender, EventArgs e ) : void
addFirstAidMenu_Click ( object sender, EventArgs e ) : void
addForbiddenMenu_Click ( object sender, EventArgs e ) : void
addGapMenu_Click ( object sender, EventArgs e ) : void
addImageMenu_Click ( object sender, EventArgs e ) : void
addLineMenu_Click ( object sender, EventArgs e ) : void
addMandatoryCrossingMenu_Click ( object sender, EventArgs e ) : void
addMapExchangeControl_Click ( object sender, EventArgs e ) : void
addMapExchangeSeparate_Click ( object sender, EventArgs e ) : void
addOptCrossingMenu_Click ( object sender, EventArgs e ) : void
addOutOfBoundsMenu_Click ( object sender, EventArgs e ) : void
addRectangleMenu_Click ( object sender, EventArgs e ) : void
addRegMarkMenu_Click ( object sender, EventArgs e ) : void
addStartMenu_Click ( object sender, EventArgs e ) : void
addTextLineMenu_Click ( object sender, EventArgs e ) : void
addTextMenu_Click ( object sender, EventArgs e ) : void
addTranslatedTextsMenu_Click ( object sender, EventArgs e ) : void
addVariationMenu_Click ( object sender, EventArgs e ) : void
addWaterMenu_Click ( object sender, EventArgs e ) : void
allControlsMenu_Click ( object sender, EventArgs e ) : void
autoNumberingMenu_Click ( object sender, EventArgs e ) : void
beginFlaggingMenu_Click ( object sender, EventArgs e ) : void
cancelMenu_Click ( object sender, EventArgs e ) : void
changeCodesMenu_Click ( object sender, EventArgs e ) : void
changeDisplayedCoursesMenu_Click ( object sender, EventArgs e ) : void
changeLineAppearanceMenu_Click ( object sender, EventArgs e ) : void
changeMapFileMenu_Click ( object sender, EventArgs e ) : void
changeTextMenu_Click ( object sender, EventArgs e ) : void
controlAndLegLoadMenu_Click ( object sender, EventArgs e ) : void
controlCrossrefMenu_Click ( object sender, EventArgs e ) : void
controlTesterMenu_Click ( object sender, EventArgs e ) : void
courseLoadMenu_Click ( object sender, EventArgs e ) : void
courseOrderMenu_Click ( object sender, EventArgs e ) : void
coursePartBanner_PropertiesClicked ( object sender, EventArgs e ) : void
coursePartBanner_SelectedPartChanged ( object sender, EventArgs e ) : void
coursePartBanner_SelectedVariationChanged ( object sender, EventArgs e ) : void
courseSelectorTesterMenu_Click ( object sender, EventArgs e ) : void
courseSummaryMenu_Click ( object sender, EventArgs e ) : void
courseTabs_Selected ( object sender, System.Windows.Forms.TabControlEventArgs e ) : void
courseVariationReportMenu_Click ( object sender, EventArgs e ) : void
crashToolStripMenuItem_Click ( object sender, EventArgs e ) : void
createCoursePdfMenu_Click ( object sender, EventArgs e ) : void
createGpxMenu_Click ( object sender, EventArgs e ) : void
createOcadFilesMenu_Click ( object sender, EventArgs e ) : void
createRouteGadgetFilesMenu_Click ( object sender, EventArgs e ) : void
createXmlMenu_Click ( object sender, EventArgs e ) : void
customizeCourseAppearanceMenu_Click ( object sender, EventArgs e ) : void
customizeDescriptionsMenu_Click ( object sender, EventArgs e ) : void
deleteCourseMenu_Click ( object sender, EventArgs e ) : void
deleteForkMenu_Click ( object sender, EventArgs e ) : void
deleteMenu_Click ( object sender, EventArgs e ) : void
descriptionBrowserMenu_Click ( object sender, EventArgs e ) : void
descriptionControl_Change ( DescriptionControl sender, DescriptionControl kind, int line, int box, object newValue ) : void
descriptionControl_SelectedIndexChange ( object sender, EventArgs e ) : void
donateWebSiteMenu_Click ( object sender, EventArgs e ) : void
dotGridTesterToolStripMenuItem_Click ( object sender, EventArgs e ) : void
dumpOCADFileMenu_Click ( object sender, EventArgs e ) : void
duplicateCourseMenu_Click ( object sender, EventArgs e ) : void
endFlaggingMenu_Click ( object sender, EventArgs e ) : void
entireCourseMenu_Click ( object sender, EventArgs e ) : void
entireFlaggingMenu_Click ( object sender, EventArgs e ) : void
entireMapMenu_Click ( object sender, EventArgs e ) : void
eventAuditMenu_Click ( object sender, EventArgs e ) : void
exitMenu_Click ( object sender, EventArgs e ) : void
fontMetricsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
helpContentsMenu_Click ( object sender, EventArgs e ) : void
helpIndexMenu_Click ( object sender, EventArgs e ) : void
helpMenu_DropDownOpening ( object sender, EventArgs e ) : void
helpTranslatedMenu_Click ( object sender, EventArgs e ) : void
highQualityMenu_Click ( object sender, EventArgs e ) : void
horizScroll_Scroll ( object sender, ScrollEventArgs e ) : void
intensityMenu_Click ( object sender, EventArgs e ) : void
legLengthsMenu_Click ( object sender, EventArgs e ) : void
mainWebSiteToolMenu_Click ( object sender, EventArgs e ) : void
mapTesterMenu_Click ( object sender, EventArgs e ) : void
mapViewerTopology_OnMouseEvent ( object sender, MouseAction action, int buttonNumber, bool whichButtonsDown, PointF location, PointF locationStart ) : MapViewer.DragAction
mapViewerTopology_OnPointerHover ( object sender, bool inViewport, PointF location ) : void
mapViewerTopology_OnViewportChange ( object sender, EventArgs e ) : void
mapViewerTopology_Resize ( object sender, EventArgs e ) : void
mapViewer_KeyDown ( object sender, KeyEventArgs e ) : void
mapViewer_MouseEnter ( object sender, EventArgs e ) : void
mapViewer_OnMouseEvent ( object sender, MouseAction action, int buttonNumber, bool whichButtonsDown, PointF location, PointF locationStart ) : MapViewer.DragAction
mapViewer_OnPointerHover ( object sender, bool inViewport, PointF location ) : void
mapViewer_OnPointerMove ( object sender, bool inViewport, PointF location ) : void
mapViewer_OnViewportChange ( object sender, EventArgs e ) : void
mergeSymbolsMenu_Click ( object sender, EventArgs e ) : void
newEventMenu_Click ( object sender, EventArgs e ) : void
noFlaggingMenu_Click ( object sender, EventArgs e ) : void
normalQualityMenu_Click ( object sender, EventArgs e ) : void
openMenu_Click ( object sender, EventArgs e ) : void
printAreaAllCoursesMenu_Click ( object sender, EventArgs e ) : void
printAreaThisCourseMenu_Click ( object sender, EventArgs e ) : void
printAreaThisPartMenu_Click ( object sender, EventArgs e ) : void
printCoursesMenu_Click ( object sender, EventArgs e ) : void
printDescriptionsMenu_Click ( object sender, EventArgs e ) : void
printPunchCardsMenu_Click ( object sender, EventArgs e ) : void
programLanguageMenu_Click ( object sender, EventArgs e ) : void
propertiesMenu_Click ( object sender, EventArgs e ) : void
punchPatternsMenu_Click ( object sender, EventArgs e ) : void
radioButtonDescriptionsTopology_CheckedChanged ( object sender, EventArgs e ) : void
redoMenu_Click ( object sender, EventArgs e ) : void
removeBendMenu_Click ( object sender, EventArgs e ) : void
removeGapMenu_Click ( object sender, EventArgs e ) : void
removeUnusedControlsMenu_Click ( object sender, EventArgs e ) : void
reportTesterToolStripMenuItem_Click ( object sender, EventArgs e ) : void
rotateMenu_Click ( object sender, EventArgs e ) : void
saveAsMenu_Click ( object sender, EventArgs e ) : void
saveMenu_Click ( object sender, EventArgs e ) : void
setPrintAreaMenu_DropDownOpening ( object sender, EventArgs e ) : void
showPopupsMenu_Click ( object sender, EventArgs e ) : void
showPrintAreaMenu_Click ( object sender, EventArgs e ) : void
supportWebSiteMenu_Click ( object sender, EventArgs e ) : void
symbolBrowserMenu_Click ( object sender, EventArgs e ) : void
topologyScrollBar_ValueChanged ( object sender, EventArgs e ) : void
undoMenu_Click ( object sender, EventArgs e ) : void
vertScroll_Scroll ( object sender, ScrollEventArgs e ) : void
whiteOutMenu_Click ( object sender, EventArgs e ) : void
zoomAmountLabel_Click ( object sender, EventArgs e ) : void
zoomMenu_Click ( object sender, EventArgs e ) : void
zoomTracker_Scroll ( object sender, EventArgs e ) : void

Method Details

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

EndProgressDialog() public méthode

public EndProgressDialog ( ) : void
Résultat void

ErrorMessage() public méthode

public ErrorMessage ( string message ) : void
message string
Résultat void

FindMissingMapFile() public méthode

public FindMissingMapFile ( string missingMapFile ) : bool
missingMapFile string
Résultat bool

GetCurrentLocation() public méthode

public GetCurrentLocation ( PointF &location, float &pixelSize ) : bool
location System.Drawing.PointF
pixelSize float
Résultat bool

GetOpenFileName() public méthode

public GetOpenFileName ( ) : string
Résultat string

GetSaveFileName() public méthode

public GetSaveFileName ( string initialName ) : string
initialName string
Résultat string

InfoMessage() public méthode

public InfoMessage ( string message ) : void
message string
Résultat void

Initialize() public méthode

public Initialize ( Controller controller, SymbolDB symbolDB ) : void
controller Controller
symbolDB SymbolDB
Résultat void

InitiateMapDragging() public méthode

public InitiateMapDragging ( PointF initialPos, System buttonEnd ) : void
initialPos System.Drawing.PointF
buttonEnd System
Résultat void

MainFrame() public méthode

public MainFrame ( ) : System
Résultat System

MovingSharedControl() public méthode

public MovingSharedControl ( string controlCode, string otherCourses ) : DialogResult
controlCode string
otherCourses string
Résultat DialogResult

OKCancelMessage() public méthode

public OKCancelMessage ( string message, bool okDefault ) : bool
message string
okDefault bool
Résultat bool

ProcessCmdKey() protected méthode

protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg Message
keyData Keys
Résultat bool

ShowProgressDialog() public méthode

public ShowProgressDialog ( bool knownDuration ) : void
knownDuration bool
Résultat void

ShowTopologyView() public méthode

public ShowTopologyView ( ) : void
Résultat void

UpdateProgressDialog() public méthode

public UpdateProgressDialog ( string info, double fractionDone ) : bool
info string
fractionDone double
Résultat bool

WarningMessage() public méthode

public WarningMessage ( string message ) : void
message string
Résultat void

YesNoCancelQuestion() public méthode

public YesNoCancelQuestion ( string message, bool yesDefault ) : DialogResult
message string
yesDefault bool
Résultat DialogResult

YesNoQuestion() public méthode

public YesNoQuestion ( string message, bool yesDefault ) : bool
message string
yesDefault bool
Résultat bool