Пример #1
0
        private void editPostureButton_Click(object sender, RoutedEventArgs e)
        {
            PostureType selectedPosture = (PostureType)postureCrudDataGrid.SelectedItem;

            selectedPosture = PostureTypeContext.db.PostureType.FirstOrDefault(p => p.PostureTypeId == selectedPosture.PostureTypeId);
            AddOrEditPostureType addPostureView = new AddOrEditPostureType(selectedPosture);

            addPostureView.Show();
        }
Пример #2
0
        private void addPostureButton_Click(object sender, RoutedEventArgs e)
        {
            AddOrEditPostureType addPostureView = new AddOrEditPostureType();

            addPostureView.Show();
        }