private void WebView_Loaded(object sender, RoutedEventArgs e) { // Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/avalambitaka.html"); // LocalUriResolver resolver = new LocalUriResolver(); // WebVew1.NavigateToLocalStreamUri(uri, resolver); switch (index) { case 0: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/avalambitaka.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 1: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/bhramaraDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 2: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/devabandhaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 3: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/DhenukaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 4: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/DolaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; default: break; } }
private void WebView_Loaded(object sender, RoutedEventArgs e) { // Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/avalambitaka.html"); // LocalUriResolver resolver = new LocalUriResolver(); // WebVew1.NavigateToLocalStreamUri(uri, resolver); switch (index) { case 0: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/avalambitaka.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 1: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/bhramaraDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 2: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/devabandhaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 3: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/DhenukaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 4: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/DolaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 5: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/DolitaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 6: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/gramyaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 7: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/HiranaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 8: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/KshudgagaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 9: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/lilasanaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 10: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/madandhvajaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 11: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/manmathpriyaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 12: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/marjaraDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 13: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/PadmaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 14: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/ratipashaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 15: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/ratisundaraDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 16: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/samputaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 17: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/SamudamshaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 18: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/sthitaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 19: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/SvanakaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 20: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/TripadamDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 21: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/uthkantaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 22: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/vadavakaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 23: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/virshaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; case 24: { Uri uri = WebVew1.BuildLocalStreamUri("LocalData", "Html/vyomapadaDes.html"); LocalUriResolver resolver = new LocalUriResolver(); WebVew1.NavigateToLocalStreamUri(uri, resolver); } break; default: break; } }