public ListTimeEntryViewModel(TimeEntry timeEntry, ListItemModelBase parent, IDataService dataService, IUserRepository userRepository)
            : base(parent, timeEntry, dataService, userRepository)
        {
            _parent = parent as ListTaskViewModel;

            ActionPanelViewFactory = new TimeEntryActionPanelViewFactory(timeEntry);
            InitUserName();
        }
Exemple #2
0
        public override ListItemModelBase AddChild(IEntity entity)
        {
            var viewModel = new ListTaskViewModel(entity as Task, this, DataService, UserRepository);

            Children.Add(viewModel);

            Reload();
            return(viewModel);
        }