Example #1
0
        private void LoadTrainer()
        {
            core = new Core();
            TrainerList.Clear();

            foreach (var item in core.UnitOfWork.GetRepo <Trainer>().Query().OrderBy(x => x.Name).ToList())
            {
                TrainerList.Add(item);
            }
        }
        private void LoadMannschaft()
        {
            MannschaftList.Clear();
            foreach (var item in core.UnitOfWork.GetRepo <Mannschaft>().Query().OrderBy(x => x.Name).ToList())
            {
                MannschaftList.Add(item);
            }
            TrainerList.Clear();

            foreach (var item in core.UnitOfWork.GetRepo <Trainer>().Query().OrderBy(x => x.Name).ToList())
            {
                TrainerList.Add(item);
            }
        }