enable department

This commit is contained in:
stubbfel
2013-07-16 11:41:32 +02:00
parent db15808e24
commit 544ae68f2c
6 changed files with 13 additions and 21 deletions

View File

@@ -44,7 +44,11 @@ namespace CampusAppWP8.Api.Mensa
/// <returns>true, if model is up-to-date, otherwise false</returns>
private bool CheckIsModelUpToDate(MenuWeekModel model)
{
DateTime lastModified = this.Model.CreateTime;
if (model == null)
{
return false;
}
DateTime lastModified = model.CreateTime;
return this.CheckIsUpToDate(lastModified);
}

View File

@@ -115,7 +115,7 @@ namespace CampusAppWP8.Resources {
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die ähnelt.
/// Sucht eine lokalisierte Zeichenfolge, die IsolatedStorage_DepartmentFavoriteModel ähnelt.
/// </summary>
public static string IsolatedStorage_DepartmentFavoriteModel {
get {
@@ -150,15 +150,6 @@ namespace CampusAppWP8.Resources {
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die ähnelt.
/// </summary>
public static string LinkApp_CommonLinks {
get {
return ResourceManager.GetString("LinkApp_CommonLinks", resourceCulture);
}
}
/// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Studiengang ähnelt.
/// </summary>

View File

@@ -190,7 +190,7 @@
<value>/Pages/Openinghours/OpeninghoursPage.xaml</value>
</data>
<data name="IsolatedStorage_DepartmentFavoriteModel" xml:space="preserve">
<value />
<value>IsolatedStorage_DepartmentFavoriteModel</value>
</data>
<data name="FileDepartment_Favorite_Name" xml:space="preserve">
<value>DepartmentFavoriteFeed.xml</value>
@@ -249,9 +249,6 @@
<data name="UrlStudentCouncil_StudentCouncils" xml:space="preserve">
<value>http://www.tu-cottbus.de/campusapp-data/getdata.php?db=studentcouncils&amp;app=2&amp;appversion=1</value>
</data>
<data name="LinkApp_CommonLinks" xml:space="preserve">
<value />
</data>
<data name="FileMensa_Shedule" xml:space="preserve">
<value>MensaFeed.xml</value>
</data>

View File

@@ -24,12 +24,12 @@ namespace CampusAppWP8.Utility.Lui.Button
public static readonly DependencyProperty NavigateProperty = DependencyProperty.Register("Url", typeof(object), typeof(NavigateButton), new PropertyMetadata(false));
/// <summary>
/// Register the QuerryValueProperty
/// Register the QueryValueProperty
/// </summary>
public static readonly DependencyProperty QueryValueProperty = DependencyProperty.Register("QuerryStringValue", typeof(object), typeof(NavigateButton), new PropertyMetadata(false));
/// <summary>
/// Register the QuerryNameProperty
/// Register the QueryNameProperty
/// </summary>
public static readonly DependencyProperty QueryNameProperty = DependencyProperty.Register("QuerryStringName", typeof(object), typeof(NavigateButton), new PropertyMetadata(false));
@@ -59,7 +59,7 @@ namespace CampusAppWP8.Utility.Lui.Button
}
/// <summary>
/// Gets or sets the QuerryStringName
/// Gets or sets the QueryStringName
/// </summary>
public object QuerryStringName
{
@@ -68,7 +68,7 @@ namespace CampusAppWP8.Utility.Lui.Button
}
/// <summary>
/// Gets or sets the QuerryStringValue
/// Gets or sets the QueryStringValue
/// </summary>
public object QuerryStringValue
{

View File

@@ -67,7 +67,7 @@ namespace CampusAppWP8
this.fileName = fileName;
if ((this.IsFile() == true)
&& (fileName.Equals(string.Empty) == false))
&& (fileName.Equals(string.Empty) == false))
{
this.InitFile(CampusAppWP8.Utility.File.IOTypeRead.ReadSync, CampusAppWP8.Utility.File.IOTypeWrite.WriteAsync);
}

View File

@@ -88,7 +88,7 @@
</lui:NavigateButton>
<!-- Row 2 -->
<lui:NavigateButton Name="DepartmentAppButton" Grid.Row="2" Grid.Column="0" Style="{StaticResource StartPageButton}" IsEnabled="False">
<lui:NavigateButton Name="DepartmentAppButton" Grid.Row="2" Grid.Column="0" Style="{StaticResource StartPageButton}" Url="{Binding Path=Constants.PathDepartment_DepartmentIndexPage, Source={StaticResource Const}}">
<StackPanel Style="{StaticResource StartPageStackPanelStyle}">
<Image Source="{Binding Path=ThemelizedIcon.Departments, Source={StaticResource ThemelizedIcons}}" Style="{StaticResource StartPageButtonImg}"/>
<TextBlock Text="{Binding Path=LocalizedResources.DepartmentApp_Title, Source={StaticResource LocalizedStrings}}" Style="{StaticResource StartPageButtonText}"/>