refactor all plcmodels

This commit is contained in:
stubbfel
2013-10-15 13:10:29 +02:00
parent 4f658a0fbc
commit be2fb8ff06
48 changed files with 1106 additions and 1380 deletions

View File

@@ -1,40 +1,35 @@
//-----------------------------------------------------------------------
// <copyright file="LectureModule.cs" company="BTU/IIT">
// Company copyright tag.
// The MIT License (MIT). Copyright (c) 2013 BTU/IIT.
// </copyright>
// <author>stubbfel</author>
// <sience>10.06.2013</sience>
//----------------------------------------------------------------------
// <author>Stubbfel</author>
// <date>15.10.2013</date>
// <summary>Implements the lecture module class</summary>
//-----------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Lecture
{
using System;
using System.Xml.Serialization;
using CampusAppWPortalLib8.Resources;
/// <summary>
/// Model for the module of an lecture
/// </summary>
/// <summary> Model for the module of an lecture. </summary>
/// <remarks> Stubbfel, 15.10.2013. </remarks>
public class LectureModule
{
#region Members
/// <summary>
/// Number of the module (like an id)
/// </summary>
/// <summary> Number of the module (like an id) </summary>
private int number;
/// <summary>
/// Url to the website of the module
/// </summary>
/// <summary> Url to the website of the module. </summary>
private Uri url;
#endregion
#region Constructor
/// <summary>
/// Initializes a new instance of the <see cref="LectureModule" /> class.
/// </summary>
/// <summary> Initializes a new instance of the <see cref="LectureModule" /> class. </summary>
/// <remarks> Stubbfel, 15.10.2013. </remarks>
public LectureModule()
{
}
@@ -43,15 +38,13 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region Property
/// <summary>
/// Gets or sets the title of the module
/// </summary>
/// <summary> Gets or sets the title of the module. </summary>
/// <value> The title. </value>
[XmlElement("titel")]
public string Title { get; set; }
/// <summary>
/// Gets or sets the number of the module and create the URL
/// </summary>
/// <summary> Gets or sets the number of the module and create the URL. </summary>
/// <value> The total number of ber. </value>
[XmlElement("nummer")]
public int Number
{
@@ -70,9 +63,8 @@ namespace CampusAppWPortalLib8.Model.Lecture
}
}
/// <summary>
/// Gets the URL of the module
/// </summary>
/// <summary> Gets the URL of the module. </summary>
/// <value> The URL. </value>
public Uri Url
{
get
@@ -85,9 +77,8 @@ namespace CampusAppWPortalLib8.Model.Lecture
#region Methods
/// <summary>
/// Method create the url of the module
/// </summary>
/// <summary> Method create the url of the module. </summary>
/// <remarks> Stubbfel, 15.10.2013. </remarks>
private void CreateUrl()
{
this.url = new Uri(Constants.UrlLecture_ModulBaseAddr + this.number.ToString());