public fAppSetting(Form f) : base(f) { InitializeComponent(); AtMng.GetAppSetting().Load(); appSettingBindingSource.DataSource = AtMng.DB; appSettingBindingSource.DataMember = AtMng.DB.AppSetting.TableName; }
private void Save() { if (AtMng.DB.AppSetting.HasErrors) { UIHelper.TableHasErrorsOnSaveMessBox(AtMng.DB); } else { try { appSettingBindingSource.EndEdit(); atLogic.BusinessProcess bp = AtMng.GetBP(); bp.AddForUpdate(AtMng.GetAppSetting()); bp.Update(); } catch (Exception x) { throw x; } } }