/// <summary>
        /// 这里e的parameter应该是一个Parameters类
        /// 其name是title的名字,value是要显示的图片的本地路径
        /// </summary>
        /// <param name="e"></param>
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            STRBDpopin.Begin();
            if (e == null)
            {
                return;
            }
            if (!(e.Parameter is Parameters))
            {
                return;
            }
            var pair = e.Parameter as Parameters;

            title = pair.name;
            String path = pair.value;

            bmp = new WriteableBitmap(1920, 1080);
            var file = await StorageFile.GetFileFromApplicationUriAsync(new Uri(path));

            var file_stream = await file.OpenAsync(FileAccessMode.Read);

            bmp.SetSource(file_stream);
            ISimage.Show(bmp, false);
            TXTBLKimageTitle.Text = title;
        }
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            STRBDpopin.Begin();
            if (e.Parameter == null)
            {
                return;
            }
            if (!(e.Parameter is MailInfo))
            {
                return;
            }
            PRGRSmail.ProgressStart();
            var info = e.Parameter as MailInfo;

            message = await MailUtil.GetMessageAsync(info.MailFolderType, info.Index);

            try
            {
                TXTBLKmailTitle.Text = message.Subject;
            }
            catch
            {
            }
            try
            {
                WBVWmailBody.NavigateToString(message.HtmlBody);
            }
            catch
            {
                FindName(nameof(TXTBLKmailBody));
                TXTBLKmailBody.Text = message.TextBody;
            }
            PRGRSmail.ProgressEnd();
        }
Beispiel #3
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
     if ((e.Parameter != null) && (e.Parameter is Type))
     {
         FRAMEholeBox.Navigate(e.Parameter as Type);
     }
 }
Beispiel #4
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
     if (e.Parameter != null && e.Parameter is String)
     {
         handle_json(e.Parameter as String);
         show_grade();
     }
 }
Beispiel #5
0
        public void Show(WriteableBitmap src, Boolean btnVis = true)
        {
            this.Visibility = Visibility.Visible;

            bmp        = src;
            IMG.Source = bmp;
            BtnVisible = btnVis;
            STRBDpopin.Begin();
        }
Beispiel #6
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            STRBDpopin.Begin();
            MailUtil.mailPage = this;
            await MailUtil.Login();

            inboxList              = new MailList();
            inboxList.DataLoading += InboxLoading;
            inboxList.DataLoaded  += InboxLoaded;
            LSTVWinbox.ItemsSource = inboxList;
        }
Beispiel #7
0
 public void Show(int pid, String pre = "")
 {
     this.Visibility = Visibility.Visible;
     CurPid          = pid;
     STRBDpopin.Begin();
     if (!pre.Equals(""))
     {
         TXTBXreply.Text           = pre;
         TXTBXreply.SelectionStart = pre.Length;
     }
 }
Beispiel #8
0
 public void ShowMsgPopin(String content, String title = "")
 {
     TXTBLKtitle.Height = 25;
     if (title.Equals(""))
     {
         TXTBLKtitle.Height = 0;
     }
     grid_GG.Visibility = Visibility.Visible;
     TXTBLKtitle.Text   = title;
     txt_GG.Text        = content;
     BTN.Visibility     = Visibility.Visible;
     BTN.IsEnabled      = true;
     STRBDpopin.Begin();
 }
Beispiel #9
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            lock (o)
            {
                flag = true;
            }
            STRBDpopin.Begin();
            ChatUtil.chatPage     = this;
            ChatList.DataLoading += ChatList_DataLoading;
            ChatList.DataLoaded  += ChatList_DataLoaded;
            await ChatList.refresh();

            LSTVWchat.ItemsSource = ChatList;
            ContinuumRefresh();
        }
Beispiel #10
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     Window.Current.SetTitleBar(GRIDtitle);
     if (e.Parameter is String)
     {
         codeList = new CodeList(e.Parameter as String);
     }
     else if (e.Parameter is List <String> )
     {
         codeList = new CodeList(e.Parameter as List <String>);
     }
     codeList.DataLoaded   += DataLoaded;
     codeList.DataLoading  += DataLoading;
     GRIDVWcode.ItemsSource = codeList;
     STRBDpopin.Begin();
 }
