Exemplo n.º 1
0
        public EntryItemViewModel AddEntryItemFromChild(EntryItemViewModel priorEntryItemViewModel, TimeSpan newTime)
        {
            EntryItemViewModel entryItemViewModel = new EntryItemViewModel(this, priorEntryItemViewModel, newTime.ToString(), newTime, "", "", false);

            EntryList.Add(entryItemViewModel);
            return(entryItemViewModel);
        }
        public EntryItemViewModel(MainPageViewModel mainPageViewModel, EntryItemViewModel priorEntryItemViewModel, string startTime, TimeSpan endTime, string task, string description, bool registered)
        {
            MainPageViewModel       = mainPageViewModel;
            PriorEntryItemViewModel = priorEntryItemViewModel;
            StartTime         = startTime;
            EndTime           = endTime;
            Task              = task;
            Description       = description;
            Registered        = registered;
            EndTime_IsEnabled = true;

            EraseCommand = new Command(ExecuteEraseCommand, CanExecuteEraseCommand);
        }
Exemplo n.º 3
0
 public void RemoveItem(EntryItemViewModel item)
 {
     EntryList.Remove(item);
 }