private void ReportError(string Error, string Method)
{
System.IO.StreamWriter LogOut = new System.IO.StreamWriter(DataDirectory + "\\Error.txt", true);
LogOut.WriteLine("Error at " + System.DateTime.Now.ToString() + ": " + Error + "<br><br>Last SQL: " + SQL.CommandText + "<br><br>Method: " + Method + "<br><br>Trace: " + Trace);
LogOut.Close();
}