public DivisionList()
        {
            InitializeComponent();
            ListDivision listdivision = new ListDivision();

            AddDivision(listdivision);
        }
 public void AddDivision(ListDivision listdivision)
 {
     listDivisions = new List <ListDivision>();
     if (listdivision.DesDocGrpName != null)
     {
         listDivisions.Add(listdivision);
     }
     listDivision.ItemsSource = listDivisions;
     if (listDivisions.Count == 0)
     {
         listDivision.IsVisible   = false;
         btnAddDivision.IsVisible = true;
     }
 }
 public DivisionList(ListDivision listDivision)
 {
     InitializeComponent();
     AddDivision(listDivision);
 }