public void Unlock(ITypeCategory category, TaskContext context) { category.Dispatcher.Invoke(() => { if (category.Parent == null) { return; } if (Verify() == false) { return; } category.Unlock(context.Authentication); }); bool Verify() { if (context.AllowException == true) { return(true); } if (category.IsLocked == false) { return(false); } return(true); } }
public void Unlock() { category.Unlock(authentication); }