2021-11-07 19:42:59 +01:00
|
|
|
|
using System;
|
|
|
|
|
using TINK.View.Map;
|
|
|
|
|
using TINK.ViewModel.MasterDetail;
|
|
|
|
|
|
|
|
|
|
namespace TINK.View
|
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public class MainPageMenuItem
|
|
|
|
|
{
|
|
|
|
|
public MainPageMenuItem()
|
|
|
|
|
{
|
|
|
|
|
TargetType = typeof(MapPage);
|
|
|
|
|
}
|
2021-11-07 19:42:59 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public MainPageMenuItem(
|
|
|
|
|
int p_iId,
|
|
|
|
|
Type p_oTypeOfPage,
|
|
|
|
|
string p_strTitle = null)
|
|
|
|
|
{
|
|
|
|
|
TargetType = p_oTypeOfPage;
|
|
|
|
|
Id = p_iId;
|
|
|
|
|
Title = p_strTitle ?? Helper.GetCaption(p_oTypeOfPage);
|
|
|
|
|
}
|
2021-11-07 19:42:59 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public int Id
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
private set;
|
|
|
|
|
}
|
2021-11-07 19:42:59 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public string Title
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
private set;
|
|
|
|
|
}
|
2021-11-07 19:42:59 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public Type TargetType
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
private set;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-11-07 19:42:59 +01:00
|
|
|
|
}
|