Ejemplo n.º 1
0
        protected override Task InitializeInternalAsync()
        {
            _logs = new ObservableCollection <NodeViewModel>(_project.Nodes.Select(l => new NodeViewModel(_project, l, _navigationService, this)));

            TimeLogsModel = new TimeLogsModel(_project);

            return(Task.CompletedTask);
        }
Ejemplo n.º 2
0
        private async Task Analyze()
        {
            Busy.MaxProgressValue = _project.Nodes.Count;
            Busy.ProgressValue    = 0;
            foreach (BatNode node in _project.Nodes)
            {
                Busy.Message = $"Analysiere Node {Busy.ProgressValue+1} / {Busy.MaxProgressValue}...";
                await _batProjectManager.AnalyzeNode(_project, node);

                Busy.ProgressValue++;
            }

            _project.Refresh();
            TimeLogsModel.Refresh();
        }