//主页选项点击事件 private void Often_Btn_Clicked(object sender, RoutedEventArgs e) { HideHPShowUser(); Button btn = (Button)sender; String xName = btn.Name.ToString(); if (xName == "OFTENBTN_1") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI1)); } else if (xName == "OFTENBTN_2") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI2)); } else if (xName == "OFTENBTN_3") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI3)); } else if (xName == "OFTENBTN_4") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI4)); } else if (xName == "OFTENBTN_5") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI5)); } else if (xName == "OFTENBTN_6") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI6)); } else if (xName == "OFTENBTN_7") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI7)); } else if (xName == "OFTENBTN_8") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI8)); } else if (xName == "OFTENBTN_9") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI9)); } else if (xName == "OFTENBTN_10") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI10)); } else if (xName == "OFTENBTN_11") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI11)); } else if (xName == "OFTENBTN_12") { CommonWebView.Navigate(new Uri(ConstClass.OFTEN_URI12)); } else { } }
private void HaiTao_Btn_Clicked(object sender, RoutedEventArgs e) { HideHPShowUser(); Button btn = (Button)sender; String xName = btn.Name.ToString(); if (xName == "HAITAO_URI1") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI1)); } else if (xName == "HAITAO_URI2") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI2)); } else if (xName == "HAITAO_URI3") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI3)); } else if (xName == "HAITAO_URI4") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI4)); } else if (xName == "HAITAO_URI5") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI5)); } else if (xName == "HAITAO_URI6") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI6)); } else if (xName == "HAITAO_URI7") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI7)); } else if (xName == "HAITAO_URI8") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI8)); } else if (xName == "HAITAO_URI9") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI9)); } else if (xName == "HAITAO_URI10") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI10)); } else if (xName == "HAITAO_URI11") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI11)); } else if (xName == "HAITAO_URI12") { CommonWebView.Navigate(new Uri(ConstClass.HAITAO_URI12)); } else { } }
//双屏 private void ClickedTwoScreen2(Object sender, RoutedEventArgs e) { Now_Page.Visibility = Visibility.Visible; Double_Page.Visibility = Visibility.Collapsed; Uri CurentUri = new Uri(nowUri); CommonWebView.Navigate(CurentUri); }
private void B2C_Btn_Clicked(object sender, RoutedEventArgs e) { HideHPShowUser(); Button btn = (Button)sender; String xName = btn.Name.ToString(); if (xName == "B2CBTN_1") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI1)); } else if (xName == "B2CBTN_2") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI2)); } else if (xName == "B2CBTN_3") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI3)); } else if (xName == "B2CBTN_4") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI4)); } else if (xName == "B2CBTN_5") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI5)); } else if (xName == "B2CBTN_6") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI6)); } else if (xName == "B2CBTN_7") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI7)); } else if (xName == "B2CBTN_8") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI8)); } else if (xName == "B2CBTN_9") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI9)); } else if (xName == "B2CBTN_10") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI10)); } else if (xName == "B2CBTN_11") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI11)); } else if (xName == "B2CBTN_12") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI12)); } else if (xName == "B2CBTN_13") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI13)); } else if (xName == "B2CBTN_14") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI14)); } else if (xName == "B2CBTN_15") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI15)); } else if (xName == "B2CBTN_16") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI16)); } else if (xName == "B2CBTN_17") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI17)); } else if (xName == "B2CBTN_18") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI18)); } else if (xName == "B2CBTN_19") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI19)); } else if (xName == "B2CBTN_20") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI20)); } else if (xName == "B2CBTN_21") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI21)); } else if (xName == "B2CBTN_22") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI22)); } else if (xName == "B2CBTN_23") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI23)); } else if (xName == "B2CBTN_24") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI24)); } else if (xName == "B2CBTN_25") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI25)); } else if (xName == "B2CBTN_26") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI26)); } else if (xName == "B2CBTN_27") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI27)); } else if (xName == "B2CBTN_28") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI28)); } else if (xName == "B2CBTN_29") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI29)); } else if (xName == "B2CBTN_30") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI30)); } else if (xName == "B2CBTN_31") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI31)); } else if (xName == "B2CBTN_32") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI32)); } else if (xName == "B2CBTN_33") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI33)); } else if (xName == "B2CBTN_34") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI34)); } else if (xName == "B2CBTN_35") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI35)); } else if (xName == "B2CBTN_36") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI36)); } else if (xName == "B2CBTN_37") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI37)); } else if (xName == "B2CBTN_38") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI38)); } else if (xName == "B2CBTN_39") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI39)); } else if (xName == "B2CBTN_40") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI40)); } else if (xName == "B2CBTN_41") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI41)); } else if (xName == "B2CBTN_42") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI42)); } else if (xName == "B2CBTN_43") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI43)); } else if (xName == "B2CBTN_44") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI44)); } else if (xName == "B2CBTN_45") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI45)); } else if (xName == "B2CBTN_46") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI46)); } else if (xName == "B2CBTN_47") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI47)); } else if (xName == "B2CBTN_48") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI48)); } else if (xName == "B2CBTN_49") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI49)); } else if (xName == "B2CBTN_50") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI50)); } else if (xName == "B2CBTN_51") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI51)); } else if (xName == "B2CBTN_52") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI52)); } else if (xName == "B2CBTN_53") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI53)); } else if (xName == "B2CBTN_54") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI54)); } else if (xName == "B2CBTN_55") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI55)); } else if (xName == "B2CBTN_56") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI56)); } else if (xName == "B2CBTN_57") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI57)); } else if (xName == "B2CBTN_58") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI58)); } else if (xName == "B2CBTN_59") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI59)); } else if (xName == "B2CBTN_60") { CommonWebView.Navigate(new Uri(ConstClass.B2C_URI60)); } else { } }