Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohne committed Oct 18, 2023
1 parent 83253f9 commit ded657d
Show file tree
Hide file tree
Showing 10 changed files with 198 additions and 580 deletions.
6 changes: 4 additions & 2 deletions Hasher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
<NeutralLanguage>en</NeutralLanguage>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<AssemblyVersion>1.3.1.21</AssemblyVersion>
<FileVersion>1.3.1.21</FileVersion>
<AssemblyVersion>1.3.2.23</AssemblyVersion>
<FileVersion>1.3.2.23</FileVersion>
<Company>Mijo Software</Company>
<PackageTags>hashing;hash;md5;sha1;sha256;hashing-algorithms;ripemd160;sha512;sha384</PackageTags>
<Version>$(AssemblyVersion)</Version>
<Authors>Michael Johne</Authors>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
24 changes: 24 additions & 0 deletions MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 29 additions & 7 deletions MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,35 @@ private void ButtonSaveAllHashValuesInClipboard_Click(object sender, EventArgs e
Clipboard.SetText(text: listToClipboard);
}

/// <summary>
/// Start a self test and calculate his own hash values
/// </summary>
/// <param name="sender">object sender</param>
/// <param name="e">event arguments</param>
/// <remarks>The parameters <paramref name="e"/> and <paramref name="sender"/> are not needed, but must be indicated.</remarks>
private void ButtonSelfTest_Click(object sender, EventArgs e)
{
tabControl.SelectedTab = tabPageFile;
textBoxFileName.Text = Application.ExecutablePath;
CalculateHashesFromFile();
}

/// <summary>
/// Insert text from the clipboard
/// </summary>
/// <param name="sender">object sender</param>
/// <param name="e">event arguments</param>
/// <remarks>The parameters <paramref name="e"/> and <paramref name="sender"/> are not needed, but must be indicated.</remarks>
private void ButtonInsertTextFromClipboard_Click(object sender, EventArgs e)
{
if (Clipboard.ContainsText(format: TextDataFormat.Text) || Clipboard.ContainsText(format: TextDataFormat.Text))
{
textBoxText.Text = Clipboard.GetText(format: TextDataFormat.Text);
CalculateHashesFromText();
}
}


#endregion

#region CheckedChange event handlers
Expand Down Expand Up @@ -970,13 +999,6 @@ private void TextBoxSHA512StringFromText_TextChanged(object sender, EventArgs e)
buttonSaveAllHashValuesInClipboard.Enabled = true;
}
}

private void ButtonSelfTest_Click(object sender, EventArgs e)
{
tabControl.SelectedTab = tabPageFile;
textBoxFileName.Text = Application.ExecutablePath;
CalculateHashesFromFile();
}
}

#endregion
Expand Down
Loading

0 comments on commit ded657d

Please sign in to comment.