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

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