public CompanyCard(Company company) { CompanyGuid = company.CompanyGuid; PhoneNumber = $"Tel : {company.Address.PhoneNumber}"; Name = company.Name; CustomerStatus = company.CustomerStatus; Comment = company.Comment; FullAddress = $"{company.Address.Line1}, BP: {company.Address.PostCode}"; }
public AddCompany(Guid companyToModGuid = default(Guid)) { InitializeComponent(); Dispatcher.BeginInvoke(new Action(async () => { if (companyToModGuid == Guid.Empty) { _isAdd = true; var obj = new Company { Address = new Address(), }; _GRID.DataContext = obj; } else _GRID.DataContext = await App.Store.Sales.Get(companyToModGuid); })); }