private void Button_Click(object sender, RoutedEventArgs e) { CarChoose carChoose = new CarChoose(); Current current = Current.Instance; current.Page = carChoose; this.NavigationService.Navigate(current.Page); }
private static void AssistantRentCarResponse(String txt) { if (((txt.IndexOf("Wypożycz") >= 0) || (txt.IndexOf("Rezerwuj") >= 0) || (txt.IndexOf("Zarezerwuj") >= 0)) && ((txt.IndexOf("Pojazd") >= 0) || (txt.IndexOf("Auto") >= 0) || (txt.IndexOf("Samochód") >= 0)) && (speechOn == true)) { string[] words = txt.Split(' '); Current current = Current.Instance; CarChoose newPage = new CarChoose(); current.Page.NavigationService.Navigate(newPage); current.Page = newPage; } }