44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
// <copyright file="RoleListPickerItemListModel.cs" company="BTU/IIT">
|
|
// Company copyright tag.List
|
|
// </copyright>
|
|
// <author>stubbfel</author>
|
|
// <sience>25.07.2013</sience>
|
|
//----------------------------------------------------------------------
|
|
namespace CampusAppWPortalLib8.Model.Utility
|
|
{
|
|
using CampusAppWPortalLib8.Resources;
|
|
using CampusAppWPortalLib8.Model.Utility;
|
|
|
|
/// <summary>
|
|
/// Class for the RoleList
|
|
/// </summary>
|
|
public class RoleListPickerItemListModel : ListPickerItemListModel
|
|
{
|
|
#region Constructor
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="RoleListPickerItemListModel" /> class.
|
|
/// </summary>
|
|
public RoleListPickerItemListModel()
|
|
: base()
|
|
{
|
|
this.LoadList();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Method
|
|
|
|
/// <summary>
|
|
/// Overrides the LoadList-Method <see cref="ListPickerItemListModel"/>
|
|
/// </summary>
|
|
protected override void LoadList()
|
|
{
|
|
this.AddItem(new ListPickerItemModel(CampusAppWPortalLib8.Model.Settings.RoleType.STUDENT.ToString(), AppResources.Setting_RoleStudent));
|
|
this.AddItem(new ListPickerItemModel(CampusAppWPortalLib8.Model.Settings.RoleType.STAFF.ToString(), AppResources.Setting_RoleStaff));
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|