using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; //using sch = Schema; using s = System; //using cdmn = ClientDomain; //using ddal = DomainDAL; //using dmn = Domain; using u = Util; using ns = WinUI; using ui=UIInterface.DltAllocAccnts; using gt=GlobalType; namespace WinUI { public partial class DltAllocAccntsForm : Form, ui.IView { IList<gt.DltAllocAccnt> _lst; public DltAllocAccntsForm( ){InitializeComponent() ;} ui.IPresenter _Prsntr; public void SetPresenter( ui.IPresenter aPresenter){_Prsntr = aPresenter ;} public void ShowBusyIndicator( ){Misc.ShowBusyIndicator() ;} public void ClearBusyIndicator( ){Misc.ClearBusyIndicator() ;} public void ShowSimpleMessage( string str ){Misc.ShowSimpleMessage(str) ;} public void ShowException( System.Exception ex ){Misc.ShowException(ex) ;} private void _btnSaveAndReload_Click(object sender, EventArgs e){_Prsntr.SaveAndReload();} void Bind() { BindingSource bs = new BindingSource(); bs.DataSource = _lst; this._dgv.DataSource = bs; } protected override void OnLoad(EventArgs e) { base.OnLoad(e); Bind(); } public void Show(IList<gt.DltAllocAccnt> data) { _lst = data; this.Show(); } public void Reload(IList<gt.DltAllocAccnt> data) { _lst = data; Bind(); } } }
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)