Exemplo n.º 1
0
        public InActiveTaskViewModel(TimeEntry timeEntry, bool exists, double width, double height, double timeSpentFontSize, double taskNameFontSize, double detailsFontSize)
        {
            Width             = width;
            Height            = height;
            TimeSpentFontSize = timeSpentFontSize;
            TaskNameFontSize  = taskNameFontSize;
            DetailsFontSize   = detailsFontSize;

            _saved               = exists;
            _timeEntry           = timeEntry.Copy();
            Activate             = new DelegateCommand <object>(ExecuteActivate);
            CloseInactiveTask    = new DelegateCommand <object>(CloseInactiveTaskExecute);
            CloseAllInactiveTask = new DelegateCommand <object>(CloseAllInactiveTaskExecute);
        }
 public void AddOpenTimeEntry(TimeEntry timeEntry)
 {
     _applicationState.OpenTimeEntries.Add(timeEntry.Copy());
 }