예제 #1
0
파일: Coverage.cs 프로젝트: ssjda-ddi/EDO
        public void CheckTopics(List <string> labels)
        {
            //use it to read from DDI(process to put a check in the checkbox)
            List <string> otherLabels = new List <string>();

            foreach (string label in labels)
            {
                CheckOption option = CheckOption.FindByLabel <CheckOption>(Topics, label);
                if (option != null)
                {
                    option.IsChecked = true;
                }
                else
                {
                    otherLabels.Add(label);
                }
            }

            if (otherLabels.Count > 0)
            {
                //If labels that do not match exists, take only the first one
                CheckOption option = CheckOption.FindMemoOption(Topics);
                option.IsChecked = true;
                option.Memo      = otherLabels.First();
            }
        }
예제 #2
0
파일: Coverage.cs 프로젝트: ssjda-ddi/EDO
 public void CheckAreas(List <string> labels)
 {
     foreach (string label in labels)
     {
         CheckOption option = CheckOption.FindByLabel <CheckOption>(Areas, label);
         if (option != null)
         {
             option.IsChecked = true;
         }
     }
 }