Ejemplo n.º 1
0
        public fAppSetting(Form f)
            : base(f)
        {
            InitializeComponent();

            AtMng.GetAppSetting().Load();

            appSettingBindingSource.DataSource = AtMng.DB;
            appSettingBindingSource.DataMember = AtMng.DB.AppSetting.TableName;
        }
Ejemplo n.º 2
0
 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;
         }
     }
 }