public void Refresh()
        {
            AreaContains.Children.Clear();
            // Console.Write("Begin!");

            if (_areas == null)
            {
                // Console.Write("_areas is Null!");
            }
            if (_areas != null && _areas.Count != 0)
            {
                Console.Write("!");
                for (int i = 0; i < _areas.Count(); i++)
                {
                    UserArea area = new UserArea();
                    area.MyArea        = _areas[i];
                    area.Index         = i;
                    area.OnSelectThis += area_OnSelectThis;
                    area.OnEditThis   += area_OnEditThis;
                    AreaContains.Children.Add(area);
                    Console.Write(_areas.Count());
                }
                InvalidateVisual();

                if (OnCurrentAreaChanged != null)
                {
                    OnCurrentAreaChanged(this, null);
                }
            }
        }
      public  void Refresh()
        {
            AreaContains.Children.Clear();
           // Console.Write("Begin!");
          
            if (_areas ==null)
            {
               // Console.Write("_areas is Null!");
 
            }
            if (_areas != null && _areas.Count != 0)
            {
                Console.Write("!");
                for (int i = 0; i < _areas.Count(); i++)
                {
                    UserArea area = new UserArea();
                    area.MyArea = _areas[i];
                    area.Index = i;
                    area.OnSelectThis += area_OnSelectThis;
                    area.OnEditThis += area_OnEditThis;
                    AreaContains.Children.Add(area);
                    Console.Write(_areas.Count());
                }
                InvalidateVisual();

                if (OnCurrentAreaChanged != null)
                {
                    OnCurrentAreaChanged(this,null);
                }
            }
        }