private void CreateControl(IAllele allele, string representation)
        {
            var func = new Func<object, int>(AllelePopulation);
            var sp = _controlManager.CreateDataPairLinq(representation, representation + " Population" + " Populus",
                 func, new ValueConverter(), allele);

            var control = new AlleleControl(allele, sp, func);
            _controls.Add(control);
        }
 private void CreateCoDominantControls(IAllele allele)
 {
     foreach (var all in _dominantAlleles)
     {
         var rep = GeneRepresentationBuilder.CreateName(all.Representation, allele.Representation);
         var func = new Func<object, int>(CoDominantPopulation);
         var cdAll = new Allele(rep, false);
         var sp = _controlManager.CreateCoDominantPairLinq(rep, rep + " Population" + " Populus",
          func, new ValueConverter());
         var control = new AlleleControl(cdAll, sp, func, true);
         control.UpdateControlValue();
         _controls.Add(control);
     }
 }