protected virtual Result FromPageBasedStage(PageBasedStage stage, ResultType type, string scope, string message, string description) { return(new Result() { RuleName = GetRuleName(), RuleDescription = GetRuleDescription(), Type = type, Parent = stage.Name, Scope = scope, Message = message, Description = description }); }
private void LoadPages(string mainPageName, TreeNode parent, PageBasedStage pagedObject) { var mainNode = new TreeNode(mainPageName); parent.Nodes.Add(mainNode); LoadStages(mainNode, pagedObject.MainPage); foreach (var page in pagedObject.Pages) { var pageNode = new TreeNode(page.Name) { Tag = page }; parent.Nodes.Add(pageNode); LoadStages(pageNode, page.Stages); } }