public void setMainFunctionality(Functionality data)
        {
            this.MainFunctionality.Children.Clear();
            FunctionnalityField item = new FunctionnalityField(data);

            item.SelectMainFunctionality += OnCheckMainFunctionality;
            this.MainFunctionality.Children.Add(item);
        }
 private void setSubFunctionalities(List <Domain.Functionality> datas)
 {
     this.FieldPanel.Children.Clear();
     foreach (Domain.Functionality data in datas)
     {
         FunctionnalityField item = new FunctionnalityField(data);
         item.SelectSubMainFunctionality += OnCheckSubFunctionality;
         item.GroupField = this;
         this.FieldPanel.Children.Add(item);
     }
 }