Skip to content

Commit

Permalink
ready for issue cocoa-mhlw#198
Browse files Browse the repository at this point in the history
  • Loading branch information
i-maruyama committed May 27, 2021
1 parent cb1b9cc commit 7ba691b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

using System;
using Covid19Radar.Common;
using Covid19Radar.Services;
using Covid19Radar.Services.Logs;
Expand All @@ -13,7 +14,10 @@ namespace Covid19Radar.ViewModels
public class NotContactPageViewModel : ViewModelBase
{
private readonly ILoggerService loggerService;

public string NowDate
{
get { return DateTime.Now.ToLocalTime().ToString("D"); }
}
public NotContactPageViewModel(INavigationService navigationService, ILoggerService loggerService, IUserDataService userDataService) : base(navigationService)
{
Title = Resources.AppResources.TitileUserStatusSettings;
Expand Down
4 changes: 3 additions & 1 deletion Covid19Radar/Covid19Radar/Views/HomePage/NotContactPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<Label HorizontalOptions="Center" Style="{StaticResource DefaultTitleLabel}">
<Label.FormattedText>
<FormattedString>
<Span Text="{Binding NowDate}" />
<Span Text="&#xa;" />
<Span Text="{x:Static resources:AppResources.NotContactPageLabel1}" />
</FormattedString>
</Label.FormattedText>
Expand Down Expand Up @@ -57,4 +59,4 @@
</Grid>
</Grid>
</ScrollView>
</ContentPage>
</ContentPage>

0 comments on commit 7ba691b

Please sign in to comment.