|
|
@ -47,15 +47,10 @@ namespace eCompanies |
|
|
|
case MessageBoxResult.No: return; |
|
|
|
case MessageBoxResult.Yes: e.Cancel = true; return; |
|
|
|
} |
|
|
|
|
|
|
|
if (u.UserId == 0) |
|
|
|
{ |
|
|
|
u.CompanyId = currentCompany.CompanyId; |
|
|
|
u.Company = currentCompany; |
|
|
|
currentCompany.Users.Add(u); |
|
|
|
} |
|
|
|
u.CompanyId = currentCompany.CompanyId; |
|
|
|
u.Company = currentCompany; |
|
|
|
currentCompany.Users.Add(u); |
|
|
|
} |
|
|
|
|
|
|
|
currentCompany.ContractStatus = contractStatusComboBox.SelectedIndex; |
|
|
|
currentCompany.Name = companyNameBox.Text; |
|
|
|
updateCompanyItem(currentCompany); |
|
|
|