C# Class BF2Statistics.GamespyRedirectForm

Inheritance: System.Windows.Forms.Form
Show file Open project: BF2Statistics/ControlCenter Class Usage Examples

Protected Properties

Property Type Description
Services string[]
Step int

Public Methods

Method Description
GamespyRedirectForm ( ) : System

Creates a new instance of GamespyRedirectForm

Protected Methods

Method Description
AfterSelectProcessing ( ) : void

When the Step is changed, this method handles the processing of the next step

Dispose ( bool disposing ) : void

Clean up any resources being used.

VerifyDnsCache ( ) : bool

This method ping's the gamepsy services and verifies that the Redirect services are working. This method effectivly replaces the Redirector.VerifyDNSCache() method.

Private Methods

Method Description
CancelBtn_Click ( object sender, EventArgs e ) : void

Event fired if the Cancel Button is pressed

DnsRadio_CheckedChanged ( object sender, EventArgs e ) : void
GetRedirectAddressesAsync ( ) : Task

Fetches the IP addresses of the hostnames provided in the redirect address boxes, and returns whether the provided hostnames were valid

HostsRadio_CheckedChanged ( object sender, EventArgs e ) : void
IcsRadio_CheckedChanged ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

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

NextBtn_Click ( object sender, EventArgs e ) : void

Event fired when the Next button is pushed

PrevBtn_Click ( object sender, EventArgs e ) : void

Event fired when the Previous button is pushed

RedirectStatusUpdate ( TaskStep Step ) : void

Updates the Verify Hosts(ics) tab UI steps with status icons

Callback method for the Redirector.ApplyRedirectsAsync Method's IProgress.

SetHostStatus ( int i, string ImgText, Bitmap Img ) : void

Fills in the details of a Hosts(Ics) tab progress step on the GUI

SetStatus ( int i, string address, Bitmap Img, string ImgText = "" ) : void

This method sets the address, image, and image balloon text for the services listed in this form by service index.

ShowDnsErrorPage ( ) : void
ShowHostsErrorPage ( ) : void

Method Details

AfterSelectProcessing() protected method

When the Step is changed, this method handles the processing of the next step
protected AfterSelectProcessing ( ) : void
return void

Dispose() protected method

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

GamespyRedirectForm() public method

Creates a new instance of GamespyRedirectForm
public GamespyRedirectForm ( ) : System
return System

VerifyDnsCache() protected method

This method ping's the gamepsy services and verifies that the Redirect services are working. This method effectivly replaces the Redirector.VerifyDNSCache() method.
protected VerifyDnsCache ( ) : bool
return bool

Property Details

Services protected static property

The list of services we are verifying on the Diagnostic tab
protected static string[] Services
return string[]

Step protected property

The current step of the form's progress
Used to track which page ID we are moving to next
protected int Step
return int