private void FormClosedEvent(object sender, FormClosedEventArgs e) { if (!isLocked) { var lockBiz = new LockingBiz(); lockBiz.UnlockItem(Constants.TableNameOrder, itemId, currentUser.Id); } }
private void Unlock(object sender, EventArgs e) { var locking = dataGridView.SelectedRows[0].DataBoundItem as LockingTemplate; if (locking != null) { var biz = new LockingBiz(); biz.UnlockItem(locking.TableName, locking.ItemId, locking.CurrentUserId); RefreshItems(sender, e); } }