Пример #1
0
 private void ReadButton_Click(object sender, RoutedEventArgs e)
 {
     if (ReviewsGrid.SelectedIndex >= 0)
     {
         ReviewDetails newWindow = new ReviewDetails((ReviewDTO)ReviewsGrid.SelectedItem);
         newWindow.ShowDialog();
     }
 }
Пример #2
0
 private void DetailsButton_Click(object sender, RoutedEventArgs e)
 {
     if (ReviewsBox.SelectedIndex >= 0)
     {
         ReviewDetails newWindow = new ReviewDetails((ReviewDTO)ReviewsBox.SelectedItem);
         newWindow.ShowDialog();
     }
     else
     {
         MessageBox.Show("Select review first");
     }
 }