private void btnsearch_Click(object sender, RoutedEventArgs e) { SearchBookingList se = SearchBookingList.Instance; se.SearchInBooking(SearchTermTextBox.Text); (Application.Current.MainWindow.FindName("FrameFilter") as Frame).Source = null; (Application.Current.MainWindow.FindName("FrameChart") as Frame).Source = null; (Application.Current.MainWindow.FindName("FrameContent") as Frame).Source = new Uri(@"\Views\BookingList.xaml", UriKind.RelativeOrAbsolute); }
public void btnGoToBooking(object sender, RoutedEventArgs e) { SearchBookingList se = SearchBookingList.Instance; string phone = (sender as Button).Tag.ToString(); se.SearchInBooking(phone); SearchTermTextBox.Text = phone; (Application.Current.MainWindow.FindName("FrameFilter") as Frame).Source = null; (Application.Current.MainWindow.FindName("FrameChart") as Frame).Source = null; (Application.Current.MainWindow.FindName("FrameContent") as Frame).Source = new Uri(@"\Views\BookingList.xaml", UriKind.RelativeOrAbsolute); }