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