Esempio n. 1
0
        private void AddPostureButton_Click(object sender, RoutedEventArgs e)
        {
            AddOrEditPosture addPostureView = new AddOrEditPosture();

            addPostureView.Show();
            addPostureView.Closed += (closedSender, closedE) =>
            {
                RefreshList();
            };
        }
Esempio n. 2
0
 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();
         };
     }
 }