Ejemplo n.º 1
0
 public matchNannies(BE.Mother mom, int distance)
 {
     InitializeComponent();
     bl      = BL.FactoryBL.getBL();
     temp    = new List <BE.Nanny>();
     momTemp = mom;
     temp    = bl.getMatchNanniesList(mom);
     Nanny   = bl.closeDistanceNannies(mom, distance, temp);
     motherDataGrid.DataContext = null;
     motherDataGrid.DataContext = Nanny;
 }
Ejemplo n.º 2
0
        public closeDistanceNannies(string adrresAddress, int slider)
        {
            InitializeComponent();
            bl = BL.FactoryBL.getBL();

            BE.Mother temp = new BE.Mother();
            temp.AreaOfLookFor = adrresAddress;

            Nanny = new List <BE.Nanny>();
            Nanny = bl.closeDistanceNannies(temp, slider);
            motherDataGrid.DataContext = null;
            motherDataGrid.DataContext = Nanny;
        }