Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }