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