C# 클래스 Azavea.NijPredictivePolicing.AcsAlchemistGui.MainForm

파일 보기 프로젝트 열기: azavea/acs-alchemist

보호된 프로퍼티들

프로퍼티 타입 설명
_isDirty bool
_tooltips ToolTip>.Dictionary

공개 메소드들

메소드 설명
CheckSave ( ) : bool

Returns false if the following action should be cancelled

MainForm ( ) : System
SmartToggler ( ) : void

Perform all our form enable/disables in one place, so the form is always in a consistent state (this also makes this much easier to maintain)

보호된 메소드들

메소드 설명
AddDefaultTooltips ( ) : void
CheckValidity ( bool isFishnet ) : bool

Sanity check to determine if we have enough information to start a job / export -- This function should display a MessageBox if something is really wrong

DisplayException ( string label, Exception ex ) : void

A very basic error display helper -- NOTE! It is up to the developer to choose what exceptions are FATAL or not. This helper is for potentially NON-FATAL exceptions / or those that can be recovered from

Dispose ( bool disposing ) : void

Clean up any resources being used.

FixWeirdStyles ( ) : void

Windows configurations differ in the actual colors used for different elements 'InactiveText', 'BackgroundColor', etc. Our log text is a little 'grayed out' to be less distracting, but on some configurations this can make it invisible.

GatherInputs ( bool isFishnet ) : void

Copies our form onto a 'job instance'

HideLoadingSpinner ( ) : void
LoadFonts ( ) : void

We're doing this because fonts are rarely consistent between machines (in this case, my dev laptop, and my dev workstation). This changes the appearance of the console log, and the controls quite significantly (stuff disappears), so it's pretty important that the font is right.

PopulateControls ( ) : void

Copies a 'job instance' onto our form

PopulateLists ( ) : void

Populates our 'year', 'state', 'summary level', and 'srid' controls, as well as any other "choose from a set" controls that come up.

SetTooltip ( Control ctl, string label ) : void

Helper for setting tooltips

ShowLoadingSpinner ( ) : void
TryRunExport ( bool isFishnet ) : void

비공개 메소드들

