AddCheck() public method

public AddCheck ( CheckDescription description ) : void
description CheckDescription
return void
示例#1
0
        public void AddCheck(CheckDescription description)
        {
            foreach (CheckList checkList in this.checks)
            {
                if (checkList.CheckName == description.CheckName)
                {
                    checkList.AddCheck(description);
                    return;
                }
            }

            var toAdd = new CheckList();

            toAdd.CheckName = description.CheckName;
            toAdd.AddCheck(description);
            this.checks.Add(toAdd);
        }
示例#2
0
        public void AddCheck(CheckDescription description)
        {
            foreach (CheckList checkList in this.checks)
            {
                if (checkList.CheckName == description.CheckName)
                {
                    checkList.AddCheck(description);
                    return;
                }
            }

            var toAdd = new CheckList();
            toAdd.CheckName = description.CheckName;
            toAdd.AddCheck(description);
            this.checks.Add(toAdd);
        }