C# Class s2gsAutomationForms.Form1

Inheritance: System.Windows.Forms.Form
显示文件 Open project: gibybo/S2GS-Extractor

Public Methods

Method Description
Download ( HashSet urls, string path ) : void

Downloads a set of files to a folder. Will run async.

DownloadDone ( int success, int total ) : void

Run when the download of files is done

ExtractDone ( HashSet hashes ) : void

Runs when the extraction is done

Form1 ( ) : System
SetAll ( bool enabled ) : void

Enables or disables all input fields

SetProgress ( bool visible, int min, int max, int value ) : void

Set the progressbar to a value (can be called from other threads than the main)

SetStatusText ( string text ) : void

Sets the status text (can be called from other threads than the main)

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AskDownload ( int count ) : bool

Displays a message asking if the user wants to download files

DownloadSingle ( string url, string path ) : bool

Downloads a single file to a path

Form1_Load ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

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

extractBtn_Click ( object sender, EventArgs e ) : void
matchHistoryChkBox_CheckedChanged ( object sender, EventArgs e ) : void
tmpFileLink_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void

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

Download() public method

Downloads a set of files to a folder. Will run async.
public Download ( HashSet urls, string path ) : void
urls HashSet Files to download
path string Path to download to
return void

DownloadDone() public method

Run when the download of files is done
public DownloadDone ( int success, int total ) : void
success int Number of successful downloads
total int Total number of downloads
return void

ExtractDone() public method

Runs when the extraction is done
public ExtractDone ( HashSet hashes ) : void
hashes HashSet The set of extracted hashes
return void

Form1() public method

public Form1 ( ) : System
return System

SetAll() public method

Enables or disables all input fields
public SetAll ( bool enabled ) : void
enabled bool Enabled if true, disabled if false
return void

SetProgress() public method

Set the progressbar to a value (can be called from other threads than the main)
public SetProgress ( bool visible, int min, int max, int value ) : void
visible bool Show the progress bar
min int Progress bar minimum value (ignored if visible is false)
max int Progress bar maximum value (ignored if visible is false)
value int Progress bar value (ignored if visible is false)
return void

SetStatusText() public method

Sets the status text (can be called from other threads than the main)
public SetStatusText ( string text ) : void
text string Text to set the label to
return void