Exemplo n.º 1
0
 public void LoadCorporations(IEnumerable <long> corporationIds)
 {
     corporationIds = corporationIds.Distinct().Where(w => !Corporations.Select(s => s.Id).ToList().Contains(w));
     corporationIds.ToList().ForEach(f =>
                                     Corporations.Add(_mapper.Map <Devpack.ESI.Models.Corporation.Summary>(
                                                          new Devpack.ESI.Models.Corporation.Detail(f))));
 }
Exemplo n.º 2
0
 private void ExecuteAddNew(object parameter)
 {
     Corporations.Add(new CorporationModel()
     {
         ID = 0, Name = string.Empty, LogoID = 0
     });
     ScrollToSelectedItem = Corporations.Count - 1;
 }
Exemplo n.º 3
0
        public void AddParentCorporation()
        {
            ParentCorporation = new Devpack.ESI.Models.Corporation.Detail(Properties.Settings.Default.CorporationId);

            Corporations.Add(_mapper.Map <Devpack.ESI.Models.Corporation.Summary>(ParentCorporation));
        }