46 lines
1.8 KiB
C#
46 lines
1.8 KiB
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="RoleListPickerItemListModel.cs" company="BTU/IIT">
|
|
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
|
|
// </copyright>
|
|
// <author>Stubbfel</author>
|
|
// <date>15.10.2013</date>
|
|
// <summary>Implements the role list picker item list model class</summary>
|
|
//-----------------------------------------------------------------------
|
|
namespace CampusAppWPortalLib8.Model.Utility
|
|
{
|
|
using CampusAppWPortalLib8.Resources;
|
|
|
|
/// <summary> Class for the RoleList. </summary>
|
|
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
|
/// <seealso cref="T:CampusAppWPortalLib8.Model.Utility.ListPickerItemListModel"/>
|
|
public class RoleListPickerItemListModel : ListPickerItemListModel
|
|
{
|
|
#region Constructor
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="RoleListPickerItemListModel" /> class.
|
|
/// </summary>
|
|
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
|
public RoleListPickerItemListModel()
|
|
: base()
|
|
{
|
|
this.LoadList();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Method
|
|
|
|
/// <summary> Overrides the LoadList-Method <see cref="ListPickerItemListModel"/> </summary>
|
|
/// <remarks> Stubbfel, 15.10.2013. </remarks>
|
|
/// <seealso cref="M:CampusAppWPortalLib8.Model.Utility.ListPickerItemListModel.LoadList()"/>
|
|
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
|
|
}
|
|
}
|