public ShowAllGR() { InitializeComponent(); if (hebEnglish.hebrew) { hebChange(); } scrollview1 = new ScrollViewer(); try { guestList = bl.GetAllGuestRequest(); foreach (BE.GuestRequest item in guestList) { GRUserControl gruc = new GRUserControl(item); b.Children.Add(gruc); } scrollview1.Content = b; } catch (Exception) { textBlock.Visibility = Visibility.Visible; } }
private void jaccuzziGR_Click(object sender, RoutedEventArgs e) { scrollview1 = new ScrollViewer(); try { grList = bl.allGRsWithJaccuzzis(); foreach (BE.GuestRequest item in grList) { GRUserControl gruc = new GRUserControl(item); b.Children.Add(gruc); } scrollview1.Content = b; } catch (Exception) { MessageBox.Show("no guest requests fit critiria"); } }