예제 #1
0
 public addChildWindow()
 {
     InitializeComponent();
     childToAdd       = new BE.Child();
     this.DataContext = childToAdd;
     bl = BL.FactoryBL.GetBL();
 }
예제 #2
0
 public UpdateMotherWindow()
 {
     InitializeComponent();
     bl                 = BL.FactoryBL.GetBL();
     mom                = new BE.Mother();
     mom.startHour      = new DateTime[6];
     mom.endHour        = new DateTime[6];
     mom.DaysRequestMom = new bool[6];
 }
 public addNanny2()
 {
     InitializeComponent();
     nannyToAdd               = new BE.Nanny();
     nannyToAdd.startHour     = new DateTime[6];
     nannyToAdd.endHour       = new DateTime[6];
     nannyToAdd.daysWorkNanny = new bool[6];
     this.DataContext         = nannyToAdd;
     bl = BL.FactoryBL.GetBL();
 }
 public AddMotherWindow()
 {
     InitializeComponent();
     momToAdd                = new BE.Mother();
     momToAdd.startHour      = new DateTime[6];
     momToAdd.endHour        = new DateTime[6];
     momToAdd.DaysRequestMom = new bool[6];
     AddMomGrid.DataContext  = momToAdd;
     bl = BL.FactoryBL.GetBL();
 }
 public UpdateNannyWindow()
 {
     InitializeComponent();
     nannyToUpdate               = new BE.Nanny();
     this.DataContext            = nannyToUpdate;
     nannyToUpdate.startHour     = new DateTime[6];
     nannyToUpdate.endHour       = new DateTime[6];
     nannyToUpdate.daysWorkNanny = new bool[6];
     bl = BL.FactoryBL.GetBL();
 }
        public GroupTraineesByTester()
        {
            InitializeComponent();
            bl = BL.FactoryBL.GetBL();

            foreach (BE.Trainee item in bl.getTraineeList())
            {
                (item.NameOfTeacher) = bl.getTraineeTeacher(item.NameOfTeacher);
            }
            this.dataGrid.ItemsSource = bl.getTraineeList();
            ListCollectionView collection = new ListCollectionView(bl.getTraineeList());

            collection.GroupDescriptions.Add(new PropertyGroupDescription("NameOfTeacher"));
            dataGrid.ItemsSource = collection;
        }
        public GroupTraineetBySchool()
        {
            InitializeComponent();
            bl = BL.FactoryBL.GetBL();

            foreach (Trainee item in bl.getTraineeList())
            {
                foreach (Trainee item1 in bl.GetAllTraineeBySchool(BE.School.drivingSchool))
                {
                    item.NameOfSchool = item1.NameOfSchool;
                }
            }
            this.dataGrid.ItemsSource = bl.getTestsList();
            ListCollectionView collection = new ListCollectionView(bl.getTraineeList());

            collection.GroupDescriptions.Add(new PropertyGroupDescription("NameOfSchool"));
            dataGrid.ItemsSource = collection;
            foreach (Trainee item in bl.getTraineeList())
            {
                foreach (Trainee item1 in bl.GetAllTraineeBySchool(BE.School.d_school))
                {
                    item.NameOfSchool = item1.NameOfSchool;
                }
            }

            this.dataGrid.ItemsSource = bl.getTestsList();
            ListCollectionView collection1 = new ListCollectionView(bl.getTraineeList());

            collection.GroupDescriptions.Add(new PropertyGroupDescription("NameOfSchool"));
            dataGrid.ItemsSource = collection;

            foreach (Trainee item in bl.getTraineeList())
            {
                foreach (Trainee item1 in bl.GetAllTraineeBySchool(BE.School.drivingSchool))
                {
                    item.NameOfSchool = item1.NameOfSchool;
                }
            }

            this.dataGrid.ItemsSource = bl.getTestsList();
            ListCollectionView collection2 = new ListCollectionView(bl.getTraineeList());

            collection.GroupDescriptions.Add(new PropertyGroupDescription("NameOfSchool"));
            dataGrid.ItemsSource = collection;
        }
예제 #8
0
 public DataWindow()
 {
     InitializeComponent();
     bl = BL.FactoryBL.GetBL();
 }
예제 #9
0
 public TesterMenu()
 {
     InitializeComponent();
     bl = BL.FactoryBL.GetBL();
 }
 public deleteChildWindow()
 {
     InitializeComponent();
     bl = BL.FactoryBL.GetBL();
 }
 public DeleteMotherWindow()
 {
     InitializeComponent();
     bl = BL.FactoryBL.GetBL();
 }
예제 #12
0
 public myFind()
 {
     InitializeComponent();
     bl = BL.FactoryBL.GetBL();
 }
예제 #13
0
 public MainWindow()
 {
     InitializeComponent();
     bl = new BL.BL_imp();
 }
예제 #14
0
 public TraineeMenu()
 {
     InitializeComponent();
     bl = BL.FactoryBL.GetBL();
 }
 public ContractWindow()
 {
     InitializeComponent();
     bl = BL.FactoryBL.GetBL();
 }