public void Execute(object parameter)
        {
            // wyciągnięcie danych z tabeli - patients
            getter            = new TherapistsViewModel(); //Deklarujemy zmienną typu PatientsView
            selectedTherapist = getter.InfoTherapistGetter();
            //SelectedIDPatient = selectedPatient[1];
            MessageBoxResult result = MessageBox.Show("Czy na pewno chcesz usunąć dane terapeuty " + selectedTherapist[1] + " " + selectedTherapist[2], "Potwierdź usunięcie danych terapeuty", MessageBoxButton.OKCancel, MessageBoxImage.Warning);

            switch (result)
            {
            case MessageBoxResult.OK:
                vm.DeleteTherapist();
                break;

            case MessageBoxResult.Cancel:

                break;
            }
        }
Exemplo n.º 2
0
 public AddTherapistSubViewModel(TherapistsViewModel therapistsViewModel)
 {
     _therapistsViewModel = therapistsViewModel;              // Do zadeklarowanej wcześniej zmiennej przypisujemy uchwyt do Form1
     //this.DataContext = this;                    // Set DataContext of MainWindow to itself in constructor of MainWindow to resolve binding, bez tego nie będzie BINDOWAĆ !!
 }
 public UpdateTherapistCommand(TherapistsViewModel VM)
 {
     vm = VM;
 }
 public DeleteTherapistCommand(TherapistsViewModel VM)
 {
     vm = VM;
 }
Exemplo n.º 5
0
 public AddTherapistCommand(TherapistsViewModel VM)
 {
     vm = VM;
 }