RequireScript/Css have default keys now.

This commit is contained in:
Greg Edwards
2015-01-23 17:30:26 -05:00
parent 66dba6c1b1
commit 436e2931a8
3 changed files with 29 additions and 1 deletions

View File

@@ -22,5 +22,19 @@ namespace PkmnFoundations.Web
}
public String CssUrl { get; set; }
public override string Key
{
get
{
if (base.Key != null)
return base.Key;
return CssUrl;
}
set
{
base.Key = value;
}
}
}
}

View File

@@ -47,7 +47,7 @@ namespace PkmnFoundations.Web
}
}
public String Key { get; set; }
public virtual String Key { get; set; }
public String After { get; set; }
public abstract void RenderHeader(System.Web.UI.HtmlTextWriter writer);

View File

@@ -22,5 +22,19 @@ namespace PkmnFoundations.Web
public String ScriptUrl { get; set; }
public String Type { get; set; }
public override string Key
{
get
{
if (base.Key != null)
return base.Key;
return ScriptUrl;
}
set
{
base.Key = value;
}
}
}
}