|
IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Inheritance diagram for IG.Forms.HashControl:
Collaboration diagram for IG.Forms.HashControl:Public Member Functions | |
| HashControl () | |
| void | ReportError (string errorMessage) |
| void | ReportWarning (string warningMessage) |
| void | ReportInfo (string message) |
Protected Member Functions | |
| void | ClearHashes () |
| Clears all text fields with calculated hashRet values. More... | |
| void | CalculateHashes () |
| void | SaveHashesToFile () |
| void | BrowseFile () |
| Browses for the file to be hashed. More... | |
| void | GenerateFilePreview () |
| Generates file preview in the text preview box if the rbFile is checked. More... | |
| void | VerifyHash () |
| void | Handle_CtrlA_CtrlBackspace (TextBox textBox, object sender, KeyEventArgs e) |
| Handle the Ctrl-A (select all) and Ctrl-Backspace events for the specified text box. More... | |
| override void | Dispose (bool disposing) |
| Clean up any resources being used. More... | |
Protected Attributes | |
| bool | FileTextBoxInitialized = false |
| Color | FileOnForeColor = Color.Black |
| Color | FileOffForeColor = Color.DarkGray |
| bool | ContentsTextBoxInitialized = false |
| Color | ContentsFileBackColor = Color.LightGray |
| Color | ContentsFileBinaryBackColor = Color.Wheat |
| Color | ContentsTextBackColor = Color.White |
| Color | ContentsFileForeColor = Color.Black |
| Color | ContentsTextForeColor = Color.Blue |
| string | _directoryPath |
| string | _filePath |
| OpenFileDialog | fileDialog |
| int | NumCharsFilePreview = 1000 |
| int | NumInsertTextInfo = 0 |
| int | MaxInsertTextInfo = 1 |
| bool | TextBeingDropped = false |
Properties | |
| string | DirectoryPath [get, set] |
| Directory where files are currently selected. More... | |
| string | FilePath [get, set] |
| Path to the file whose hashRet values are calculated. More... | |
Private Member Functions | |
| void | btnGenerate_Click (object sender, EventArgs e) |
| Requested hashs are generated and shown in the appropriate text boxes. More... | |
| void | btnClearHashes_Click (object sender, EventArgs e) |
| Hash values are cleared from the appropriate text fields. More... | |
| void | btnVerify_Click (object sender, EventArgs e) |
| Hash value is verified for the specified file or text. More... | |
| void | txtFile_Validated (object sender, EventArgs e) |
| After file has been validated. More... | |
| void | btnFileBrowse_Click (object sender, EventArgs e) |
| Browses for the file whose hashRet values will be calculated. More... | |
| void | chkMd5_CheckedChanged (object sender, EventArgs e) |
| void | chkSha1_CheckedChanged (object sender, EventArgs e) |
| void | chkSha256_CheckedChanged (object sender, EventArgs e) |
| void | chkSha512_CheckedChanged (object sender, EventArgs e) |
| void | btnMd5Copy_Click (object sender, EventArgs e) |
| void | btnSha1Copy_Click (object sender, EventArgs e) |
| void | btnSha256Copy_Click (object sender, EventArgs e) |
| void | bthSha512_Click (object sender, EventArgs e) |
| void | btnVerifyPaste_Click (object sender, EventArgs e) |
| void | rbFile_CheckedChanged (object sender, EventArgs e) |
| Handles things that need to be done when we switch between hashing the file or hashing text from the textbox. More... | |
| void | chkGenerateFile_CheckedChanged (object sender, EventArgs e) |
| Handles situation when one changes the setting whether to store file's hashRet values to a file. If the check box gets checked then hashes are immediately saved to a file. More... | |
| void | txtContents_Enter (object sender, EventArgs e) |
| void | txtContents_MouseEnter (object sender, EventArgs e) |
| void | txtContents_TextChanged (object sender, EventArgs e) |
| void | txtContents_Validated (object sender, EventArgs e) |
| After text is inserted, calculate appropriate hashes immediately. More... | |
| void | chkUpperCase_CheckedChanged (object sender, EventArgs e) |
| Recalculates hashes because the requested lower/upper case form has changed. More... | |
| void | txtFile_Enter (object sender, EventArgs e) |
| void | txtFile_MouseEnter (object sender, EventArgs e) |
| void | txtFile_TextChanged (object sender, EventArgs e) |
| void | txtFile_DragEnter (object sender, DragEventArgs e) |
| void | txtFile_DragDrop (object sender, DragEventArgs e) |
| void | txtContents_DragEnter (object sender, DragEventArgs e) |
| void | txtContents_DragDrop (object sender, DragEventArgs e) |
| void | txtFile_KeyDown (object sender, KeyEventArgs e) |
| void | txtContents_KeyDown (object sender, KeyEventArgs e) |
| void | InitializeComponent () |
| Required method for Designer support - do not modify the contents of this method with the code editor. More... | |
Private Attributes | |
| bool | _skipFileValidationEvent = false |
| System.ComponentModel.IContainer | components = null |
| Required designer variable. More... | |
| System.Windows.Forms.GroupBox | grpHashGeneration |
| System.Windows.Forms.CheckBox | chkSha512 |
| System.Windows.Forms.Button | bthSha512 |
| System.Windows.Forms.TextBox | txtSha512 |
| System.Windows.Forms.Label | lblSha512 |
| System.Windows.Forms.CheckBox | chkSha256 |
| System.Windows.Forms.CheckBox | chkSha1 |
| System.Windows.Forms.CheckBox | chkMd5 |
| System.Windows.Forms.Button | btnSha256Copy |
| System.Windows.Forms.Button | btnSha1Copy |
| System.Windows.Forms.Button | btnMd5Copy |
| System.Windows.Forms.TextBox | txtSha256 |
| System.Windows.Forms.Label | lblSha256 |
| System.Windows.Forms.TextBox | txtSha1 |
| System.Windows.Forms.Label | lblSha1 |
| System.Windows.Forms.TextBox | txtMd5 |
| System.Windows.Forms.Label | lblMd5 |
| System.Windows.Forms.Button | btnFileBrowse |
| System.Windows.Forms.TextBox | txtFile |
| System.Windows.Forms.Label | lblFile |
| System.Windows.Forms.RadioButton | rbText |
| System.Windows.Forms.RadioButton | rbFile |
| System.Windows.Forms.GroupBox | grpTextPreview |
| System.Windows.Forms.TextBox | txtContents |
| System.Windows.Forms.Button | btnGenerate |
| System.Windows.Forms.CheckBox | chkGenerateFile |
| System.Windows.Forms.Label | lvlVerifyMain |
| System.Windows.Forms.Button | btnVerify |
| System.Windows.Forms.Button | btnVerifyPaste |
| System.Windows.Forms.TextBox | txtVerify |
| System.Windows.Forms.Label | lblVerify |
| System.Windows.Forms.OpenFileDialog | openFileDialog1 |
| System.Windows.Forms.Button | btnClearHashes |
| System.Windows.Forms.CheckBox | chkUpperCase |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
Clears all text fields with calculated hashRet values.
|
inlineprotected |
References IG.Crypto.UtilCrypto.GetFileHashMd5Hex(), IG.Crypto.UtilCrypto.GetFileHashSha1Hex(), IG.Crypto.UtilCrypto.GetFileHashSha256Hex(), IG.Crypto.UtilCrypto.GetFileHashSha512Hex(), IG.Crypto.UtilCrypto.GetStringHashMd5Hex(), IG.Crypto.UtilCrypto.GetStringHashSha1Hex(), IG.Crypto.UtilCrypto.GetStringHashSha256Hex(), and IG.Crypto.UtilCrypto.GetStringHashSha512Hex().
|
inlineprotected |
References IG.Crypto.ConstCrypto.HashFileExtension.
|
inlineprotected |
Browses for the file to be hashed.
|
inlineprotected |
Generates file preview in the text preview box if the rbFile is checked.
References IG.Lib.UtilSystem.IsTextFile().
|
inlineprotected |
|
inlineprivate |
Requested hashs are generated and shown in the appropriate text boxes.
|
inlineprivate |
Hash values are cleared from the appropriate text fields.
|
inlineprivate |
Hash value is verified for the specified file or text.
|
inlineprivate |
After file has been validated.
|
inlineprivate |
Browses for the file whose hashRet values will be calculated.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Handles things that need to be done when we switch between hashing the file or hashing text from the textbox.
|
inlineprivate |
Handles situation when one changes the setting whether to store file's hashRet values to a file. If the check box gets checked then hashes are immediately saved to a file.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
After text is inserted, calculate appropriate hashes immediately.
|
inlineprivate |
Recalculates hashes because the requested lower/upper case form has changed.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprotected |
Handle the Ctrl-A (select all) and Ctrl-Backspace events for the specified text box.
| textBox | Text box for wich the event is handled. |
|
inlineprivate |
|
inlineprivate |
|
inlineprotected |
Clean up any resources being used.
| disposing | true if managed resources should be disposed; otherwise, false. |
|
inlineprivate |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
private |
Required designer variable.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
getset |
Directory where files are currently selected.
|
getset |
Path to the file whose hashRet values are calculated.