private void BTNsend_Click(object sender, RoutedEventArgs e) { FRAMEdetail.Navigate(typeof(MailSendPage), null); if (VSGmail.CurrentState == narrow) { UpdateVisualState(narrow, null); } }
private void STRBDdetailShrink_Completed(object sender, object e) { FRAMEdetail.Navigate(typeof(InfoBlankPage)); TRANSdetail.Y = 0; FRAMEdetail.Opacity = 1; if (VSGinfo.CurrentState == narrow) { UpdateVisualState(narrow, null); } }
private void LSTVWtrash_ItemClick(object sender, ItemClickEventArgs e) { MailSummary clicked = e.ClickedItem as MailSummary; FRAMEdetail.Navigate(typeof(MailDetailPage), new MailInfo(MailUtil.FolderType.Trash, clicked.Index)); if (VSGmail.CurrentState == narrow) { UpdateVisualState(narrow, null); } }
private void STRBDdetailShrink_Completed(object sender, object e) { TRANSdetail.Y = 0; FRAMEdetail.Opacity = 1; if ((FRAMEdetail.Content is MailSendPage) && FRAMEdetail.CanGoBack) { FRAMEdetail.GoBack(); } else { FRAMEdetail.Navigate(typeof(InfoBlankPage)); } if (VSGmail.CurrentState == narrow) { UpdateVisualState(narrow, null); } }
private async void LSTVWinfo_ItemClick(object sender, ItemClickEventArgs e) { switch ((e.ClickedItem as UsualItemData).ID) { case 0: { FRAMEdetail.Navigate(typeof(ImageShowPage), new Parameters("北大地图", "ms-appx:///Assets/pkumap.jpg")); if (VSGinfo.CurrentState == narrow) { UpdateVisualState(narrow, null); } } break; case 1: { FRAMEdetail.Navigate(typeof(ImageShowPage), new Parameters("北京地铁图", "ms-appx:///Assets/subwaymap.jpg")); if (VSGinfo.CurrentState == narrow) { UpdateVisualState(narrow, null); } } break; case 2: { PRGRSinfo.ProgressStart(); await InfoUtil.GetCardAmount(); PRGRSinfo.ProgressEnd(); } break; case 3: { first : BitmapImage bmp = new BitmapImage(); Stream stream = await WebConnection.Connect_for_stream("http://dean.pku.edu.cn/student/yanzheng.php?act=init"); if (stream == null) { Constants.BoxPage.ShowMessage("获取验证码失败!"); return; } var ran_stream = await Util.StreamToRandomAccessStream(stream); bmp.SetSource(ran_stream); IMGverify.Source = bmp; if (DLGshowing) { return; } ContentDialogResult res = await DLGverify.ShowAsync(); if (res == ContentDialogResult.Primary) { String phpsessid = await Dean.get_session_id(verifyCode); if (phpsessid == "") { goto first; } PRGRSinfo.ProgressStart(); Parameters parameters = await WebConnection.Connect(Constants.domain + "/services/pkuhelper/allGrade.php?phpsessid=" + phpsessid, null); if (parameters.name != "200") { Util.DealWithDisconnect(parameters); PRGRSinfo.ProgressEnd(); } else { PRGRSinfo.ProgressEnd(); FRAMEdetail.Navigate(typeof(GradePage), parameters.value); if (VSGinfo.CurrentState == narrow) { UpdateVisualState(narrow, null); } } } } break; case 4: { FRAMEdetail.Navigate(typeof(SchoolCalendarPage)); if (VSGinfo.CurrentState == narrow) { UpdateVisualState(narrow, null); } } break; case 5: { FRAMEdetail.Navigate(typeof(PhoneList)); if (VSGinfo.CurrentState == narrow) { UpdateVisualState(narrow, null); } } break; } }