using System; using System.Collections.Generic; using System.Linq; using System.Text; //using sch = Schema; using s = System; using cub = ClientUtil; //using ddal = DomainDAL; using du = DomainUtil; using u = Util; using ns = Presenter; using ui=UIInterface.NWAccnts; using uib=UIInterface; using si=ServiceInterface; using gt=GlobalType; namespace Presenter { public class NWAccnts : C, ui.IPresenter { si.IService _Service; ui.IView _view; List<gt.NWAccnt> _lst; protected override UIInterface.IView GetView(){return _view;} public NWAccnts(uib.IViewFactory theViewFactory, si.IService theService) { _Service = theService; _view = theViewFactory.CreateViewForNWAccnts(); _view.SetPresenter(this); gt.NWAccnt[] arry; arry = _Service.Get2WayNWAccnts(); _lst = new List<gt.NWAccnt>(arry); } public void Show() { _view.Show(_lst); } void LLSaveAndReload() { IEnumerable<gt.NWAccnt> lst = _lst.Where((o) => o.New || o.Modified); _Service.UpdateNWAccnts(lst.ToArray()); gt.NWAccnt[] arry = _Service.Get2WayNWAccnts(); _lst = new List<gt.NWAccnt>(arry); _view.Reload(_lst); } public void SaveAndReload() { ExecuteWithErrorHandlingAndBusyIndicatorAndDoneMessage(LLSaveAndReload); } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)