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)))); }
private void ExecuteAddNew(object parameter) { Corporations.Add(new CorporationModel() { ID = 0, Name = string.Empty, LogoID = 0 }); ScrollToSelectedItem = Corporations.Count - 1; }
public void AddParentCorporation() { ParentCorporation = new Devpack.ESI.Models.Corporation.Detail(Properties.Settings.Default.CorporationId); Corporations.Add(_mapper.Map <Devpack.ESI.Models.Corporation.Summary>(ParentCorporation)); }