Example #1
0
 private void ProcessMessage(string message)
 {
     if (message == "Update")
     {
         Entries = DataBaseConnector.GetTimeEntriesFromDate(Time);
     }
 }
Example #2
0
        public DayViewModel(DateTime time)
        {
            _time = time;
            Date  = _time.ToString("dd-MM-yyyy");

            MessengerInstance.Register <string>(this, ProcessMessage);
            Entries = DataBaseConnector.GetTimeEntriesFromDate(Time);
        }