Exemplo n.º 1
0
        /// <summary>
        ///  build fun for class/window ,get parmeters to how to build the window
        /// </summary>
        /// <param name="n">num for choose option</param>
        public Results(int n)
        {
            InitializeComponent();
            bl = new BL.BL_imp();
            switch (n)
            {
            case 1:
                this.nannies_mothers.DataContext = bl.NannyList();
                break;

            case 2:
                this.nannies_mothers.DataContext = bl.MotherList();
                break;

            case 3:
                this.children.DataContext        = bl.ChildList();
                this.nannies_mothers.DataContext = bl.NannyList();
                break;

            case 4:
                this.contracts.DataContext = bl.ContractList();
                break;

            default:
                break;
            }
        }