private void btElfogadas(object sender, RoutedEventArgs e) { if (vm.KivalsztottAllat != null) { orokbefogadasClient.OrokbefogadasElfogadasa(vm.KivalsztottAllat); this.DialogResult = true; } }