private static string GetCheckResultGroupName(CheckResultGroup group) { var chineseName = group.ActionType.ToChineseName(); var count = group.CheckResults.Count(); var result = chineseName + "(" + count + ")"; return(result); }
public CheckResultGroupViewModel(BrowserNodeViewModel parent, CheckResultGroup group) : base(parent, group, GetCheckResultGroupName(group)) { if (group == null) { throw new ArgumentNullException("group"); } InitializeChildren(); }