Exemplo n.º 1
0
 private void FormClosedEvent(object sender, FormClosedEventArgs e)
 {
     if (!isLocked)
     {
         var lockBiz = new LockingBiz();
         lockBiz.UnlockItem(Constants.TableNameOrder, itemId, currentUser.Id);
     }
 }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
 private void FormClosedEvent(object sender, FormClosedEventArgs e)
 {
     if (!isLocked)
     {
         var lockBiz = new LockingBiz();
         lockBiz.UnlockItem(Constants.TableNameOrder, itemId, currentUser.Id);
     }
 }