iSchedulerReportAreaRegistration.cs
1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Web.Mvc;
using Vrh.iScheduler.Report;
namespace Vrh.Web.iScheduler.Report.Areas.iSchedulerReport
{
/// <summary>
/// A webes Area regisztárciójához szükséges osztály
/// </summary>
public class iSchedulerReportAreaRegistration : AreaRegistration
{
/// <summary>
/// Visszaadja a modul area nevét.
/// </summary>
public override string AreaName
{
get
{
return SRConstants.AREA;
}
}
/// <summary>
/// Area regisztrációhoz szükséges metódus.
/// </summary>
/// <param name="context"></param>
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 }
);
}
}
}