コード例 #1
0
        // コンストラクタ
        public ListPageViewModel(INavigationService navigationService, MazaiHolder mazaiHolder)
            : base(navigationService)
        {
            _mazaiHolder = mazaiHolder;

            MazaiNotes = _mazaiHolder.ToReactivePropertyAsSynchronized(x => x.MazaiNotes);
        }
コード例 #2
0
        // コンストラクタ
        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)
            };
        }