示例#1
0
        public ConferenceAddsScientistViewModel(Window window, ConferenceModel conference)
        {
            List <Scientist> scientists = ScientistService.GetScientists();

            foreach (Scientist s in scientists)
            {
                Scientists.Add(new ScientistModel(s));
            }
            this.Window             = window;
            this.SelectedConference = conference;
        }
示例#2
0
        public OrganizationAddsScientistViewModel(Window window, OrganizationModel organization)
        {
            List <Scientist> scientists = ScientistService.GetScientists();

            foreach (Scientist s in scientists)
            {
                Scientists.Add(new ScientistModel(s));
            }
            this.Window = window;
            this.SelectedOrganization = organization;
        }
示例#3
0
        public CountryAddsScientistViewModel(Window window, CountryModel selectedCountry)
        {
            List <Scientist> scientists = ScientistService.GetScientists();

            foreach (Scientist s in scientists)
            {
                Scientists.Add(new ScientistModel(s));
            }
            this.Window          = window;
            this.SelectedCountry = selectedCountry;
        }