Example #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmAddEditLR frm = new frmAddEditLR(new Liquidations()
            {
                ObRId = this.obligations.Id
            }, MethodType.Add);

            frm.ShowDialog();
            Init();
        }
Example #2
0
 private void btnEditPORepo_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (LRGridView.GetFocusedRow() is Liquidations item)
     {
         UnitOfWork unitOfWork = new UnitOfWork();
         item = unitOfWork.LiquidationsRepo.Find(x => x.Id == item.Id);
         frmAddEditLR frm = new frmAddEditLR(item, MethodType.Edit);
         frm.ShowDialog();
         Init();
     }
 }