rmfile onsaved

This commit is contained in:
stubbfel
2013-07-22 16:26:03 +02:00
parent 1d434a394f
commit dd7ef6e82e
4 changed files with 0 additions and 79 deletions

View File

@@ -28,7 +28,6 @@ namespace CampusAppWP8.Feed.Link
: base(ModelType.FileAndFeed, Constants.FileLink_ClubLinks, Constants.UrlLink_ClubLinks)
{
this.isFileUpToDateOnLoad += new IsFileUpToDate(this.CheckIsFileUpToDateOnLoad);
this.isFileUpToDateOnSave += new IsFileUpToDate(this.CheckIsFileUpToDateOnSave);
this.isModelUpToDateOnLoad += new IsModelUpToDate(this.CheckIsModelUpToDate);
}
@@ -66,25 +65,6 @@ namespace CampusAppWP8.Feed.Link
return this.CheckIsUpToDate(lastModified);
}
/// <summary>
/// Method check if the FeedFile is up-to-date
/// </summary>
/// <param name="model">reference of the FeedModel</param>
/// <param name="fileInfo">info about the file</param>
/// <returns>true, if file is up-to-date, otherwise false</returns>
private bool CheckIsFileUpToDateOnSave(LinkListModel model, FileInfo fileInfo)
{
bool retValue = true;
if ((fileInfo.Exists == false)
|| (fileInfo.Length == 0))
{
retValue = false;
}
return retValue;
}
/// <summary>
/// Check if the model or file is up-to-date.
/// </summary>

View File

@@ -28,7 +28,6 @@ namespace CampusAppWP8.Feed.Link
: base(ModelType.FileAndFeed, Constants.FileLink_CommonLinks, Constants.UrlLink_CommonLinks)
{
this.isFileUpToDateOnLoad += new IsFileUpToDate(this.CheckIsFileUpToDateOnLoad);
this.isFileUpToDateOnSave += new IsFileUpToDate(this.CheckIsFileUpToDateOnSave);
this.isModelUpToDateOnLoad += new IsModelUpToDate(this.CheckIsModelUpToDate);
}
@@ -54,25 +53,6 @@ namespace CampusAppWP8.Feed.Link
return this.CheckIsUpToDate(lastModified);
}
/// <summary>
/// Method check if the FeedFile is up-to-date
/// </summary>
/// <param name="model">reference of the FeedModel</param>
/// <param name="fileInfo">info about the file</param>
/// <returns>true, if file is up-to-date, otherwise false</returns>
private bool CheckIsFileUpToDateOnSave(LinkListModel model, FileInfo fileInfo)
{
bool retValue = true;
if ((fileInfo.Exists == false)
|| (fileInfo.Length == 0))
{
retValue = false;
}
return retValue;
}
/// <summary>
/// Method check if the FeedFile is up-to-date
/// </summary>

View File

@@ -28,7 +28,6 @@ namespace CampusAppWP8.Feed.Mensa
: base(ModelType.FileAndFeed, Constants.FileMensa_Shedule, Constants.UrlMensa_Week)
{
this.isFileUpToDateOnLoad += new IsFileUpToDate(this.CheckIsFileUpToDateOnLoad);
this.isFileUpToDateOnSave += new IsFileUpToDate(this.CheckIsFileUpToDateOnSave);
this.isModelUpToDateOnLoad += new IsModelUpToDate(this.CheckIsModelUpToDate);
}
@@ -66,25 +65,6 @@ namespace CampusAppWP8.Feed.Mensa
return this.CheckIsUpToDate(lastModified);
}
/// <summary>
/// Method check if the FeedFile is up-to-date
/// </summary>
/// <param name="model">reference of the FeedModel</param>
/// <param name="fileInfo">info about the file</param>
/// <returns>true, if file is up-to-date, otherwise false</returns>
private bool CheckIsFileUpToDateOnSave(MenuWeekModel model, FileInfo fileInfo)
{
bool retValue = true;
if ((fileInfo.Exists == false)
|| (fileInfo.Length == 0))
{
retValue = false;
}
return retValue;
}
/// <summary>
/// Method check if the last modification was later as the NewMenuWeekDay
/// </summary>

View File

@@ -28,7 +28,6 @@ namespace CampusAppWP8.Feed.StudentCouncil
: base(ModelType.FileAndFeed, Constants.FileStudentCouncil_StudentCouncils, Constants.UrlStudentCouncil_StudentCouncils)
{
this.isFileUpToDateOnLoad += new IsFileUpToDate(this.CheckIsFileUpToDateOnLoad);
this.isFileUpToDateOnSave += new IsFileUpToDate(this.CheckIsFileUpToDateOnSave);
this.isModelUpToDateOnLoad += new IsModelUpToDate(this.CheckIsModelUpToDate);
}
@@ -66,24 +65,6 @@ namespace CampusAppWP8.Feed.StudentCouncil
return this.CheckIsUpToDate(lastModified);
}
/// <summary>
/// Method check if the FeedFile is up-to-date
/// </summary>
/// <param name="model">reference of the FeedModel</param>
/// <param name="fileInfo">info about the file</param>
/// <returns>true, if file is up-to-date, otherwise false</returns>
private bool CheckIsFileUpToDateOnSave(StudentCouncilListModel model, FileInfo fileInfo)
{
bool retValue = true;
if ((fileInfo.Exists == false)
|| (fileInfo.Length == 0))
{
retValue = false;
}
return retValue;
}
/// <summary>
/// Check if the model or file is up-to-date.
/// </summary>