메소드 설명
AddFontMemResourceEx ( IntPtr pbFont, uint cbFont, IntPtr pdv, [ pcFonts ) : IntPtr
InitializeComponent ( ) : void

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

MainForm_Load ( object sender, EventArgs e ) : void

Initialize the controls and whatnot

aboutToolStripMenuItem_Click ( object sender, EventArgs e ) : void
backgroundWorker1_DoWork ( object sender, DoWorkEventArgs e ) : void
backgroundWorker1_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

On progress updated

backgroundWorker1_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

when we're done, re-enable the form

btnBrowseBoundaryShpFile_Click ( object sender, EventArgs e ) : void

Browse for the "Output Filter Boundary" Shapefile

btnBrowseFishnetEnvelopeFile_Click ( object sender, EventArgs e ) : void

Browse for "Grid boundary-alignment file"

btnBrowseOutputFolder_Click ( object sender, EventArgs e ) : void

Browse for the "Output Folder"

btnBrowsePrjFile_Click ( object sender, EventArgs e ) : void

Browse for the "Output Projection File"

btnBrowseVariableFile_Click ( object sender, EventArgs e ) : void

Opens a file dialog for -- Variables File Extensions: *.txt, *.vars / All

btnBrowseWorking_Click ( object sender, EventArgs e ) : void
btnCancel_Click ( object sender, EventArgs e ) : void
btnFishnet_Click ( object sender, EventArgs e ) : void

Export a fishnet

btnSaveMessageLog_Click ( object sender, EventArgs e ) : void

TODO: This is not yet implemented, providing a helpful error message

btnShapefile_Click ( object sender, EventArgs e ) : void

Export a shapefile using census boundaries!

cboProjections_SelectedIndexChanged ( object sender, EventArgs e ) : void

Sets the projection text as the tooltip, best way we have for showing what projection they've selected

cboProjections_Validating ( object sender, CancelEventArgs e ) : void
cboStates_Validating ( object sender, CancelEventArgs e ) : void
cboSummaryLevel_Validating ( object sender, CancelEventArgs e ) : void
cboYear_Validating ( object sender, CancelEventArgs e ) : void
general_CheckedChanged ( object sender, EventArgs e ) : void
general_SelectedValueChanged ( object sender, EventArgs e ) : void
general_TextChanged ( object sender, EventArgs e ) : void
newJobToolStripMenuItem_Click ( object sender, EventArgs e ) : void
openJobFileToolStripMenuItem_Click ( object sender, EventArgs e ) : void
quitToolStripMenuItem_Click ( object sender, EventArgs e ) : void
radioDefaultSRID_CheckedChanged ( object sender, EventArgs e ) : void
radioSRIDFile_CheckedChanged ( object sender, EventArgs e ) : void
radioSRIDFromList_CheckedChanged ( object sender, EventArgs e ) : void
saveJobFileToolStripMenuItem_Click ( object sender, EventArgs e ) : void
txtFishnetCellSize_Validating ( object sender, CancelEventArgs e ) : void
txtPrjFilePath_Validating ( object sender, CancelEventArgs e ) : void
txtVariableFilePath_Validating ( object sender, CancelEventArgs e ) : void
workOfflineToolStripMenuItem_Click ( object sender, EventArgs e ) : void

메소드 상세

AddDefaultTooltips() 보호된 메소드

protected AddDefaultTooltips ( ) : void
리턴 void

CheckSave() 공개 메소드

Returns false if the following action should be cancelled
public CheckSave ( ) : bool
리턴 bool

CheckValidity() 보호된 메소드

Sanity check to determine if we have enough information to start a job / export -- This function should display a MessageBox if something is really wrong
protected CheckValidity ( bool isFishnet ) : bool
isFishnet bool
리턴 bool

DisplayException() 보호된 메소드

A very basic error display helper -- NOTE! It is up to the developer to choose what exceptions are FATAL or not. This helper is for potentially NON-FATAL exceptions / or those that can be recovered from
protected DisplayException ( string label, Exception ex ) : void
label string
ex Exception
리턴 void

Dispose() 보호된 메소드

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

FixWeirdStyles() 보호된 메소드

Windows configurations differ in the actual colors used for different elements 'InactiveText', 'BackgroundColor', etc. Our log text is a little 'grayed out' to be less distracting, but on some configurations this can make it invisible.
protected FixWeirdStyles ( ) : void
리턴 void

GatherInputs() 보호된 메소드

Copies our form onto a 'job instance'
protected GatherInputs ( bool isFishnet ) : void
isFishnet bool
리턴 void

HideLoadingSpinner() 보호된 메소드

protected HideLoadingSpinner ( ) : void
리턴 void

LoadFonts() 보호된 메소드

We're doing this because fonts are rarely consistent between machines (in this case, my dev laptop, and my dev workstation). This changes the appearance of the console log, and the controls quite significantly (stuff disappears), so it's pretty important that the font is right.
protected LoadFonts ( ) : void
리턴 void

MainForm() 공개 메소드

public MainForm ( ) : System
리턴 System

PopulateControls() 보호된 메소드

Copies a 'job instance' onto our form
protected PopulateControls ( ) : void
리턴 void

PopulateLists() 보호된 메소드

Populates our 'year', 'state', 'summary level', and 'srid' controls, as well as any other "choose from a set" controls that come up.
protected PopulateLists ( ) : void
리턴 void

SetTooltip() 보호된 메소드

Helper for setting tooltips
protected SetTooltip ( Control ctl, string label ) : void
ctl Control
label string
리턴 void

ShowLoadingSpinner() 보호된 메소드

protected ShowLoadingSpinner ( ) : void
리턴 void

SmartToggler() 공개 메소드

Perform all our form enable/disables in one place, so the form is always in a consistent state (this also makes this much easier to maintain)
public SmartToggler ( ) : void
리턴 void

TryRunExport() 보호된 메소드

protected TryRunExport ( bool isFishnet ) : void
isFishnet bool
리턴 void

프로퍼티 상세

_isDirty 보호되어 있는 프로퍼티

protected bool _isDirty
리턴 bool

_tooltips 보호되어 있는 프로퍼티

collection of tooltip controls
protected Dictionary _tooltips
리턴 ToolTip>.Dictionary