Esempio n. 1
0
        private void luuPhieuChi()
        {
            if (this.IsEditing)
            {
                this.updatePhieuChi();
            }
            else
            {
                this.insertPhieuChi();
            }

            if (this.GridView != null)
            {
                BindingSource   phieuChiBindingSource = this.GridView.GridControl.DataSource as BindingSource;
                PhieuChiService phieuChiService       = new PhieuChiService();
                phieuChiBindingSource.DataSource = phieuChiService.LoadPhieuChi(this.phieuChiTableAdapter);
            }
        }
Esempio n. 2
0
        private void loadPhieuChi()
        {
            PhieuChiService phieuChiService = new PhieuChiService();

            this.phieuChiRowBindingSource.DataSource = phieuChiService.LoadPhieuChi(this.phieuChiTableAdapter);
        }