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

            splashScreen.Show();

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

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

            splashScreen.Show();

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

            splashScreen.Close();
        }
Example #3
0
        public vwStudents()
        {
            var splashScreen = new SplashScreenWindow();

            splashScreen.Show();

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

            splashScreen.Close();
        }
Example #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();
        }