// As soon as a Gemini connections is established try to
        // get the basic Project Data for all available Gemini Projects,
        // and start loading all the additional Data in the background ...
        private void LoadGeminiData()
        {
            var tmplist = new List <IProject>();

            foreach (var p in this.getAllProjects())
            {
                tmplist.Add(new ProjectModel(p));
            }
            // Sort the Project List alphabetically by name
            this._allprojects = tmplist.OrderBy(i => i.Project.ProjectName).ToList();
            // Get the "General" Gemini Data
            this._generaldata.Resolutions = getResolutions();
            this._generaldata.Statuses    = getStatuses();
            // publish the new loaded data
            var eventargs = new ProjectDataLoadedEventArgs(this._allprojects, this._generaldata);

            this._eventAggregator.GetEvent <ProjectDataLoadedEvent>().Publish(eventargs);
            // Start loading all the additional data in the background
            GetCompleteProjectData();
        }
Exemplo n.º 2
0
 private void OnProjectListLoaded(ProjectDataLoadedEventArgs e)
 {
     this.ProjectList = e.ProjectList;
 }