Beispiel #1
0
        public void GetPartyList(string findAll)
        {
            List <Party> lstParty = null;

            try
            {
                base.ExecutionStart();
                base.BeginProcessing("Begin Load data...", "Please Waiting for Loading Data");

                using (PartyBLL partyBll = new PartyBLL())
                {
                    lstParty = partyBll.GetPartyList(findAll);
                }

                this.grdParty.DataSource = lstParty;
                this.dntParty.DataSource = lstParty;

                base.ExecutionStop();
            }
            catch (Exception ex)
            {
                base.FinishedProcessing();
                XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
            finally
            {
                base.FinishedProcessing();
                ((frmMainMenu)this.ParentForm).ExecuteTime.Caption = base.ExecuteTime;
            }
        }