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

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

            case MessageBoxResult.Cancel:

                break;
            }
        }
Exemple #2
0
 public DeleteTypeBookCommand(TypesBooksViewModel VM)
 {
     vm = VM;
 }
 public AddTypeBookCommand(TypesBooksViewModel VM)
 {
     vm = VM;
 }