Exemplo n.º 1
0
        public async void Initialize(ViewRequest viewRequest)
        {
            model.GetConfiguration((viewRequest as KanbanViewRequest)?.ConfigurtaionName);

            var filtersData = await Task
                              .Run(() => model.LoadFiltersData())
                              .ConfigureAwait(true);

            Projects.Clear();
            foreach (var project in filtersData.Projects)
            {
                Projects.Add(project);
            }


            Priorities.Clear();
            foreach (var priority in filtersData.Priorities)
            {
                Priorities.Add(priority);
            }


            if (model.Configuration != null &&
                model.Configuration.ProjectId.HasValue)
            {
                CurrentProject = Projects.FirstOrDefault(x => x.Id == model.Configuration.ProjectId);
            }

            await DoRefresh();
        }
Exemplo n.º 2
0
        protected void ReadListsOfValues()
        {
            Types.Clear();
            foreach (var issueType in jira.IssueTypes.GetIssueTypesAsync().Result)
            {
                Types.Add(issueType.Id, new JiraIssueTypeModelService(issueType).Read());
            }

            Priorities.Clear();
            foreach (var prio in jira.Priorities.GetPrioritiesAsync().Result)
            {
                Priorities.Add(new JiraPriorityModelService(prio).Read());
            }
        }