C# Class BF2Statistics.HostsFileTestForm

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

Protected Properties

Property Type Description
ServiceTask Task
Services string[]

Public Methods

Method Description
HostsFileTestForm ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

VerifyDnsCache ( ) : void

This method ping's the gamepsy services and verifies that the HOSTS file redirects are working correctly

Private Methods

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

Event fired when the Close button is clicked

HostsFileTestForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Event fired when the form begins to close

HostsFileTestForm_Shown ( object sender, EventArgs e ) : void

Event fired after the form has been displayed to the user

InitializeComponent ( ) : void

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

RefreshBtn_Click ( object sender, EventArgs e ) : void

Event fired when the refresh button is clicked

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.

Method Details

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

HostsFileTestForm() public method

public HostsFileTestForm ( ) : System
return System

VerifyDnsCache() protected method

This method ping's the gamepsy services and verifies that the HOSTS file redirects are working correctly
protected VerifyDnsCache ( ) : void
return void

Property Details

ServiceTask protected property

Our cache verifying task
protected Task ServiceTask
return Task

Services protected static property

The list of services we are verifying
protected static string[] Services
return string[]