private void btnNewRental_Click(object sender, RoutedEventArgs e)
 {
     var newRentalWindow = new AddRentalWindow(getRentalsVM());
     newRentalWindow.Owner = this;
     newRentalWindow.Show();
 }
 /// <summary>
 /// valib laenutuse ja näitab laenutuse aknas
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void lstViewRentals_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (lstViewRentals.SelectedItems.Count == 1)
     {
         DBA.Rental rental = (DBA.Rental)lstViewRentals.SelectedItem;
         var rentalVideo = new AddRentalWindow(getRentalsVM(), getClientVM(), getMoviesVM(), rental);
         rentalVideo.Owner = this;
         rentalVideo.ShowDialog();
     }
 }