// コンストラクタ public ListPageViewModel(INavigationService navigationService, MazaiHolder mazaiHolder) : base(navigationService) { _mazaiHolder = mazaiHolder; MazaiNotes = _mazaiHolder.ToReactivePropertyAsSynchronized(x => x.MazaiNotes); }
// コンストラクタ public EditPageViewModel(INavigationService navigationService, MazaiHolder mazaiHolder) : base(navigationService) { _mazaiHolder = mazaiHolder; MazaiNotes = _mazaiHolder.ToReactivePropertyAsSynchronized(x => x.MazaiNotes); MazaiNote.Value = new MazaiNote() { Date = DateTime.Now, TimeSpan = new TimeSpan(DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second) }; }