private void Initialize() { BL.Internal.ParameterSystem bl; DL.Internal.ParameterSystem.ParameterSystemObject parameterSystem; try { bl = new BL.Internal.ParameterSystem(); //SMTP_VUYLSTEKE parameterSystem = bl.GetByKeyName(ParameterSystemObject.SMTP_VUYLSTEKE); txtSMTP_Vuylsteke.Text = parameterSystem.Value; } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } }
private void btnSave_Click(object sender, EventArgs e) { BL.Internal.ParameterSystem bl; DL.Internal.ParameterSystem.ParameterSystemObject parameterSystem; try { bl = new BL.Internal.ParameterSystem(); //SMTP_VUYLSTEKE parameterSystem = bl.GetByKeyName(ParameterSystemObject.SMTP_VUYLSTEKE); parameterSystem.Value = txtSMTP_Vuylsteke.Text; parameterSystem.State = PROF_IT.Common.Enumerations.ObjectState.Modified; bl.Save(parameterSystem); this.Close(); } catch (System.Exception exception1) { System.Exception thisException = exception1; Management.ShowException(thisException); } }