Merge branch 'feature/#37' into develop
This commit is contained in:
@@ -190,10 +190,10 @@ namespace CampusAppWP8.Model.Lecture
|
||||
string result = string.Empty;
|
||||
foreach (LectureLecturer tmpLecturer in this.Lecturer)
|
||||
{
|
||||
result += tmpLecturer.ToString() + "\n";
|
||||
result += StringManager.AddNewLine(tmpLecturer.ToString());
|
||||
}
|
||||
|
||||
this.LecturerString = result.TrimEnd('\n');
|
||||
this.LecturerString = StringManager.RemvoveNewLine(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -204,10 +204,10 @@ namespace CampusAppWP8.Model.Lecture
|
||||
string result = string.Empty;
|
||||
foreach (LectureCourse course in this.Course)
|
||||
{
|
||||
result += course.Title + "\n";
|
||||
result += StringManager.AddNewLine(course.Title);
|
||||
}
|
||||
|
||||
this.CourseString = result.TrimEnd('\n');
|
||||
this.CourseString = StringManager.RemvoveNewLine(result);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -35,6 +35,25 @@ namespace CampusAppWP8.Utility
|
||||
return Regex.Replace(inputString, HtmlTagPattern, string.Empty);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method add an Newline to a string
|
||||
/// </summary>
|
||||
/// <param name="str">input string</param>
|
||||
/// <returns>input string + \n</returns>
|
||||
public static string AddNewLine(string str)
|
||||
{
|
||||
return str.ToString() + "\n";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method remove(TrimEND!) an Newline to a string
|
||||
/// </summary>
|
||||
/// <param name="str">input string</param>
|
||||
/// <returns>input string - \n</returns
|
||||
public static string RemvoveNewLine(string str)
|
||||
{
|
||||
return str.TrimEnd('\n');
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user