Beispiel #1
0
        private void btnNewPO_Click(object sender, EventArgs e)
        {
            frmAddEditOffices frm = new frmAddEditOffices(null, MethodType.Add);

            frm.ShowDialog();
            this.OfficeBindingSource.DataSource = new UnitOfWork().OfficesRepo.Get();
        }
Beispiel #2
0
        private void btnEditPo_Click(object sender, EventArgs e)
        {
            var res = OfficeGrid.GetFocusedRow();

            if (res is Offices item)
            {
                frmAddEditOffices frm = new frmAddEditOffices(item, MethodType.Edit);
                frm.ShowDialog();
                this.OfficeBindingSource.DataSource = new UnitOfWork().OfficesRepo.Get();
            }
        }