private void ApplyBtn_Click(object sender, EventArgs e) { SetPersonalInfo(); SetSale(); SetPhones(); _selectedPatient.IconPath = SetIcon(IconImageBox, _selectedPatient.IconPath); if (_selectedPatient.Id == null) { _selectedPatient.Firm = _firmService.FindOne(_settings.FirmId); _patientService.Save(_selectedPatient); } else { _patientService.Update(_selectedPatient); } EnablePersonalInfoTabElements(false); }