| 12345678910111213141516171819202122232425 | 
							- using InABox.Core;
 
- using InABox.DynamicGrid;
 
- using InABox.Poster.MYOB;
 
- using System;
 
- using System.Collections.Generic;
 
- using System.Linq;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- namespace PRS.Shared.Posters.MYOB;
 
- public class MYOBGlobalPosterSettingsGrid : DynamicItemsListGrid<MYOBGlobalPosterSettings>
 
- {
 
-     protected override void DoAfterSave(IDynamicEditorForm editor, MYOBGlobalPosterSettings[] items)
 
-     {
 
-         base.DoAfterSave(editor, items);
 
-         if(items.Any(x => x.HasOriginalValue(x => x.CompanyFileID) || x.HasOriginalValue(x => x.CompanyFilePassword) || x.HasOriginalValue(x => x.CompanyFileUserID)))
 
-         {
 
-             var data = MYOBPosterEngine.GetConnectionData();
 
-             // Reset authentication if it's changed.
 
-             data.CompanyFile = null;
 
-         }
 
-     }
 
- }
 
 
  |