Example #1
0
        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);
            }
        }
Example #2
0
 public void SetPublic()
 {
     category.SetPublic(authentication);
 }