private void btnSave_Click(object sender, EventArgs e) { try { if (!dxValidationProvider1.Validate()) { return; } if (ObjEOTTO == null) { ObjEOTTO = new EOTTO(); } if (ObjBOTTO == null) { ObjBOTTO = new BOTTO(); } ParseOTTODetails(); ObjEOTTO = ObjBOTTO.SaveOTTODetails(ObjEOTTO); BindOTTOData(); cmbOTTO.EditValue = ObjEOTTO.OTTOID; if (Utility._IsGermany == true) { frmOTTOPro.UpdateStatus("Vorgang abgeschlossen: Speichern der OTTO Stammdaten"); } else { frmOTTOPro.UpdateStatus("OTTO Data saved successfully"); } } catch (Exception ex) { Utility.ShowError(ex); } }
private void btnSaveContact_Click(object sender, EventArgs e) { try { if (ObjEOTTO == null) { ObjEOTTO = new EOTTO(); } ParseOTTOContactsDetails(); ObjBOTTO = new BOTTO(); ObjEOTTO = ObjBOTTO.SaveOTTOContactDetails(ObjEOTTO); this.DialogResult = DialogResult.OK; } catch (Exception ex) { Utility.ShowError(ex); } }