private void AddPostureButton_Click(object sender, RoutedEventArgs e) { AddOrEditPosture addPostureView = new AddOrEditPosture(); addPostureView.Show(); addPostureView.Closed += (closedSender, closedE) => { RefreshList(); }; }
private void EditPostureButton_Click(object sender, RoutedEventArgs e) { if (postureCrudDataGrid.SelectedItem is Posture selectedPosture) { SubModalType subModalType = _dataAccessFacade.GetSubModalAccess().Get(PostureTypes[selectedPosture.Type], selectedPosture.Name); AddOrEditPosture addPostureView = new AddOrEditPosture(selectedPosture); addPostureView.Show(); addPostureView.Closed += (closedSender, closedE) => { RefreshList(); }; } }