private void btnComputeHash_Click(object sender, EventArgs e) { String Filepath = filepath; String MD5Hash = Hashing.MD5Hash(Filepath); String SHA256Hash = Hashing.SHA256Hash(Filepath); String SHA512Hash = Hashing.SHA512Hash(Filepath); tbMD5Hash.Text = MD5Hash; tbSHA256Hash.Text = SHA256Hash; tbSHA512Hash.Text = SHA512Hash; if (DBCalls.checkFileExists(Filepath) == true) { MessageBox.Show("This File Path Already Has A Record In the Database!"); } else { int Id = DBCalls.countNoOfFileRecords(); DBCalls.createFileInfo(Id, Filepath, MD5Hash, SHA256Hash, SHA512Hash); } }