using System;
using System.Web.Mvc;
using Vrh.iScheduler.Report;
namespace Vrh.Web.iScheduler.Report.Areas.iSchedulerReport
{
///
/// A webes Area regisztárciójához szükséges osztály
///
public class iSchedulerReportAreaRegistration : AreaRegistration
{
///
/// Visszaadja a modul area nevét.
///
public override string AreaName
{
get
{
return SRConstants.AREA;
}
}
///
/// Area regisztrációhoz szükséges metódus.
///
///
public override void RegisterArea(AreaRegistrationContext context)
{
RegisterRoutes(context);
//nyelvi fordítások inicializálása
VRH.Log4Pro.MultiLanguageManager.MultiLanguageManager.InitializeWordCodes(typeof(SRWordCodes));
}
private void RegisterRoutes(AreaRegistrationContext context)
{
if (context == null) { throw new ArgumentNullException("context"); }
context.MapRoute(
this.AreaName + "_default",
this.AreaName + "/{controller}/{action}/{id}",
new { action = "Index", id = UrlParameter.Optional }
);
}
}
}