Ejemplo n.º 1
0
        private async void OpenRental_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            var equipment = dgAvailableEquipment.SelectedItem as Equipment;
            var window = new RentalWindow(RentalService, equipment);
            window.ShowDialog();

            // Update the view model.
            ViewModel.AvailableEquipment.Clear();
            ViewModel.Rentals.Clear();
            await LoadDataAsync();
        }
Ejemplo n.º 2
0
        private async void OpenRental_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            var equipment = dgAvailableEquipment.SelectedItem as Equipment;
            var window    = new RentalWindow(RentalService, equipment);

            window.ShowDialog();

            // Update the view model.
            ViewModel.AvailableEquipment.Clear();
            ViewModel.Rentals.Clear();
            await LoadDataAsync();
        }