コード例 #1
0
        /// <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;
        }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: HoleBoxPage.xaml.cs プロジェクト: delavet/HelperUWP
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
     if ((e.Parameter != null) && (e.Parameter is Type))
     {
         FRAMEholeBox.Navigate(e.Parameter as Type);
     }
 }
コード例 #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();
     }
 }
コード例 #5
0
        public void Show(WriteableBitmap src, Boolean btnVis = true)
        {
            this.Visibility = Visibility.Visible;

            bmp        = src;
            IMG.Source = bmp;
            BtnVisible = btnVis;
            STRBDpopin.Begin();
        }
コード例 #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;
        }
コード例 #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;
     }
 }
コード例 #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();
 }
コード例 #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();
        }
コード例 #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();
 }
コード例 #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;
        }
コード例 #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();
     }
 }
コード例 #13
0
 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();
 }
コード例 #14
0
ファイル: SettingPage.xaml.cs プロジェクト: delavet/HelperUWP
 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;
     }
 }
コード例 #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();
        }
コード例 #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();
        }
コード例 #17
0
 public void Show(List <String> vars)
 {
     GRIDroot.Visibility = Visibility.Visible;
     STRBDpopin.Begin();
     Init(vars);
 }
コード例 #18
0
 private void GRIDroot_PointerEntered(object sender, PointerRoutedEventArgs e)
 {
     STRBDpopin.Begin();
 }
コード例 #19
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     InfoUtil.infoPage = this;
     STRBDpopin.Begin();
 }
コード例 #20
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
     Constants.BoxPage.HamburgerVisible = false;
 }
コード例 #21
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
 }
コード例 #22
0
 protected async override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
     await GetBingToday();//用于在校外环境时调试每日必应
 }
コード例 #23
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     STRBDpopin.Begin();
     PRGRScalendar.ProgressStart();
 }
コード例 #24
0
 public void popin()
 {
     STRBDpopin.Begin();
 }