November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
public ViewMode CurrentViewMode
{
get
{
if (Request.UrlReferrer != null)
{
string startUrl = Request.UrlReferrer.ToString();
string editMatchString = "/" + Configuration.EditDir;
string adminMatchString = "/" + Configuration.AdminDir;
bool isAdmin = Regex.IsMatch(startUrl, adminMatchString, RegexOptions.IgnoreCase);
bool isEdit = Regex.IsMatch(startUrl, editMatchString, RegexOptions.IgnoreCase);
if (isAdmin)
return ViewMode.Admin;
else if (isEdit)
return ViewMode.Edit;
}
return ViewMode.View;
}
}
.. and ..
public enum ViewMode {
Edit,
Admin,
View
};