Beispiel #11
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            STRBDpopin.Begin();
            if (e.Parameter == null)
            {
                return;
            }
            if (!(e.Parameter is Parameters))
            {
                return;
            }
            Parameters p = e.Parameter as Parameters;

            TXTBXreceiver.Text = p.name;
            TXTBXsubject.Text  = p.value;
        }
Beispiel #12
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
     Constants.BoxPage.HamburgerVisible = false;
     if (e.Parameter != null && e.Parameter is LostFoundInfo)
     {
         info = e.Parameter as LostFoundInfo;
         if (info.mine)
         {
             BTNdelete.Visibility = Visibility.Visible;
         }
         else
         {
             BTNdelete.Visibility = Visibility.Collapsed;
         }
         Show();
     }
 }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     if (e.Parameter == null || !(e.Parameter is String) || ((e.Parameter is String) && ((e.Parameter as String) == "")))
     {
         PageMode = EditMode.add;
     }
     else
     {
         String str = e.Parameter as String;
         defaultName              = str;
         PageMode                 = EditMode.edit;
         TXTBXname.Text           = str;
         TXTBXlocation.Text       = CourseUtil.CustomCourses[str].Location;
         TXTBXname.IsEnabled      = false;
         AddCustomCourseHint.Text = "编辑自选课程";
     }
     InitBlock();
     STRBDpopin.Begin();
 }
Beispiel #14
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
     SLDradius.Value = Constants.BgBluredLevel;
     if (Constants.CourseUseElective)
     {
         CMBBXcourse.SelectedIndex = 0;
     }
     else
     {
         CMBBXcourse.SelectedIndex = 1;
     }
     if (Constants.CourseUseCustom)
     {
         TGcustom.IsOn = true;
     }
     else
     {
         TGcustom.IsOn = false;
     }
 }
Beispiel #15
0
        public async void Show(ChatListInfo masterInfo)
        {
            historyHeight = 0;
            lock (o)
            {
                MasterInfo = masterInfo;
                flag       = false;
            }
            this.Visibility = Visibility.Visible;
            STRBDpopin.Begin();

            lock (o)
            {
                chatList              = new ChatDetailList(masterInfo.UserName);
                chatList.DataLoading += DataLoading;
                chatList.DataLoaded  += DataLoaded;
                chatList.NewLoaded   += NewDataLoaded;
                flag = true;
            }
            await chatList.LoadMoreHistory();

            LSTVWchat.ItemsSource = chatList;
            ContinuumRefresh();
        }
Beispiel #16
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            STRBDpopin.Begin();
            Constants.BoxPage.HamburgerVisible = false;
            if (e.Parameter != null && e.Parameter is HoleInfo)
            {
                CurHoleInfo = e.Parameter as HoleInfo;
                content_panel.DataContext = CurHoleInfo;
            }
            if (!(CurHoleInfo.type == HoleInfo.TYPE_IMAGE))
            {
                IMGcontent.Visibility = Visibility.Collapsed;
            }
            if (!(CurHoleInfo.type == HoleInfo.TYPE_AUDIO))
            {
                MEvoice.Visibility = Visibility.Collapsed;
            }
            else
            {
                MEvoice.AudioSource = new Uri(CurHoleInfo.url, UriKind.Absolute);
            }

            GetComments();
        }
 public void Show(List <String> vars)
 {
     GRIDroot.Visibility = Visibility.Visible;
     STRBDpopin.Begin();
     Init(vars);
 }
Beispiel #18
0
 private void GRIDroot_PointerEntered(object sender, PointerRoutedEventArgs e)
 {
     STRBDpopin.Begin();
 }
Beispiel #19
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     InfoUtil.infoPage = this;
     STRBDpopin.Begin();
 }
Beispiel #20
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
     Constants.BoxPage.HamburgerVisible = false;
 }
Beispiel #21
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
 }
Beispiel #22
0
 protected async override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
     await GetBingToday();//用于在校外环境时调试每日必应
 }
Beispiel #23
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
     PRGRScalendar.ProgressStart();
 }
Beispiel #24
0
 public void popin()
 {
     STRBDpopin.Begin();
 }