AutoWikiBrowser.MainForm.SkipChecks C# (CSharp) Method

SkipChecks() private method

Skips the article based on protection level and contains/not contains logic
private SkipChecks ( bool checkContains, bool checkNotContains ) : bool
checkContains bool Whether to test contains logic
checkNotContains bool Whether to test not contains logic
return bool
        private bool SkipChecks(bool checkContains, bool checkNotContains)
        {
            if (!TheSession.User.CanEditPage(TheSession.Page))
            {
                SkipPage("Page is protected");
                return true;
            }

            if (!TheSession.User.CanCreatePage(TheSession.Page))
            {
                SkipPage("Page is protected from creation");
                return true;
            }

            if (checkContains && skipIfContains.CheckEnabled && skipIfContains.Matches(TheArticle))
            {
                SkipPage(skipIfContains.SkipReason);
                return true;
            }

            if (checkNotContains && skipIfNotContains.CheckEnabled && skipIfNotContains.Matches(TheArticle))
            {
                SkipPage(skipIfNotContains.SkipReason);
                return true;
            }

            return false;
        }
MainForm