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

            splashScreen.Show();

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

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

            splashScreen.Show();

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

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

            splashScreen.Show();

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

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