public static string DiffHead()
{
string styles = DefaultStyles;
if (!string.IsNullOrEmpty(CustomStyles))
styles = CustomStyles;
else if (File.Exists(Path.Combine(Application.StartupPath, "style.css")) && CustomStyles == null)
{
try
{
StreamReader reader = File.OpenText(Path.Combine(Application.StartupPath, "style.css"));
CustomStyles = reader.ReadToEnd();
reader.Close();
styles = CustomStyles;
}
catch
{
CustomStyles = "";
}
}
return "<style type='text/css'>" + styles + "</style>";
}