Exemple #1
0
        public vwFoodUnits()
        {
            var splashScreen = new SplashScreenWindow();

            splashScreen.Show();

            InitializeComponent();
            BindGrid();
            GbAddEdit.DataContext = _foodUnit;

            splashScreen.Close();
        }
Exemple #2
0
        public vwWorkoutTitles()
        {
            var splashScreen = new SplashScreenWindow();

            splashScreen.Show();

            InitializeComponent();
            BindGrid();
            GbAddEdit.DataContext = _workoutTitle;

            splashScreen.Close();
        }
        public vwStudents()
        {
            var splashScreen = new SplashScreenWindow();

            splashScreen.Show();

            InitializeComponent();
            BindGrid();
            CboGender.ItemsSource = _context.Genders.ToList();
            GbAddEdit.DataContext = _student;

            splashScreen.Close();
        }
Exemple #4
0
        public vwWorkouts(int studentId)
        {
            var splashScreen = new SplashScreenWindow();

            splashScreen.Show();

            InitializeComponent();
            _studentId = studentId;
            CboWorkoutTitles.ItemsSource = _context.WorkoutTitles.ToList();

            _workoutDetail = new WorkoutDetail();
            _workout       = new Workout()
            {
                StudentId = studentId
            };
            GbWorkoutDetail.DataContext = _workoutDetail;
            GbWorkout.DataContext       = _workout;

            BindGrid();

            splashScreen.Close();
        }