private void buttonAutoDetect_Click(object sender, EventArgs e)
{
string executable;
string database;
if (Utility.DetectClamWinPaths(out executable, out database))
{
textClamScanDatabase.Text = database;
textClamScanExecutable.Text = executable;
string warning = "hMailServer Administrator was able to auto-detect the location of ClamScan and the database.\r\nIt is still recommended you verify that the path to the executable and the database is correct.";
MessageBox.Show(warning, EnumStrings.hMailServerAdministrator, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
string warning = "hMailServer Administrator was unable to auto-detect the location of ClamWin.";
MessageBox.Show(warning, EnumStrings.hMailServerAdministrator, MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}