C# Class Scanner_UI.Scanner_Form

Inheritance: System.Windows.Forms.Form
Show file Open project: mtotheikle/EWU-OIT-SSN-Scanner

Public Properties

Property Type Description
dataGridView System.Windows.Forms.DataGridView
fileNameLabel System.Windows.Forms.Label
path TextBox
percentage Label
progressBar System.Windows.Forms.ProgressBar
scanDirectory Label

Public Methods

Method Description
AddToTable ( string filename, string location, int count, int priority ) : void
LoadData ( ) : void
SQLDatabaseInitilize ( ) : void
Scanner_Form ( ) : System
SetProgressBarMax ( string val ) : void
UpdateData ( string fileName, string path, string priority, string count ) : void
UpdateFileNameLabel ( string text ) : void
UpdatePercentageLabel ( string percent ) : void
UpdateProgressBar ( string val ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ExecuteQuery ( string txtQuery ) : void
InitializeComponent ( ) : void

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

MainWindow_Closing ( object sender, FormClosingEventArgs e ) : void
backgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
backgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
exitToolStripMenuItem_Click ( object sender, EventArgs e ) : void
pauseButton_Click ( object sender, EventArgs e ) : void
pauseScanToolStripMenuItem_Click ( object sender, EventArgs e ) : void
pause_scan ( ) : void
scanButton_Click ( object sender, EventArgs e ) : void
startScanToolStripMenuItem_Click ( object sender, EventArgs e ) : void
start_scan ( ) : void

Method Details

AddToTable() public method

public AddToTable ( string filename, string location, int count, int priority ) : void
filename string
location string
count int
priority int
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

LoadData() public method

public LoadData ( ) : void
return void

SQLDatabaseInitilize() public method

public SQLDatabaseInitilize ( ) : void
return void

Scanner_Form() public method

public Scanner_Form ( ) : System
return System

SetProgressBarMax() public method

public SetProgressBarMax ( string val ) : void
val string
return void

UpdateData() public method

public UpdateData ( string fileName, string path, string priority, string count ) : void
fileName string
path string
priority string
count string
return void

UpdateFileNameLabel() public method

public UpdateFileNameLabel ( string text ) : void
text string
return void

UpdatePercentageLabel() public method

public UpdatePercentageLabel ( string percent ) : void
percent string
return void

UpdateProgressBar() public method

public UpdateProgressBar ( string val ) : void
val string
return void

Property Details

dataGridView public property

public DataGridView,System.Windows.Forms dataGridView
return System.Windows.Forms.DataGridView

fileNameLabel public property

public Label,System.Windows.Forms fileNameLabel
return System.Windows.Forms.Label

path public property

public TextBox path
return TextBox

percentage public property

public Label percentage
return Label

progressBar public property

public ProgressBar,System.Windows.Forms progressBar
return System.Windows.Forms.ProgressBar

scanDirectory public property

public Label scanDirectory
return Label