Globals: Class for holding global constants.

This commit is contained in:
2015-05-24 23:13:12 +02:00
parent 45180d5b2f
commit 98bf48ada7
3 changed files with 14 additions and 1 deletions

View File

@@ -92,7 +92,7 @@ namespace Scrummer
string file = Path.GetFileName(context.Request.FilePath);
if (string.IsNullOrEmpty(file))
{
// TODO: Default Handler
file = Globals.DefaultHandler;
}
IHttpHandler handler = GetHandler(file);
if (handler == null)

12
Scrummer/Globals.cs Normal file
View File

@@ -0,0 +1,12 @@
namespace Scrummer
{
public static class Globals
{
public const string Title = "Scrummer";
public const string TitleSeparator = " :: ";
public const string Author = "Valeriano Alfonso Rodriguez";
public const string Copyright = "Copyright (c) 2015 by Valeriano Alfonso, All Right Reserved";
public const string DefaultHandler = "FrmBoard";
}
}

View File

@@ -86,6 +86,7 @@
<Compile Include="Code\Pages\FrmError.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Globals.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<PropertyGroup>