├── Privacy Policy
├── README.md
├── Terms of Service
├── 远景论坛UWP.sln
└── 远景论坛UWP
├── AccountSePage.xaml
├── AccountSePage.xaml.cs
├── App.xaml
├── App.xaml.cs
├── Assets
├── 1.png
├── APPICON.png
├── BadgeLogo.scale-100.png
├── BadgeLogo.scale-125.png
├── BadgeLogo.scale-150.png
├── BadgeLogo.scale-200.png
├── BadgeLogo.scale-400.png
├── LargeTile.scale-100.png
├── LargeTile.scale-125.png
├── LargeTile.scale-150.png
├── LargeTile.scale-200.png
├── LargeTile.scale-400.png
├── SS1.png
├── SS2.png
├── SS3.png
├── SS4.png
├── SS5.png
├── STORE.png
├── SmallTile.scale-100.png
├── SmallTile.scale-125.png
├── SmallTile.scale-150.png
├── SmallTile.scale-200.png
├── SmallTile.scale-400.png
├── SplashScreen.scale-100.png
├── SplashScreen.scale-125.png
├── SplashScreen.scale-150.png
├── SplashScreen.scale-200.png
├── SplashScreen.scale-400.png
├── Square150x150Logo.scale-100.png
├── Square150x150Logo.scale-125.png
├── Square150x150Logo.scale-150.png
├── Square150x150Logo.scale-200.png
├── Square150x150Logo.scale-400.png
├── Square44x44Logo.altform-unplated_targetsize-16.png
├── Square44x44Logo.altform-unplated_targetsize-256.png
├── Square44x44Logo.altform-unplated_targetsize-32.png
├── Square44x44Logo.altform-unplated_targetsize-48.png
├── Square44x44Logo.scale-100.png
├── Square44x44Logo.scale-125.png
├── Square44x44Logo.scale-150.png
├── Square44x44Logo.scale-200.png
├── Square44x44Logo.scale-400.png
├── Square44x44Logo.targetsize-16.png
├── Square44x44Logo.targetsize-24.png
├── Square44x44Logo.targetsize-24_altform-unplated.png
├── Square44x44Logo.targetsize-256.png
├── Square44x44Logo.targetsize-32.png
├── Square44x44Logo.targetsize-48.png
├── StoreLogo.backup.png
├── StoreLogo.scale-100.png
├── StoreLogo.scale-125.png
├── StoreLogo.scale-150.png
├── StoreLogo.scale-200.png
├── StoreLogo.scale-400.png
├── Wide310x150Logo.scale-100.png
├── Wide310x150Logo.scale-125.png
├── Wide310x150Logo.scale-150.png
├── Wide310x150Logo.scale-200.png
└── Wide310x150Logo.scale-400.png
├── BBS2Page.xaml
├── BBS2Page.xaml.cs
├── BBSMainPage.xaml
├── BBSMainPage.xaml.cs
├── BlockICON
├── B1Bkg.png
├── B2Bkg.png
├── B3Bkg.png
├── B4Bkg.png
├── B4Bkg2.png
├── B5Bkg.png
└── B6Bkg.png
├── MainPage.xaml
├── MainPage.xaml.cs
├── MyAlertPage.xaml
├── MyAlertPage.xaml.cs
├── MyPostPage.xaml
├── MyPostPage.xaml.cs
├── NEWSPage.xaml
├── NEWSPage.xaml.cs
├── NewsICON
├── 握手.png
├── 花.png
├── 蛋.png
├── 路过.png
└── 雷.png
├── Package.StoreAssociation.xml
├── Package.appxmanifest
├── ProjectClass1.cs
├── Properties
├── AssemblyInfo.cs
└── Default.rd.xml
├── ShowNEWSPage.xaml
├── ShowNEWSPage.xaml.cs
├── ShowThreadsPage.xaml
├── ShowThreadsPage.xaml.cs
├── SmallICON
├── CoinBKG.png
├── File.png
├── InboxM.png
├── NewM.png
├── RateICON.png
└── Write.png
├── ThreadContentPage.xaml
├── ThreadContentPage.xaml.cs
├── TopbarICON
├── GDGN.png
├── More.png
├── 新闻.png
├── 论坛.png
└── 默认头像.jpg
├── UserIfmPage.xaml
├── UserIfmPage.xaml.cs
├── 远景论坛UWP.csproj
├── 远景论坛UWP.csproj.user
├── 远景论坛UWP_StoreKey.pfx
└── 远景论坛UWP_TemporaryKey.pfx
/Privacy Policy:
--------------------------------------------------------------------------------
1 | 隐私协议
2 |
3 |
4 | 我们可能收集和使用的信息
5 | (一)与个人身份无关的信息:
6 | 当您使用远景服务时,我们可能收集一些用户信息,例如记录使用远景服务的每个用户的来源途径、浏览器等。
7 | (二)有关个人身份的信息:
8 | 当您使用远景服务时,我们可能收集和汇总或要求您提供有关个人身份的信息,例如个人身份证明(包括身份证、护照等);生日、籍贯、性别、兴趣爱好、个人电话号码等...
9 | 我们收集您的信息主要是为了您和其他用户能够更容易和更满意地使用我们的服务.
10 | 我们使用COOKIES,用于以下用途:
11 | (1)记住您的身份。例如:COOKIES有助于我们辨认您作为我们的注册用户的身份,或保存您向我们提供有关您的喜好或其他信息;
12 | (2)分析您使用我们服务的情况和广告优化。
13 |
14 | 对于如何保护您的个人信息
15 | 我们会确保依据本政策及国家法律法规要求对您的个人信息提供足够的保护,我们不会向任何第三方机构和个人共享您的信息。
16 |
17 |
18 | 联系我们:pcbeta.service@pcbeta.com
19 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | pcbeta-UWP -- pcbeta UWP App -- bbs.pcbeta.com
2 | # 远景第三方UWP客户端
3 | # [Microsoft Store](https://www.microsoft.com/store/apps/9NCT8JFTSQ07)
4 | 问题反馈:http://bbs.pcbeta.com/viewthread-1882330-1-1.html
5 |
6 |
7 | 开发者联系方式:
8 |
9 | QQ:3524984135
10 |
11 | Email:justineedyoumost@163.com
12 |
13 | 感谢您对我的支持
14 |
--------------------------------------------------------------------------------
/Terms of Service:
--------------------------------------------------------------------------------
1 | 远景论坛 - 微软极客社区 网站服务条款
2 |
3 | 论坛注册许可协议(你有权停止注册,确认注册即表明接受该协议所有条款)
4 |
5 | 不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播下列信息:
6 | (1)煽动抗拒、破坏宪法和法律、行政法规实施的;
7 | (2)煽动颠覆国家政权,推翻社会主义制度的;
8 | (3)煽动分裂国家、破坏国家统一的;
9 | (4)煽动民族仇恨、民族歧视,破坏民族团结的;
10 | (5)捏造或者歪曲事实,散布谣言,扰乱社会秩序的;
11 | (6)宣扬封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪的;
12 | (7)公然侮辱他人或者捏造事实诽谤他人的,或者进行其他恶意攻击的;
13 | (8)损害国家机关信誉的;
14 | (9)其他违反宪法和法律行政法规的。
15 | (10)远景官方禁止任何团体及个人的侵权行为,包括盗版、破解版等侵权行为;为此产生的法律责任均为发布者所承担;
16 | 本论坛言论纯属发表者个人意见,与本论坛立场无关。如果您违反了上述事项的任何一项,您将承担一切因您的行为而直接或间接导致的民事或刑事法律责任。本站可向有关部门举报,同时禁止发贴者登陆或封IP地址。
17 |
--------------------------------------------------------------------------------
/远景论坛UWP.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27703.2047
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "远景论坛UWP", "远景论坛UWP\远景论坛UWP.csproj", "{3CEF5E21-3463-4766-9BFB-277E16AEB341}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|ARM = Debug|ARM
11 | Debug|x64 = Debug|x64
12 | Debug|x86 = Debug|x86
13 | Release|ARM = Release|ARM
14 | Release|x64 = Release|x64
15 | Release|x86 = Release|x86
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Debug|ARM.ActiveCfg = Debug|ARM
19 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Debug|ARM.Build.0 = Debug|ARM
20 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Debug|ARM.Deploy.0 = Debug|ARM
21 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Debug|x64.ActiveCfg = Debug|x64
22 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Debug|x64.Build.0 = Debug|x64
23 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Debug|x64.Deploy.0 = Debug|x64
24 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Debug|x86.ActiveCfg = Debug|x86
25 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Debug|x86.Build.0 = Debug|x86
26 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Debug|x86.Deploy.0 = Debug|x86
27 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Release|ARM.ActiveCfg = Release|ARM
28 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Release|ARM.Build.0 = Release|ARM
29 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Release|ARM.Deploy.0 = Release|ARM
30 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Release|x64.ActiveCfg = Release|x64
31 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Release|x64.Build.0 = Release|x64
32 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Release|x64.Deploy.0 = Release|x64
33 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Release|x86.ActiveCfg = Release|x86
34 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Release|x86.Build.0 = Release|x86
35 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}.Release|x86.Deploy.0 = Release|x86
36 | EndGlobalSection
37 | GlobalSection(SolutionProperties) = preSolution
38 | HideSolutionNode = FALSE
39 | EndGlobalSection
40 | GlobalSection(ExtensibilityGlobals) = postSolution
41 | SolutionGuid = {B6F3EBBA-D305-4298-9D7B-8CAF7460E8A0}
42 | EndGlobalSection
43 | EndGlobal
44 |
--------------------------------------------------------------------------------
/远景论坛UWP/AccountSePage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/远景论坛UWP/AccountSePage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using Windows.Foundation;
7 | using Windows.Foundation.Collections;
8 | using Windows.UI.Xaml;
9 | using Windows.UI.Xaml.Controls;
10 | using Windows.UI.Xaml.Controls.Primitives;
11 | using Windows.UI.Xaml.Data;
12 | using Windows.UI.Xaml.Input;
13 | using Windows.UI.Xaml.Media;
14 | using Windows.UI.Xaml.Navigation;
15 |
16 | // https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板
17 |
18 | namespace 远景论坛UWP
19 | {
20 | ///
21 | /// 可用于自身或导航至 Frame 内部的空白页。
22 | ///
23 | public sealed partial class AccountSePage : Page
24 | {
25 | public AccountSePage()
26 | {
27 | this.InitializeComponent();
28 | }
29 |
30 | private void Page_Loaded(object sender, RoutedEventArgs e)
31 | {
32 | RefreshMessage refresh = new RefreshMessage();
33 | refresh.CheckNewMessage();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/远景论坛UWP/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/远景论坛UWP/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using Windows.ApplicationModel;
7 | using Windows.ApplicationModel.Activation;
8 | using Windows.Foundation;
9 | using Windows.Foundation.Collections;
10 | using Windows.UI.Core;
11 | using Windows.UI.Xaml;
12 | using Windows.UI.Xaml.Controls;
13 | using Windows.UI.Xaml.Controls.Primitives;
14 | using Windows.UI.Xaml.Data;
15 | using Windows.UI.Xaml.Input;
16 | using Windows.UI.Xaml.Media;
17 | using Windows.UI.Xaml.Navigation;
18 |
19 | namespace 远景论坛UWP
20 | {
21 | ///
22 | /// 提供特定于应用程序的行为,以补充默认的应用程序类。
23 | ///
24 | sealed partial class App : Application
25 | {
26 | ///
27 | /// 初始化单一实例应用程序对象。这是执行的创作代码的第一行,
28 | /// 已执行,逻辑上等同于 main() 或 WinMain()。
29 | ///
30 | public App()
31 | {
32 | this.InitializeComponent();
33 | this.Suspending += OnSuspending;
34 | }
35 |
36 | ///
37 | /// 在应用程序由最终用户正常启动时进行调用。
38 | /// 将在启动应用程序以打开特定文件等情况下使用。
39 | ///
40 | /// 有关启动请求和过程的详细信息。
41 | protected override void OnLaunched(LaunchActivatedEventArgs e)
42 | {
43 | Frame rootFrame = Window.Current.Content as Frame;
44 |
45 | // 不要在窗口已包含内容时重复应用程序初始化,
46 | // 只需确保窗口处于活动状态
47 | if (rootFrame == null)
48 | {
49 | // 创建要充当导航上下文的框架,并导航到第一页
50 | rootFrame = new Frame();
51 |
52 | rootFrame.NavigationFailed += OnNavigationFailed;
53 | rootFrame.Navigated += RootFrame_Navigated;
54 |
55 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
56 | {
57 | //TODO: 从之前挂起的应用程序加载状态
58 | }
59 |
60 | // 将框架放在当前窗口中
61 | Window.Current.Content = rootFrame;
62 | }
63 |
64 | if (e.PrelaunchActivated == false)
65 | {
66 | if (rootFrame.Content == null)
67 | {
68 | // 当导航堆栈尚未还原时,导航到第一页,
69 | // 并通过将所需信息作为导航参数传入来配置
70 | // 参数
71 | rootFrame.Navigate(typeof(MainPage), e.Arguments);
72 | }
73 | // 确保当前窗口处于活动状态
74 | Window.Current.Activate();
75 | }
76 | }
77 |
78 | private void RootFrame_Navigated(object sender, NavigationEventArgs e)
79 | {
80 | var view = SystemNavigationManager.GetForCurrentView();
81 | view.BackRequested += View_BackRequested;
82 |
83 | Frame frame = Window.Current.Content as Frame;
84 | if (frame != null)
85 | {
86 | if (frame.CanGoBack)
87 | {
88 | view.AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;
89 | }
90 | else
91 | {
92 | view.AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed;
93 | }
94 | }
95 | }
96 |
97 | private void View_BackRequested(object sender, BackRequestedEventArgs e)
98 | {
99 | Frame frame = Window.Current.Content as Frame;
100 | if (frame != null)
101 | {
102 | if (frame.CanGoBack)
103 | {
104 | e.Handled = true;
105 | frame.GoBack();
106 | }
107 | }
108 | }
109 |
110 | ///
111 | /// 导航到特定页失败时调用
112 | ///
113 | ///导航失败的框架
114 | ///有关导航失败的详细信息
115 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
116 | {
117 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
118 | }
119 |
120 | ///
121 | /// 在将要挂起应用程序执行时调用。 在不知道应用程序
122 | /// 无需知道应用程序会被终止还是会恢复,
123 | /// 并让内存内容保持不变。
124 | ///
125 | /// 挂起的请求的源。
126 | /// 有关挂起请求的详细信息。
127 | private void OnSuspending(object sender, SuspendingEventArgs e)
128 | {
129 | var deferral = e.SuspendingOperation.GetDeferral();
130 | //TODO: 保存应用程序状态并停止任何后台活动
131 | deferral.Complete();
132 | }
133 |
134 | }
135 | }
136 |
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/1.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/APPICON.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/APPICON.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/BadgeLogo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/BadgeLogo.scale-100.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/BadgeLogo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/BadgeLogo.scale-125.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/BadgeLogo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/BadgeLogo.scale-150.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/BadgeLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/BadgeLogo.scale-200.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/BadgeLogo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/BadgeLogo.scale-400.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/LargeTile.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/LargeTile.scale-100.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/LargeTile.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/LargeTile.scale-125.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/LargeTile.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/LargeTile.scale-150.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/LargeTile.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/LargeTile.scale-200.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/LargeTile.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/LargeTile.scale-400.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SS1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SS1.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SS2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SS2.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SS3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SS3.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SS4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SS4.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SS5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SS5.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/STORE.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/STORE.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SmallTile.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SmallTile.scale-100.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SmallTile.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SmallTile.scale-125.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SmallTile.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SmallTile.scale-150.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SmallTile.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SmallTile.scale-200.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SmallTile.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SmallTile.scale-400.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SplashScreen.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SplashScreen.scale-100.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SplashScreen.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SplashScreen.scale-125.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SplashScreen.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SplashScreen.scale-150.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SplashScreen.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SplashScreen.scale-200.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/SplashScreen.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/SplashScreen.scale-400.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square150x150Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square150x150Logo.scale-100.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square150x150Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square150x150Logo.scale-125.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square150x150Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square150x150Logo.scale-150.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square150x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square150x150Logo.scale-200.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square150x150Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square150x150Logo.scale-400.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.altform-unplated_targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.altform-unplated_targetsize-16.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.altform-unplated_targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.altform-unplated_targetsize-256.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.altform-unplated_targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.altform-unplated_targetsize-32.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.altform-unplated_targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.altform-unplated_targetsize-48.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.scale-100.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.scale-125.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.scale-150.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.scale-200.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.scale-400.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.targetsize-16.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.targetsize-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.targetsize-24.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.targetsize-256.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.targetsize-32.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Square44x44Logo.targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Square44x44Logo.targetsize-48.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/StoreLogo.backup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/StoreLogo.backup.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/StoreLogo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/StoreLogo.scale-100.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/StoreLogo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/StoreLogo.scale-125.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/StoreLogo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/StoreLogo.scale-150.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/StoreLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/StoreLogo.scale-200.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/StoreLogo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/StoreLogo.scale-400.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Wide310x150Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Wide310x150Logo.scale-100.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Wide310x150Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Wide310x150Logo.scale-125.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Wide310x150Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Wide310x150Logo.scale-150.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Wide310x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Wide310x150Logo.scale-200.png
--------------------------------------------------------------------------------
/远景论坛UWP/Assets/Wide310x150Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/Assets/Wide310x150Logo.scale-400.png
--------------------------------------------------------------------------------
/远景论坛UWP/BBS2Page.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
--------------------------------------------------------------------------------
/远景论坛UWP/BBS2Page.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using System.Threading.Tasks;
7 | using Windows.Foundation;
8 | using Windows.Foundation.Collections;
9 | using Windows.UI.Xaml;
10 | using Windows.UI.Xaml.Controls;
11 | using Windows.UI.Xaml.Controls.Primitives;
12 | using Windows.UI.Xaml.Data;
13 | using Windows.UI.Xaml.Input;
14 | using Windows.UI.Xaml.Media;
15 | using Windows.UI.Xaml.Media.Imaging;
16 | using Windows.UI.Xaml.Navigation;
17 |
18 | // https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板
19 |
20 | namespace 远景论坛UWP
21 | {
22 | ///
23 | /// 可用于自身或导航至 Frame 内部的空白页。
24 | ///
25 | public sealed partial class BBS2Page : Page
26 | {
27 | public static BBS2Page PageTrans;
28 | public BBS2Page()
29 | {
30 | this.InitializeComponent();
31 | PageTrans = this;
32 | }
33 | BitmapImage bitmapImage;
34 | private async void Page_Loaded(object sender, RoutedEventArgs e)
35 | {
36 | await Task.Delay(1000);
37 | try
38 | {
39 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/nb.png"));
40 | Z1P1.Source = bitmapImage;
41 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/acer.png"));
42 | Z1P2.Source = bitmapImage;
43 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/asus.png"));
44 | Z1P3.Source = bitmapImage;
45 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/dell.png"));
46 | Z1P4.Source = bitmapImage;
47 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/hp.png"));
48 | Z1P5.Source = bitmapImage;
49 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/lenovo.png"));
50 | Z1P6.Source = bitmapImage;
51 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/sony.png"));
52 | Z1P7.Source = bitmapImage;
53 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/toshiba.png"));
54 | Z1P8.Source = bitmapImage;
55 | bitmapImage = new BitmapImage(new Uri("http://www.pcbeta.com///static/image/pcbeta/forum.gif"));
56 | Z2P1.Source = bitmapImage;
57 | bitmapImage = new BitmapImage(new Uri("http://mac.pcbeta.com/images/forumicons/screen.png"));
58 | Z2P2.Source = bitmapImage;
59 | bitmapImage = new BitmapImage(new Uri("http://mac.pcbeta.com/images/forumicons/bootcamp.png"));
60 | Z2P3.Source = bitmapImage;
61 | bitmapImage = new BitmapImage(new Uri("http://mac.pcbeta.com/images/forumicons/app.png"));
62 | Z2P4.Source = bitmapImage;
63 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/help.png"));
64 | Z3P1.Source = bitmapImage;
65 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/complaint.png"));
66 | Z3P2.Source = bitmapImage;
67 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/warning.png"));
68 | Z3P3.Source = bitmapImage;
69 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/banuser.png"));
70 | Z3P4.Source = bitmapImage;
71 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/manager.png"));
72 | Z4P1.Source = bitmapImage;
73 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/special.png"));
74 | Z4P2.Source = bitmapImage;
75 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/group.png"));
76 | Z4P3.Source = bitmapImage;
77 | bitmapImage = new BitmapImage(new Uri("http://bbs.pcbeta.com/templates/forumicons/1_1/link.png"));
78 | Z4P4.Source = bitmapImage;
79 | }
80 | catch (Exception)
81 | {
82 |
83 | }
84 | }
85 | private void 子版1_SelectionChanged(object sender, SelectionChangedEventArgs e)
86 | {
87 |
88 | }
89 |
90 | private void 子版2_SelectionChanged(object sender, SelectionChangedEventArgs e)
91 | {
92 |
93 | }
94 |
95 | private void 子版3_SelectionChanged(object sender, SelectionChangedEventArgs e)
96 | {
97 |
98 | }
99 |
100 | private void 子版4_SelectionChanged(object sender, SelectionChangedEventArgs e)
101 | {
102 |
103 | }
104 |
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/远景论坛UWP/BBSMainPage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
182 |
183 |
184 |
185 |
186 |
--------------------------------------------------------------------------------
/远景论坛UWP/BBSMainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using System.Threading.Tasks;
7 | using Windows.Foundation;
8 | using Windows.Foundation.Collections;
9 | using Windows.UI.Popups;
10 | using Windows.UI.Xaml;
11 | using Windows.UI.Xaml.Controls;
12 | using Windows.UI.Xaml.Controls.Primitives;
13 | using Windows.UI.Xaml.Data;
14 | using Windows.UI.Xaml.Input;
15 | using Windows.UI.Xaml.Media;
16 | using Windows.UI.Xaml.Media.Imaging;
17 | using Windows.UI.Xaml.Navigation;
18 |
19 | // https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板
20 |
21 | namespace 远景论坛UWP
22 | {
23 | ///
24 | /// 可用于自身或导航至 Frame 内部的空白页。
25 | ///
26 | public sealed partial class BBSMainPage : Page
27 | {
28 | public BBSMainPage()
29 | {
30 | this.InitializeComponent();
31 | }
32 | BitmapImage bitmapImage;
33 | private async void Page_Loaded(object sender, RoutedEventArgs e)
34 | {
35 | LoadRing.Visibility = 0;
36 | LoadRing.IsActive = true;
37 |
38 | try
39 | {
40 | MainPage.CurrentPage.WebView1.Source = new Uri("http://bbs.pcbeta.com");
41 | if (await MainPage.CurrentPage.CheckLoadState(true) != 0)
42 | {
43 | LoadRing.Visibility = (Visibility)1;
44 | LoadRing.IsActive = false;
45 | return;
46 | }
47 |
48 | RefreshMessage refresh = new RefreshMessage();
49 | refresh.CheckNewMessage();
50 | /*
51 | string get1 = "document.querySelectorAll('#category_213 .fl_g').length.toString();";
52 | string result1 = await ConnToWV(new string[] { get1 });
53 | int count = Convert.ToInt32(result1);
54 | */
55 |
56 | //板块1:Windows 10
57 | //1a Win10区;1b 经典区;1c 设备及硬件;1d MS其他产品
58 | for (int i = 0; i < 9; i++)
59 | {
60 | GetAndAddItems("category_213",i,List1a);
61 | await Task.Delay(100);
62 | }
63 |
64 | for (int i = 0; i < 2; i++)
65 | {
66 | GetAndAddItems("category_181", i, List1b);
67 | await Task.Delay(100);
68 | }
69 |
70 | GetAndAddItems("category_263", 1, List1b);
71 | await Task.Delay(100);
72 | GetAndAddItems("category_263", 3, List1b);
73 | await Task.Delay(100);
74 | GetAndAddItems("category_106", 2, List1b);
75 | await Task.Delay(100);
76 |
77 | for (int i = 0; i < 9; i++)
78 | {
79 | GetAndAddItems("category_287", i, List1c);
80 | await Task.Delay(100);
81 | }
82 |
83 | GetAndAddItems("category_106", 3, List1d);
84 | await Task.Delay(100);
85 | GetAndAddItems("category_106", 4, List1d);
86 | await Task.Delay(100);
87 | GetAndAddItems("category_533", 2, List1d);
88 | await Task.Delay(100);
89 |
90 |
91 | //板块2:Office
92 | for (int i = 9; i < 12; i++)
93 | {
94 | GetAndAddItems("category_213", i, List2);
95 | await Task.Delay(100);
96 | }
97 |
98 |
99 | //板块3:苹果
100 | for (int i = 0; i < 6; i++)
101 | {
102 | GetAndAddItems("category_86", i, List3);
103 | await Task.Delay(100);
104 | }
105 |
106 |
107 | //板块4:Linux
108 | GetAndAddItems("category_508", 0, List4);
109 | await Task.Delay(100);
110 | GetAndAddItems("category_508", 1, List4);
111 | await Task.Delay(100);
112 |
113 |
114 | //板块5:俱乐部
115 | GetAndAddItems("category_15", 0, List5);
116 | await Task.Delay(100);
117 | GetAndAddItems("category_156", 0, List5);
118 | await Task.Delay(100);
119 | GetAndAddItems("category_156", 3, List5);
120 | await Task.Delay(100);
121 |
122 |
123 | //板块6:站务
124 | for (int i = 0; i < 3; i++)
125 | {
126 | GetAndAddItems("category_7", i, List6);
127 | await Task.Delay(100);
128 | }
129 |
130 |
131 | }
132 | catch (Exception)
133 | {
134 |
135 | }
136 |
137 | LoadRing.Visibility = Visibility.Collapsed;
138 | LoadRing.IsActive = false;
139 | }
140 | public async void GetAndAddItems(string categoryID,int index,ListView addToListView)
141 | {
142 | try
143 | {
144 | string r1 = await ConnToWV(new string[] { "document.querySelectorAll('#" + categoryID + " .fl_g img')[" + index + "].src" });
145 | bitmapImage = new BitmapImage(new Uri(r1));
146 |
147 | string r2 = await ConnToWV(new string[] { "document.querySelectorAll('#" + categoryID + " .fl_g')[" + index + "].querySelector('a').href" });
148 | Uri u1 = new Uri(r2);
149 |
150 | r2 = await ConnToWV(new string[] { "document.querySelectorAll('#" + categoryID + " .fl_g')[" + index + "].querySelectorAll('a')[1].innerText" });
151 | string r3 = await ConnToWV(new string[] { "document.querySelectorAll('#" + categoryID + " .fl_g')[" + index + "].getElementsByClassName('xw0 xi1 yellow').length.toString();" });
152 | if (r3 == "1")
153 | {
154 | r3 = "+" + await ConnToWV(new string[] { "document.querySelectorAll('#" + categoryID + " .fl_g')[" + index + "].querySelector('em').innerText" });
155 | }
156 | else
157 | {
158 | r3 = "";
159 | }
160 |
161 | string r4 = await ConnToWV(new string[] { "document.querySelectorAll('#" + categoryID + " .fl_g')[" + index + "].getElementsByClassName('xg2').length.toString();" });
162 | if (r4 == "1")
163 | {
164 | r4 = await ConnToWV(new string[] { "document.querySelectorAll('#" + categoryID + " .fl_g')[" + index + "].querySelector('.xg2').innerText" });
165 | }
166 | else
167 | {
168 | r4 = "该板块暂无介绍";
169 | }
170 |
171 | r4 += "\n" + await ConnToWV(new string[] { "document.querySelectorAll('#" + categoryID + " .fl_g')[" + index + "].querySelector('dd').innerText" });
172 |
173 | addToListView.Items.Add(new BBSMainBlock { BlockICON = bitmapImage, uri = u1, BlockTittle = r2, TodayPosts = r3, BlockIfm = r4 });
174 | }
175 | catch (Exception)
176 | {
177 |
178 | }
179 | }
180 |
181 | public async Task ConnToWV(string[] value)
182 | {
183 | return await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", value); ;
184 | }
185 | private void List_SelectionChanged(object sender, SelectionChangedEventArgs e)
186 | {
187 | ListView listView = sender as ListView;
188 | switch(listView.Name)
189 | {
190 | case "List1a":
191 | MainPage.CurrentPage.WebView1.Source= (List1a.SelectedItem as BBSMainBlock).uri;
192 | break;
193 | case "List1b":
194 | MainPage.CurrentPage.WebView1.Source = (List1b.SelectedItem as BBSMainBlock).uri;
195 | break;
196 | case "List1c":
197 | MainPage.CurrentPage.WebView1.Source = (List1c.SelectedItem as BBSMainBlock).uri;
198 | break;
199 | case "List1d":
200 | MainPage.CurrentPage.WebView1.Source = (List1d.SelectedItem as BBSMainBlock).uri;
201 | break;
202 | case "List2":
203 | MainPage.CurrentPage.WebView1.Source = (List2.SelectedItem as BBSMainBlock).uri;
204 | break;
205 | case "List3":
206 | MainPage.CurrentPage.WebView1.Source = (List3.SelectedItem as BBSMainBlock).uri;
207 | break;
208 | case "List4":
209 | MainPage.CurrentPage.WebView1.Source = (List4.SelectedItem as BBSMainBlock).uri;
210 | break;
211 | case "List5":
212 | MainPage.CurrentPage.WebView1.Source = (List5.SelectedItem as BBSMainBlock).uri;
213 | break;
214 | case "List6":
215 | MainPage.CurrentPage.WebView1.Source = (List6.SelectedItem as BBSMainBlock).uri;
216 | break;
217 | }
218 |
219 | Frame.Navigate(typeof(ShowThreadsPage));
220 | }
221 | }
222 | }
223 |
--------------------------------------------------------------------------------
/远景论坛UWP/BlockICON/B1Bkg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/BlockICON/B1Bkg.png
--------------------------------------------------------------------------------
/远景论坛UWP/BlockICON/B2Bkg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/BlockICON/B2Bkg.png
--------------------------------------------------------------------------------
/远景论坛UWP/BlockICON/B3Bkg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/BlockICON/B3Bkg.png
--------------------------------------------------------------------------------
/远景论坛UWP/BlockICON/B4Bkg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/BlockICON/B4Bkg.png
--------------------------------------------------------------------------------
/远景论坛UWP/BlockICON/B4Bkg2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/BlockICON/B4Bkg2.png
--------------------------------------------------------------------------------
/远景论坛UWP/BlockICON/B5Bkg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/BlockICON/B5Bkg.png
--------------------------------------------------------------------------------
/远景论坛UWP/BlockICON/B6Bkg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/BlockICON/B6Bkg.png
--------------------------------------------------------------------------------
/远景论坛UWP/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
109 |
114 |
119 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
137 |
138 |
139 |
140 |
141 |
142 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
--------------------------------------------------------------------------------
/远景论坛UWP/MyAlertPage.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
114 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
--------------------------------------------------------------------------------
/远景论坛UWP/MyAlertPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Diagnostics;
4 | using System.IO;
5 | using System.Linq;
6 | using System.Runtime.InteropServices.WindowsRuntime;
7 | using System.Threading.Tasks;
8 | using Windows.Foundation;
9 | using Windows.Foundation.Collections;
10 | using Windows.UI;
11 | using Windows.UI.Popups;
12 | using Windows.UI.Xaml;
13 | using Windows.UI.Xaml.Controls;
14 | using Windows.UI.Xaml.Controls.Primitives;
15 | using Windows.UI.Xaml.Data;
16 | using Windows.UI.Xaml.Input;
17 | using Windows.UI.Xaml.Media;
18 | using Windows.UI.Xaml.Media.Imaging;
19 | using Windows.UI.Xaml.Navigation;
20 |
21 | // https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板
22 |
23 | namespace 远景论坛UWP
24 | {
25 | ///
26 | /// 可用于自身或导航至 Frame 内部的空白页。
27 | ///
28 | public sealed partial class MyAlertPage : Page
29 | {
30 | public static MyAlertPage CurrentPage;
31 | public MyAlertPage()
32 | {
33 | this.InitializeComponent();
34 | CurrentPage = this;
35 | }
36 | private async void Page_Loaded(object sender, RoutedEventArgs e)
37 | {
38 | try
39 | {
40 | var ckNew = string.Format(@"document.getElementById('myprompt').innerText;");
41 | string ckResult = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { ckNew });
42 |
43 | if (ckResult.Contains("("))
44 | {
45 | NewMessage_Click(sender, e);
46 | }
47 | else
48 | {
49 | InboxMessage_Click(sender, e);
50 | }
51 | }
52 | catch (Exception)
53 | {
54 | MainPage.CurrentPage.ShowNotifi("获取信息异常,请检查您的网络");
55 | }
56 | }
57 | public async void GetMessage()
58 | {
59 | BackBtn.Visibility = 0;
60 | NextBtn.Visibility = 0;
61 | Pageindex.Visibility = 0;
62 | JumpBtn.Visibility = 0;
63 | NoMessage.Text = "";
64 | MessageList.Items.Clear();
65 |
66 | if (await MainPage.CurrentPage.CheckLoadState(true) != 0)
67 | {
68 | NoMessage.Text = "加载消息失败";
69 | MainPage.CurrentPage.ShowNotifi("获取信息异常,请检查您的网络");
70 | return;
71 | }
72 |
73 | var check = string.Format(@"document.getElementsByClassName('bm bw0')[0].innerText;");
74 | string isvd = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check });
75 | if (isvd.Contains("暂时没有新提醒"))
76 | {
77 | NoMessage.Text = "暂时没有新提醒";
78 | BackBtn.Visibility = (Visibility)1;
79 | NextBtn.Visibility = (Visibility)1;
80 | Pageindex.Visibility = (Visibility)1;
81 | JumpBtn.Visibility = (Visibility)1;
82 |
83 | return;
84 | }
85 |
86 | try
87 | {
88 | var send = string.Format(@"'Count'+document.getElementsByClassName('nts')[0].childElementCount");
89 | string get = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
90 | int item = Convert.ToInt32(get.Replace("Count", ""));
91 |
92 | for (int i = 0; i < item; i++)
93 | {
94 | var avatar = string.Format(@"document.getElementsByClassName('m avt mbn')[{0}].getElementsByTagName('img')[0].src;", i);
95 | string get1 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { avatar });
96 |
97 | string get2 = "";
98 | if (!get1.Contains("system"))
99 | {
100 | var space = string.Format(@"document.getElementsByClassName('m avt mbn')[{0}].getElementsByTagName('a')[0].href;", i);
101 | get2 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { space });
102 | }
103 | var dtime = string.Format(@"document.getElementsByClassName('nts')[0].getElementsByClassName('cl')[{0}].getElementsByClassName('xg1 xw0')[0].innerText;", i);
104 | string get3 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { dtime });
105 | var content = string.Format(@"document.getElementsByClassName('ntc_body')[{0}].innerText;", i);
106 | string get4 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { content });
107 |
108 | var linkcount = string.Format(@"'Count'+document.getElementsByClassName('ntc_body')[{0}].getElementsByTagName('a').length", i);
109 | string get5 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { linkcount });
110 | int count = Convert.ToInt32(get5.Replace("Count", ""));
111 | for (int j = 0; j < count; j++)
112 | {
113 | var directlink = string.Format(@"document.getElementsByClassName('ntc_body')[{0}].getElementsByTagName('a')[{1}].href;", i, j);
114 | get5 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { directlink });
115 | if (get5.Contains("viewthread") || get5.Contains("redirect"))
116 | {
117 | break;
118 | }
119 | else
120 | {
121 | get5 = "";
122 | }
123 | }
124 |
125 | MessageList.Items.Add(
126 | new AlertInformation { UserImage = new BitmapImage(new Uri(get1)), UserSpaceID = get2, Datetime = get3, AlertContent = get4, Directlink = get5 , BtnName =i.ToString()});
127 |
128 | }
129 |
130 |
131 | send = string.Format(@"'Count'+document.getElementsByClassName('prev').length");
132 | string CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
133 | int count1 = Convert.ToInt32(CKvaild.Replace("Count", ""));
134 | if (count1 == 0)
135 | {
136 | BackBtn.Visibility = (Visibility)1;
137 | }
138 | send = string.Format(@"'Count'+document.getElementsByClassName('nxt').length");
139 | CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
140 | int count2 = Convert.ToInt32(CKvaild.Replace("Count", ""));
141 | if (count2 == 0)
142 | {
143 | NextBtn.Visibility = (Visibility)1;
144 | }
145 | if(count1==0 && count2==0)
146 | {
147 | Pageindex.Visibility = (Visibility)1;
148 | JumpBtn.Visibility = (Visibility)1;
149 | }
150 | if(MainPage.CurrentPage.WebView1.Source.ToString().Contains("page=50"))
151 | {
152 | NextBtn.Visibility = (Visibility)1;
153 | }
154 | int abc = MainPage.CurrentPage.WebView1.Source.ToString().IndexOf("page");
155 | PageNum.Text = MainPage.CurrentPage.WebView1.Source.ToString().Substring(abc).Replace("page=", "");
156 | }
157 | catch (Exception)
158 | {
159 |
160 | }
161 | }
162 |
163 | private void NewMessage_Click(object sender, RoutedEventArgs e)
164 | {
165 | try
166 | {
167 | NoMessage.ClearValue(TextBlock.TextProperty);
168 | MainPage.CurrentPage.WebView1.Source = new Uri("http://i.pcbeta.com/home.php?mod=space&do=notice&page=1");
169 | NewMessage.FontSize = 26; InboxMessage.FontSize = 22; NewMessage.Foreground = new SolidColorBrush(Colors.Yellow); InboxMessage.Foreground = new SolidColorBrush(Colors.Black);
170 |
171 | }
172 | catch (Exception)
173 | {
174 | MainPage.CurrentPage.ShowNotifi("非常抱歉,我们这里出了点小问题,请您刷新页面重试");
175 | }
176 |
177 | GetMessage();
178 | }
179 |
180 | private void InboxMessage_Click(object sender, RoutedEventArgs e)
181 | {
182 | try
183 | {
184 | NoMessage.ClearValue(TextBlock.TextProperty);
185 | MainPage.CurrentPage.WebView1.Source = new Uri("http://i.pcbeta.com/home.php?mod=space&do=notice&isread=1%page=1");
186 | NewMessage.FontSize = 22; InboxMessage.FontSize = 26; NewMessage.Foreground = new SolidColorBrush(Colors.Black); InboxMessage.Foreground = new SolidColorBrush(Colors.Cyan);
187 | }
188 | catch (Exception)
189 | {
190 | MainPage.CurrentPage.ShowNotifi("非常抱歉,我们这里出了点小问题,请您刷新页面重试");
191 | }
192 |
193 | GetMessage();
194 | }
195 | private void MessageList_SelectionChanged(object sender, SelectionChangedEventArgs e)
196 | {
197 | if(MessageList.SelectedIndex<0)
198 | {
199 | return;
200 | }
201 | string url = ((AlertInformation)MessageList.SelectedItem).Directlink;
202 | MainPage.CurrentPage.WebView1.Source = new Uri(url);
203 | this.Frame.Navigate(typeof(ThreadContentPage));
204 | }
205 | private void TempleBtn_Click(object sender, RoutedEventArgs e)
206 | {
207 | Button button = sender as Button;
208 | int index = Convert.ToInt32(button.Tag);
209 | var link = ((AlertInformation)MessageList.Items[index]).UserSpaceID;
210 | //等待处理url
211 | MainPage.CurrentPage.ShowNotifi(link);
212 |
213 | }
214 | private async void BackBtn_Click(object sender, RoutedEventArgs e)
215 | {
216 | try
217 | {
218 | var send = string.Format(@"'Count'+document.getElementsByClassName('prev').length");
219 | string CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
220 | int count = Convert.ToInt32(CKvaild.Replace("Count", ""));
221 | if(count==0)
222 | {
223 | MainPage.CurrentPage.ShowNotifi("没有上一页了");
224 |
225 | return;
226 | }
227 | send = string.Format(@"document.getElementsByClassName('prev')[0].href");
228 | CKvaild= await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
229 | MainPage.CurrentPage.WebView1.Source = new Uri(CKvaild);
230 | GetMessage();
231 | }
232 | catch(Exception)
233 | {
234 | MainPage.CurrentPage.ShowNotifi("加载失败");
235 | }
236 | }
237 |
238 | private void JumpBtn_Click(object sender, RoutedEventArgs e)
239 | {
240 | int index=-1;
241 | if(!Int32.TryParse(Pageindex.Text,out index))
242 | {
243 | MainPage.CurrentPage.ShowNotifi("请输入有效的数值!");
244 | return;
245 | }
246 | if(index<1||index>50)
247 | {
248 | MainPage.CurrentPage.ShowNotifi("允许跳转页面的范围:1-- 50!");
249 | return;
250 | }
251 | if (MainPage.CurrentPage.WebView1.Source.ToString().Contains("isread"))
252 | {
253 | MainPage.CurrentPage.WebView1.Source = new Uri("http://i.pcbeta.com/home.php?mod=space&do=notice&isread=1&page=" + index);
254 | }
255 | else
256 | {
257 | MainPage.CurrentPage.WebView1.Source = new Uri("http://i.pcbeta.com/home.php?mod=space&do=notice&page=" + index);
258 | }
259 |
260 | GetMessage();
261 | }
262 |
263 | private async void NextBtn_Click(object sender, RoutedEventArgs e)
264 | {
265 | try
266 | {
267 | var send = string.Format(@"'Count'+document.getElementsByClassName('nxt').length");
268 | string CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
269 | int count = Convert.ToInt32(CKvaild.Replace("Count", ""));
270 | if (count == 0)
271 | {
272 | MainPage.CurrentPage.ShowNotifi("没有下一页了");
273 |
274 | return;
275 | }
276 | send = string.Format(@"document.getElementsByClassName('nxt')[0].href");
277 | CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
278 | MainPage.CurrentPage.WebView1.Source = new Uri(CKvaild);
279 | GetMessage();
280 | }
281 | catch (Exception)
282 | {
283 | MainPage.CurrentPage.ShowNotifi("加载失败");
284 | }
285 | }
286 | }
287 | }
288 |
--------------------------------------------------------------------------------
/远景论坛UWP/MyPostPage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
--------------------------------------------------------------------------------
/远景论坛UWP/MyPostPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using System.Threading.Tasks;
7 | using Windows.ApplicationModel.DataTransfer;
8 | using Windows.Foundation;
9 | using Windows.Foundation.Collections;
10 | using Windows.Graphics.Printing.Workflow;
11 | using Windows.UI.Popups;
12 | using Windows.UI.Xaml;
13 | using Windows.UI.Xaml.Controls;
14 | using Windows.UI.Xaml.Controls.Primitives;
15 | using Windows.UI.Xaml.Data;
16 | using Windows.UI.Xaml.Input;
17 | using Windows.UI.Xaml.Media;
18 | using Windows.UI.Xaml.Navigation;
19 |
20 | // https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板
21 |
22 | namespace 远景论坛UWP
23 | {
24 | ///
25 | /// 可用于自身或导航至 Frame 内部的空白页。
26 | ///
27 | public sealed partial class MyPostPage : Page
28 | {
29 | public MyPostPage()
30 | {
31 | this.InitializeComponent();
32 | }
33 | Uri thLink;
34 | int LoadType = 1;
35 | bool firstload = true;
36 | private async void Page_Loaded(object sender, RoutedEventArgs e)
37 | {
38 | if (await MainPage.CurrentPage.CheckLoadState(true) != 0)
39 | {
40 | return;
41 | }
42 |
43 | RefreshMessage refresh = new RefreshMessage();
44 | refresh.CheckNewMessage();
45 |
46 | LoadMyThread();
47 | }
48 | public async void LoadMyThread()
49 | {
50 | if(!await LoadCheck())
51 | {
52 | return;
53 | }
54 |
55 | TestList.Items.Add(new MyThreads { Tittle = "标题", Block = "所属板块", ReplyViewNum = "回复数 浏览量", LastReply = "最后回复", TUri = null });
56 |
57 | try
58 | {
59 | var send = string.Format(@"document.getElementsByTagName('table')[1].getElementsByTagName('tr').length.toString();");
60 | string count = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
61 | int index = Convert.ToInt32(count);
62 |
63 | for (int i = 1; i < index; i++)
64 | {
65 | var send1 = string.Format(@"document.getElementsByTagName('table')[1].getElementsByTagName('tr')[{0}].getElementsByTagName('a')[1].innerText;", i);
66 | string thTittle = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send1 });
67 | var send2 = string.Format(@"document.getElementsByTagName('table')[1].getElementsByTagName('tr')[{0}].getElementsByTagName('a')[1].href;", i);
68 | thLink = new Uri(await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send2 }));
69 | var send3 = string.Format(@"document.getElementsByTagName('table')[1].getElementsByTagName('tr')[{0}].getElementsByTagName('td')[1].innerText;", i);
70 | string thBlock = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send3 });
71 | var send4 = string.Format(@"document.getElementsByTagName('table')[1].getElementsByTagName('tr')[{0}].getElementsByTagName('td')[2].innerText;", i);
72 | string thCheck = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send4 });
73 | var send5 = string.Format(@"document.getElementsByTagName('table')[1].getElementsByClassName('by')[{0}].innerText;", i);
74 | string lastrpl = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send5 });
75 | TestList.Items.Add(new MyThreads { Tittle = thTittle, Block = thBlock, ReplyViewNum = thCheck, LastReply = lastrpl, TUri = thLink });
76 | }
77 |
78 | CheckPage();
79 | }
80 | catch (Exception)
81 | {
82 |
83 | }
84 | }
85 | public async void LoadMyReply()
86 | {
87 | if (!await LoadCheck())
88 | {
89 | return;
90 | }
91 | TestList.Items.Add(new MyReply { Tittle = "标题", Block = "所属板块", ReplyViewNum = "回复数 浏览量",ReplyContent="回帖内容", LastReply = "最后回复", TUri = null });
92 |
93 | try
94 | {
95 | var send = string.Format(@"document.getElementsByTagName('table')[1].getElementsByClassName('bw0_all').length.toString();");
96 | string count = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
97 | int index = Convert.ToInt16(count);
98 |
99 | for (int i = 0; i < index; i++)
100 | {
101 | var send1 = string.Format(@"document.getElementsByTagName('table')[1].getElementsByClassName('bw0_all')[{0}].getElementsByTagName('a')[1].innerText;", i);
102 | string thTittle = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send1 });
103 | var send2 = string.Format(@"document.getElementsByTagName('table')[1].getElementsByClassName('bw0_all')[{0}].getElementsByTagName('a')[1].href;", i);
104 | thLink = new Uri(await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send2 }));
105 | var send3 = string.Format(@"document.getElementsByTagName('table')[1].getElementsByClassName('bw0_all')[{0}].getElementsByTagName('td')[1].innerText;", i);
106 | string thBlock = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send3 });
107 | var send4 = string.Format(@"document.getElementsByTagName('table')[1].getElementsByClassName('bw0_all')[{0}].getElementsByTagName('td')[2].innerText;", i);
108 | string thCheck = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send4 });
109 | var send5 = string.Format(@"document.getElementsByTagName('table')[1].getElementsByClassName('bw0_all')[{0}].getElementsByClassName('by')[0].innerText;", i);
110 | string lastrpl = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send5 });
111 | var send6 = string.Format(@"document.querySelectorAll('td.xg1')[{0}].innerText;", i);
112 | string content = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send6 });
113 |
114 | TestList.Items.Add(new MyReply { Tittle = thTittle, Block = thBlock, ReplyViewNum = thCheck, LastReply = lastrpl,ReplyContent=content, TUri = thLink });
115 | }
116 |
117 | CheckPage();
118 | }
119 | catch (Exception)
120 | {
121 |
122 | }
123 | }
124 | public async void LoadMyDP()
125 | {
126 | if (!await LoadCheck())
127 | {
128 | return;
129 | }
130 | TestList.Items.Add(new MyDP { Tittle = "标题", Block = "所属板块",DPContent="点评内容",TUri = null });
131 |
132 | try
133 | {
134 | var send = string.Format(@"document.getElementsByClassName('bw0_all').length.toString();");
135 | string count = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
136 | int index = Convert.ToInt16(count);
137 |
138 | for (int i = 0; i < index; i++)
139 | {
140 | var send1 = string.Format(@"document.getElementsByClassName('bw0_all')[{0}].getElementsByTagName('a')[1].innerText;", i);
141 | string thTittle = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send1 });
142 | var send2 = string.Format(@"document.getElementsByClassName('bw0_all')[{0}].getElementsByTagName('a')[1].href;", i);
143 | thLink = new Uri(await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send2 }));
144 | var send3 = string.Format(@"document.getElementsByClassName('bw0_all')[{0}].getElementsByTagName('td')[1].innerText;", i);
145 | string thBlock = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send3 });
146 | var send4 = string.Format(@"document.querySelectorAll('td.xg1')[{0}].innerText;", i);
147 | string content = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send4 });
148 |
149 | TestList.Items.Add(new MyDP { Tittle = thTittle, Block = thBlock, DPContent = content, TUri = thLink });
150 | }
151 |
152 | CheckPage();
153 | }
154 | catch (Exception)
155 | {
156 |
157 | }
158 | }
159 | public async Task LoadCheck()
160 | {
161 | BackBtn.Visibility = 0;
162 | NextBtn.Visibility = 0;
163 | Pageindex.Visibility = 0;
164 | JumpBtn.Visibility = 0;
165 | NoMessage.Text = "";
166 | TestList.Items.Clear();
167 |
168 | if(!firstload)
169 | {
170 | if (await MainPage.CurrentPage.CheckLoadState(true) != 0)
171 | {
172 | NoMessage.Text = "加载失败";
173 | MainPage.CurrentPage.ShowNotifi("获取信息异常,请检查您的网络");
174 | return false;
175 | }
176 | }
177 | firstload = false;
178 |
179 | try
180 | {
181 | var check = string.Format(@"document.getElementsByClassName('bm bw0')[0].innerText;");
182 | string isvd = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check });
183 | if (isvd.Contains("还没有相关的帖子"))
184 | {
185 | NoMessage.Text = "您还没有发布的内容";
186 | BackBtn.Visibility = (Visibility)1;
187 | NextBtn.Visibility = (Visibility)1;
188 | Pageindex.Visibility = (Visibility)1;
189 | JumpBtn.Visibility = (Visibility)1;
190 |
191 | return false;
192 | }
193 | }
194 | catch(Exception)
195 | {
196 | return false;
197 | }
198 |
199 | return true;
200 | }
201 | public async void CheckPage()
202 | {
203 | var send = string.Format(@"document.getElementsByClassName('pgb').length.toString();");
204 | string CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
205 | int count1 = Convert.ToInt32(CKvaild);
206 | if (count1 == 0)
207 | {
208 | BackBtn.Visibility = (Visibility)1;
209 | }
210 | send = string.Format(@"document.getElementsByClassName('nxt').length.toString();");
211 | CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
212 | int count2 = Convert.ToInt32(CKvaild);
213 | if (count2 == 0)
214 | {
215 | NextBtn.Visibility = (Visibility)1;
216 | }
217 | if (count1 == 0 && count2 == 0)
218 | {
219 | Pageindex.Visibility = (Visibility)1;
220 | JumpBtn.Visibility = (Visibility)1;
221 | }
222 | if (MainPage.CurrentPage.WebView1.Source.ToString().Contains("page=50"))
223 | {
224 | NextBtn.Visibility = (Visibility)1;
225 | }
226 | int abc = MainPage.CurrentPage.WebView1.Source.ToString().IndexOf("page");
227 | PageNum.Text = MainPage.CurrentPage.WebView1.Source.ToString().Substring(abc).Replace("page=", "");
228 | }
229 | private void TestList_ItemClick(object sender, ItemClickEventArgs e)
230 | {
231 | if(LoadType==1)
232 | {
233 | var abcde = (e.ClickedItem) as MyThreads;
234 | if (abcde.TUri == null)
235 | {
236 | return;
237 | }
238 | MainPage.CurrentPage.WebView1.Source = abcde.TUri;
239 | }
240 | else if (LoadType==2)
241 | {
242 | var abcde = (e.ClickedItem) as MyReply;
243 | if (abcde.TUri == null)
244 | {
245 | return;
246 | }
247 | MainPage.CurrentPage.WebView1.Source = abcde.TUri;
248 | }
249 | else
250 | {
251 | var abcde = (e.ClickedItem) as MyDP;
252 | if (abcde.TUri == null)
253 | {
254 | return;
255 | }
256 | MainPage.CurrentPage.WebView1.Source = abcde.TUri;
257 | }
258 |
259 | this.Frame.Navigate(typeof(ThreadContentPage));
260 | }
261 |
262 | private async void BackBtn_Click(object sender, RoutedEventArgs e)
263 | {
264 | try
265 | {
266 | var send = string.Format(@"'Count'+document.getElementsByClassName('pgb').length");
267 | string CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
268 | int count = Convert.ToInt32(CKvaild.Replace("Count", ""));
269 | if (count == 0)
270 | {
271 | MainPage.CurrentPage.ShowNotifi("没有上一页了");
272 |
273 | return;
274 | }
275 | send = string.Format(@"document.getElementsByClassName('pgb')[0].getElementsByTagName('a')[0].href");
276 | CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
277 | MainPage.CurrentPage.WebView1.Source = new Uri(CKvaild);
278 |
279 | if(LoadType==1)
280 | {
281 | LoadMyThread();
282 | }
283 | else if (LoadType == 2)
284 | {
285 | LoadMyReply();
286 | }
287 | else
288 | {
289 | LoadMyDP();
290 | }
291 | }
292 | catch (Exception)
293 | {
294 | MainPage.CurrentPage.ShowNotifi("加载失败");
295 | }
296 | }
297 |
298 | private void JumpBtn_Click(object sender, RoutedEventArgs e)
299 | {
300 | int index = -1;
301 | if (!Int32.TryParse(Pageindex.Text, out index))
302 | {
303 | MainPage.CurrentPage.ShowNotifi("请输入有效的数值!");
304 | return;
305 | }
306 | if (index < 1 || index > 50)
307 | {
308 | MainPage.CurrentPage.ShowNotifi("允许跳转页面的范围:1 -- 50!");
309 | return;
310 | }
311 |
312 | if (LoadType == 1)
313 | {
314 | MainPage.CurrentPage.WebView1.Source = new Uri("http://i.pcbeta.com/home.php?mod=space&do=thread&view=me&type=thread&page="+index);
315 | LoadMyThread();
316 | }
317 | else if (LoadType == 2)
318 | {
319 | MainPage.CurrentPage.WebView1.Source = new Uri("http://i.pcbeta.com/home.php?mod=space&do=thread&view=me&type=reply&page="+index);
320 | LoadMyReply();
321 | }
322 | else
323 | {
324 | MainPage.CurrentPage.WebView1.Source = new Uri("http://i.pcbeta.com/home.php?mod=space&do=thread&view=me&type=postcomment&page="+index);
325 | LoadMyDP();
326 | }
327 | }
328 |
329 | private async void NextBtn_Click(object sender, RoutedEventArgs e)
330 | {
331 | try
332 | {
333 | var send = string.Format(@"'Count'+document.getElementsByClassName('nxt').length");
334 | string CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
335 | int count = Convert.ToInt32(CKvaild.Replace("Count", ""));
336 | if (count == 0)
337 | {
338 | MainPage.CurrentPage.ShowNotifi("没有下一页了");
339 |
340 | return;
341 | }
342 | send = string.Format(@"document.getElementsByClassName('nxt')[0].href");
343 | CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
344 | MainPage.CurrentPage.WebView1.Source = new Uri(CKvaild);
345 |
346 | if (LoadType == 1)
347 | {
348 | LoadMyThread();
349 | }
350 | else if (LoadType == 2)
351 | {
352 | LoadMyReply();
353 | }
354 | else
355 | {
356 | LoadMyDP();
357 | }
358 | }
359 | catch (Exception)
360 | {
361 | MainPage.CurrentPage.ShowNotifi("加载失败");
362 | }
363 | }
364 |
365 | private void TopBtn_Click(object sender, RoutedEventArgs e)
366 | {
367 | TestList.Items.Clear();
368 | Button button = sender as Button;
369 | if (button.Name == "MyThBtn")
370 | {
371 | MainPage.CurrentPage.WebView1.Source = new Uri("http://i.pcbeta.com/home.php?mod=space&do=thread&view=me&type=thread&page=1");
372 |
373 | LoadType = 1;
374 | TestList.ItemTemplate = DT1;
375 | LoadMyThread();
376 | }
377 | else if (button.Name == "MyReBtn")
378 | {
379 | MainPage.CurrentPage.WebView1.Source = new Uri("http://i.pcbeta.com/home.php?mod=space&do=thread&view=me&type=reply&page=1");
380 |
381 | LoadType = 2;
382 | TestList.ItemTemplate = DT2;
383 | LoadMyReply();
384 | }
385 | else
386 | {
387 | MainPage.CurrentPage.WebView1.Source = new Uri("http://i.pcbeta.com/home.php?mod=space&do=thread&view=me&type=postcomment&page=1");
388 |
389 | LoadType = 3;
390 | TestList.ItemTemplate = DT3;
391 | LoadMyDP();
392 | }
393 | }
394 | }
395 | }
396 |
--------------------------------------------------------------------------------
/远景论坛UWP/NEWSPage.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/远景论坛UWP/NEWSPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using System.Threading.Tasks;
7 | using Windows.Foundation;
8 | using Windows.Foundation.Collections;
9 | using Windows.UI.Popups;
10 | using Windows.UI.Xaml;
11 | using Windows.UI.Xaml.Controls;
12 | using Windows.UI.Xaml.Controls.Primitives;
13 | using Windows.UI.Xaml.Data;
14 | using Windows.UI.Xaml.Input;
15 | using Windows.UI.Xaml.Media;
16 | using Windows.UI.Xaml.Media.Imaging;
17 | using Windows.UI.Xaml.Navigation;
18 |
19 | // https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板
20 |
21 | namespace 远景论坛UWP
22 | {
23 | ///
24 | /// 可用于自身或导航至 Frame 内部的空白页。
25 | ///
26 | public sealed partial class NEWSPage : Page
27 | {
28 | public NEWSPage()
29 | {
30 | this.InitializeComponent();
31 | }
32 |
33 | private void Page_Loaded(object sender, RoutedEventArgs e)
34 | {
35 | LoadNEWS(false);
36 | }
37 | public async void LoadNEWS(bool noclear)
38 | {
39 | 滚动条.Visibility = 0;
40 | 滚动条.IsActive = true;
41 | if (await MainPage.CurrentPage.CheckLoadState(true) != 0)
42 | {
43 | 滚动条.Visibility = (Visibility)1;
44 | 滚动条.IsActive = false;
45 | JumpBtn.IsEnabled = true;
46 | return;
47 | }
48 |
49 | RefreshMessage refresh = new RefreshMessage();
50 | refresh.CheckNewMessage();
51 |
52 | if (!noclear)
53 | {
54 | NewsList.Items.Clear();
55 | }
56 |
57 | try
58 | {
59 | for (int i = 0; i < 45; i++)
60 | {
61 | var newsImg = string.Format(@"document.getElementById('pt_list').getElementsByTagName('img')[{0}].src;", i);
62 | string get1 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { newsImg });
63 | var bitmap = new BitmapImage(new Uri(get1));
64 | var newsTitle = string.Format(@"document.getElementById('pt_list').getElementsByTagName('h3')[{0}].innerText;", i);
65 | string get2 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { newsTitle });
66 | var newsNotes = string.Format(@"document.getElementById('pt_list').getElementsByTagName('p')[{0}].innerText;", i);
67 | string get3 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { newsNotes });
68 | var newsPost = string.Format(@"document.getElementById('pt_list').getElementsByTagName('span')[{0}].innerText;", i);
69 | string get4 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { newsPost });
70 | var newsLink = string.Format(@"document.getElementsByClassName('thumb')[{0}].href;", i);
71 | Uri get5 = new Uri(await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { newsLink }));
72 |
73 | NewsList.Items.Add(new NEWSIfm { Tittle = get2, Preview = get3, Information = get4, NEWSICON = bitmap, NEWSUri = get5 });
74 | }
75 | }
76 | catch (Exception)
77 | {
78 | MainPage.CurrentPage.ShowNotifi("新闻加载失败,请稍后重试");
79 | }
80 |
81 | 滚动条.Visibility = (Visibility)1;
82 | 滚动条.IsActive = false;
83 | JumpBtn.IsEnabled = true;
84 | }
85 | private void NewsList_ItemClick(object sender, ItemClickEventArgs e)
86 | {
87 | if(e.ClickedItem as NEWSIfm == null)
88 | {
89 | return;
90 | }
91 | MainPage.CurrentPage.WebView1.Source = (e.ClickedItem as NEWSIfm).NEWSUri;
92 | this.Frame.Navigate(typeof(ShowNEWSPage));
93 | }
94 |
95 | private void JumpBtn_Click(object sender, RoutedEventArgs e)
96 | {
97 | int index;
98 | if (!int.TryParse(PageIndex.Text, out index))
99 | {
100 | MainPage.CurrentPage.ShowNotifi("请输入有效的数值!");
101 | return;
102 | }
103 | if (index < 1 || index > 1000)
104 | {
105 | MainPage.CurrentPage.ShowNotifi("允许跳转页面的范围:1 -- 1000!");
106 | return;
107 | }
108 | JumpBtn.IsEnabled = false;
109 |
110 | MainPage.CurrentPage.WebView1.Source = new Uri("http://www.pcbeta.com/news/?page="+index);
111 | LoadNEWS(false);
112 | }
113 |
114 | private void ListScroll_ViewChanged(object sender, ScrollViewerViewChangedEventArgs e)
115 | {
116 | if(ListScroll.VerticalOffset==ListScroll.ScrollableHeight)
117 | {
118 | LoadMore();
119 | }
120 | }
121 |
122 | private void Page_SizeChanged(object sender, SizeChangedEventArgs e)
123 | {
124 | ListScroll.Height = Window.Current.Bounds.Height - 180;
125 | }
126 | /*
127 | var t = NewsList.TransformToVisual(Window.Current.Content);
128 | Point screenCoords = t.TransformPoint(new Point(0, 0));
129 | await new MessageDialog(screenCoords.ToString()).ShowAsync();
130 | */
131 | public async void LoadMore()
132 | {
133 | if(滚动条.IsActive)
134 | {
135 | return;
136 | }
137 | try
138 | {
139 | var send = string.Format(@"document.getElementsByClassName('nxt')[0].href");
140 | string CKvaild = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
141 | MainPage.CurrentPage.WebView1.Source = new Uri(CKvaild);
142 | LoadNEWS(true);
143 | }
144 | catch(Exception)
145 | {
146 | MainPage.CurrentPage.ShowNotifi("新闻加载失败,请稍后重试");
147 | }
148 |
149 | }
150 | }
151 | }
152 |
--------------------------------------------------------------------------------
/远景论坛UWP/NewsICON/握手.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/NewsICON/握手.png
--------------------------------------------------------------------------------
/远景论坛UWP/NewsICON/花.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/NewsICON/花.png
--------------------------------------------------------------------------------
/远景论坛UWP/NewsICON/蛋.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/NewsICON/蛋.png
--------------------------------------------------------------------------------
/远景论坛UWP/NewsICON/路过.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/NewsICON/路过.png
--------------------------------------------------------------------------------
/远景论坛UWP/NewsICON/雷.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/NewsICON/雷.png
--------------------------------------------------------------------------------
/远景论坛UWP/Package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 远景论坛UWP
7 | FCTeam
8 | Assets\StoreLogo.png
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/远景论坛UWP/ProjectClass1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using Windows.UI.Xaml;
7 | using Windows.UI.Xaml.Controls;
8 | using Windows.UI.Xaml.Media.Imaging;
9 |
10 | namespace 远景论坛UWP
11 | {
12 | public class MyThreads
13 | {
14 | public string Tittle { get; set; }
15 | public string Block { get; set; }
16 | public string ReplyViewNum { get; set; }
17 | public string LastReply { get; set; }
18 | public Uri TUri { get; set; }
19 | }
20 | public class MyReply
21 | {
22 | public string Tittle { get; set; }
23 | public string ReplyContent { get; set; }
24 | public string Block { get; set; }
25 | public string ReplyViewNum { get; set; }
26 | public string LastReply { get; set; }
27 | public Uri TUri { get; set; }
28 | }
29 | public class MyDP
30 | {
31 | public string Tittle { get; set; }
32 | public string Block { get; set; }
33 | public string DPContent { get; set; }
34 | public Uri TUri { get; set; }
35 | }
36 | public class RefreshMessage
37 | {
38 | public async void CheckNewMessage()
39 | {
40 | var ckNew = string.Format(@"document.getElementById('myprompt').innerText;");
41 | string ckResult = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { ckNew });
42 |
43 | if (ckResult.Contains("("))
44 | {
45 | MainPage.CurrentPage.新消息.Text = ckResult.Replace("提醒(","").Replace(")","");
46 | if(!MainPage.CurrentPage.APPLeftPanel.IsPaneOpen)
47 | {
48 | MainPage.CurrentPage.SmallNew.Visibility = 0;
49 | }
50 | }
51 | else
52 | {
53 | MainPage.CurrentPage.新消息.ClearValue(TextBlock.TextProperty);
54 | if (!MainPage.CurrentPage.APPLeftPanel.IsPaneOpen)
55 | {
56 | MainPage.CurrentPage.SmallNew.Visibility = (Visibility)1;
57 | }
58 | }
59 | }
60 | }
61 | public class AlertInformation
62 | {
63 | public BitmapImage UserImage { get; set; }
64 | public string UserSpaceID { get; set; }
65 | public string Datetime { get; set; }
66 | public string AlertContent { get; set; }
67 | public string Directlink {get;set;}
68 | public string BtnName { get; set; }
69 | }
70 | public class NEWSIfm
71 | {
72 | public string Tittle { get; set; }
73 | public string Preview { get; set; }
74 | public string Information { get; set; }
75 | public BitmapImage NEWSICON { get; set; }
76 | public Uri NEWSUri { get; set; }
77 | }
78 | public class ShowNEWSc
79 | {
80 | public BitmapImage Images { get; set; }
81 | public string CommentsIfm { get; set; }
82 | public string Quote { get; set; }
83 | public string Comments { get; set; }
84 | public string DeleteComm { get; set; }
85 | }
86 | public class ThreadsIfm
87 | {
88 | public string Tags { get; set; }
89 | public string Tittle { get; set; }
90 | public string Postby { get; set; }
91 | public string CheckViewNum { get; set; }
92 | public string LastReply { get; set; }
93 | public Uri ThrUri { get; set; }
94 | }
95 | public class UploadImage
96 | {
97 | public BitmapImage PreviewIMG { get; set; }
98 | public string DeleteIMG { get; set; }
99 | public string InsertIMG { get; set; }
100 | }
101 | public class ThrFiles
102 | {
103 | public string FileName { get; set; }
104 | public string ViewLVL { get; set; }
105 | public string Price { get; set; }
106 | public string Delete { get; set; }
107 | public string Insert { get; set; }
108 | public string FilesID { get; set; }
109 | }
110 | public class BBSMainBlock
111 | {
112 | public BitmapImage BlockICON { get; set; }
113 | public string BlockTittle { get; set; }
114 | public string TodayPosts { get; set; }
115 | public string BlockIfm { get; set; }
116 | public Uri uri { get; set; }
117 | }
118 | public class ThreadComm
119 | {
120 | public string CommUsername { get; set; }
121 | public string CommUserlink { get; set; }
122 | public string CommUserIfm { get; set; }
123 | public string CommIfm { get; set; }
124 | public string CommContent { get; set; }
125 | public StackPanel ThreadFJ { get; set; }
126 | public StackPanel ThreadDP { get; set; }
127 | public Visibility FJVisibility { get; set; }
128 | public Visibility DPVisibility { get; set; }
129 | public Visibility RateVisibility { get; set; }
130 | public Uri RateURL { get; set; }
131 | public StackPanel RateList { get; set; }
132 | public string RateNote { get; set; }
133 | public Uri DPLink { get; set; }
134 | public Uri ReplyLink { get; set; }
135 | public Uri EditLink { get; set; }
136 | public Uri ReportLink { get; set; }
137 |
138 | }
139 | }
140 |
--------------------------------------------------------------------------------
/远景论坛UWP/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("远景论坛UWP")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("远景论坛UWP")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Version information for an assembly consists of the following four values:
18 | //
19 | // Major Version
20 | // Minor Version
21 | // Build Number
22 | // Revision
23 | //
24 | // You can specify all the values or you can default the Build and Revision Numbers
25 | // by using the '*' as shown below:
26 | // [assembly: AssemblyVersion("1.0.*")]
27 | [assembly: AssemblyVersion("1.0.0.0")]
28 | [assembly: AssemblyFileVersion("1.0.0.0")]
29 | [assembly: ComVisible(false)]
--------------------------------------------------------------------------------
/远景论坛UWP/Properties/Default.rd.xml:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
20 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/远景论坛UWP/ShowNEWSPage.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
46 |
52 |
58 |
64 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
--------------------------------------------------------------------------------
/远景论坛UWP/ShowNEWSPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using System.Text.RegularExpressions;
7 | using System.Threading.Tasks;
8 | using Windows.ApplicationModel.DataTransfer;
9 | using Windows.Foundation;
10 | using Windows.Foundation.Collections;
11 | using Windows.UI;
12 | using Windows.UI.Popups;
13 | using Windows.UI.Text;
14 | using Windows.UI.Xaml;
15 | using Windows.UI.Xaml.Controls;
16 | using Windows.UI.Xaml.Controls.Primitives;
17 | using Windows.UI.Xaml.Data;
18 | using Windows.UI.Xaml.Input;
19 | using Windows.UI.Xaml.Media;
20 | using Windows.UI.Xaml.Media.Imaging;
21 | using Windows.UI.Xaml.Navigation;
22 |
23 | // https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板
24 |
25 | namespace 远景论坛UWP
26 | {
27 | ///
28 | /// 可用于自身或导航至 Frame 内部的空白页。
29 | ///
30 | public sealed partial class ShowNEWSPage : Page
31 | {
32 | public ShowNEWSPage()
33 | {
34 | this.InitializeComponent();
35 | }
36 | Uri get7a;
37 | Uri get7b;
38 | Uri get7c;
39 | Uri get7d;
40 | Uri get7e;
41 | private async void Page_Loaded(object sender, RoutedEventArgs e)
42 | {
43 | if (await MainPage.CurrentPage.CheckLoadState(true) != 0)
44 | {
45 | return;
46 | }
47 |
48 | RefreshMessage refresh = new RefreshMessage();
49 | refresh.CheckNewMessage();
50 |
51 | try
52 | {
53 | var check1 = string.Format(@"document.getElementById('article_content').getElementsByTagName('img').length.toString();");
54 | string result1a = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check1 });
55 | int result1b = Convert.ToInt16(result1a);
56 |
57 | for (int i = 0; i < result1b; i++)
58 | {
59 | var check2 = string.Format(@"document.getElementsByClassName('vwtb')[0].getElementsByTagName('img')[{0}].src;", i);
60 | Uri result2 = new Uri(await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check2 }));
61 | var btmp = new BitmapImage(result2);
62 |
63 | 图片.Items.Add(new ShowNEWSc { Images = btmp });
64 | }
65 |
66 | var check3 = string.Format(@"document.getElementsByClassName('ph')[0].innerText;");
67 | 标题.Text = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check3 });
68 | var check4 = string.Format(@"document.getElementsByClassName('xg1')[0].innerText;");
69 | 信息.Text = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check4 });
70 | var check5 = string.Format(@"document.getElementById('article_content').innerText;");
71 | 内容.Text = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check5 });
72 |
73 | BTSelect();
74 | var check7a = string.Format(@"document.getElementsByClassName('atd')[0].getElementsByTagName('a')[0].href");
75 | get7a = new Uri(await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check7a }));
76 | var check7b = string.Format(@"document.getElementsByClassName('atd')[0].getElementsByTagName('a')[1].href");
77 | get7b = new Uri(await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check7b }));
78 | var check7c = string.Format(@"document.getElementsByClassName('atd')[0].getElementsByTagName('a')[2].href");
79 | get7c = new Uri(await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check7c }));
80 | var check7d = string.Format(@"document.getElementsByClassName('atd')[0].getElementsByTagName('a')[3].href");
81 | get7d = new Uri(await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check7d }));
82 | var check7e = string.Format(@"document.getElementsByClassName('atd')[0].getElementsByTagName('a')[4].href");
83 | get7e = new Uri(await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check7e }));
84 |
85 | }
86 | catch (Exception)
87 | {
88 | MainPage.CurrentPage.ShowNotifi("抱歉,新闻内容加载失败,请稍后重试 加载失败");
89 | }
90 |
91 | GetComm();
92 | }
93 | public async void BTSelect()
94 | {
95 | try
96 | {
97 | var check6a = string.Format(@"document.getElementsByClassName('mbm xs1')[0].innerText;");
98 | BTS.Text = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check6a });
99 |
100 | var check6 = string.Format(@"document.getElementsByClassName('atd')[0].getElementsByTagName('a')[0].innerText");
101 | BT1.Text = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check6 });
102 | check6 = string.Format(@"document.getElementsByClassName('atd')[0].getElementsByTagName('a')[1].innerText");
103 | BT2.Text = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check6 });
104 | check6 = string.Format(@"document.getElementsByClassName('atd')[0].getElementsByTagName('a')[2].innerText");
105 | BT3.Text = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check6 });
106 | check6 = string.Format(@"document.getElementsByClassName('atd')[0].getElementsByTagName('a')[3].innerText");
107 | BT4.Text = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check6 });
108 | check6 = string.Format(@"document.getElementsByClassName('atd')[0].getElementsByTagName('a')[4].innerText");
109 | BT5.Text = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check6 });
110 | }
111 | catch(Exception)
112 | {
113 | MainPage.CurrentPage.ShowNotifi("抱歉,获取表态信息失败,请稍后重试 加载失败");
114 | }
115 | }
116 | public async void GetComm()
117 | {
118 | var result2 = "";
119 | string deleteComm ="";
120 |
121 | try
122 | {
123 | var check1 = string.Format(@"document.getElementsByClassName('ptm pbw bbda cl').length.toString();");
124 | var rs1 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check1 });
125 | int rs2 = Convert.ToInt16(rs1);
126 |
127 | for(int i=0;i0)
149 | {
150 | check2 = string.Format(@"document.getElementsByClassName('ptm pbw bbda cl')[{0}].getElementsByTagName('blockquote')[0].innerText;", i);
151 | result2 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check2 });
152 | check2 = string.Format(@"document.getElementsByClassName('ptm pbw bbda cl')[{0}].getElementsByTagName('blockquote')[0].remove();", i);
153 | await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check2 });
154 | result2 = "回复了此评论:\n" + result2;
155 | }
156 | else
157 | {
158 | result2 = "";
159 | }
160 |
161 |
162 | var check4 = string.Format(@"document.getElementById('comment_ul').getElementsByTagName('dd')[{0}].innerText;", i);
163 | var result4 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check4 });
164 |
165 | CommList.Items.Add(new ShowNEWSc { CommentsIfm = result3, Quote = result2,Comments= result4,DeleteComm=deleteComm });
166 | }
167 |
168 | }
169 | catch (Exception)
170 | {
171 | MainPage.CurrentPage.ShowNotifi("抱歉,读取评论失败,请重新加载页面 加载失败");
172 | }
173 |
174 |
175 | }
176 | private async void 表态_Click(object sender, RoutedEventArgs e)
177 | {
178 | Button button = sender as Button;
179 | switch(button.Name)
180 | {
181 | case "表态1":
182 | MainPage.CurrentPage.WebView1.Source = get7a;
183 | break;
184 | case "表态2":
185 | MainPage.CurrentPage.WebView1.Source = get7b;
186 | break;
187 | case "表态3":
188 | MainPage.CurrentPage.WebView1.Source = get7c;
189 | break;
190 | case "表态4":
191 | MainPage.CurrentPage.WebView1.Source = get7d;
192 | break;
193 | case "表态5":
194 | MainPage.CurrentPage.WebView1.Source = get7e;
195 | break;
196 | }
197 |
198 | if (await MainPage.CurrentPage.CheckLoadState(false) != 0)
199 | {
200 | MainPage.CurrentPage.ShowNotifi("表态失败,请稍后再试");
201 | MainPage.CurrentPage.WebView1.GoBack();
202 | return;
203 | }
204 |
205 | try
206 | {
207 | var check1 = string.Format(@"document.getElementById('ct').innerText;");
208 | var result1 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { check1 });
209 | if (result1.Contains("表态成功"))
210 | {
211 | MainPage.CurrentPage.ShowNotifi("表态成功!");
212 | }
213 | else if (result1.Contains("您已表过态"))
214 | {
215 | MainPage.CurrentPage.ShowNotifi("您已表过态,请勿重复表态!");
216 | }
217 | else if (result1.Contains("您需要先登录才能继续本操作"))
218 | {
219 | MainPage.CurrentPage.ShowNotifi("请您先登陆账号!!");
220 | }
221 | else
222 | {
223 | MainPage.CurrentPage.ShowNotifi("表态失败!");
224 | }
225 | }
226 | catch (Exception)
227 | {
228 |
229 | }
230 |
231 | MainPage.CurrentPage.WebView1.GoBack();
232 | BTSelect();
233 | }
234 |
235 | private async void 提交_Click(object sender, RoutedEventArgs e)
236 | {
237 | try
238 | {
239 | if (string.IsNullOrEmpty(评论.Text))
240 | {
241 | return;
242 | }
243 | else if (评论.Text.Length < 2)
244 | {
245 | MainPage.CurrentPage.ShowNotifi("评论太短!");
246 | return;
247 | }
248 |
249 | var send1 = string.Format(@"document.getElementById('message').value='{0}';", 评论.Text);
250 | await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send1 });
251 | var send2 = string.Format(@"document.getElementById('commentsubmit_btn').click();");
252 | await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send2 });
253 |
254 | await Task.Delay(1000);
255 | if (await MainPage.CurrentPage.CheckLoadState(true) != 0)
256 | {
257 | return;
258 | }
259 |
260 | var send3 = string.Format(@"document.getElementById('ct').innerText;");
261 | var result3 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send3 });
262 | if (result3.Contains("操作成功"))
263 | {
264 | 评论.Text = "";
265 | MainPage.CurrentPage.ShowNotifi("评论成功!");
266 | }
267 | else if (result3.Contains("未实名用户不能使用该功能"))
268 | {
269 | MainPage.CurrentPage.ShowNotifi("请先完成实名认证,或者您没登陆账号!!");
270 | }
271 | else if (result3.Contains("两次发布操作太快"))
272 | {
273 | MainPage.CurrentPage.ShowNotifi("你手速太快,休息一下吧");
274 | }
275 | else
276 | {
277 | MainPage.CurrentPage.ShowNotifi("评论失败!请稍后重试!");
278 | }
279 |
280 | MainPage.CurrentPage.WebView1.GoBack();
281 | CommList.Items.Clear();
282 | if (await MainPage.CurrentPage.CheckLoadState(true) != 0)
283 | {
284 | return;
285 | }
286 | await Task.Delay(1000);
287 | GetComm();
288 | }
289 | catch(Exception)
290 | {
291 | MainPage.CurrentPage.ShowNotifi("评论失败!请稍后重试!");
292 | }
293 | }
294 | string quoteComm;
295 | string comments;
296 | string deleteComm;
297 | private void CommList_Tapped(object sender, TappedRoutedEventArgs e)
298 | {
299 | 删除.Visibility = Visibility.Collapsed;
300 |
301 | var items = CommList.SelectedItem as ShowNEWSc;
302 | quoteComm = items.Quote;
303 | comments = items.Comments.Replace("\n", "");
304 | deleteComm = items.DeleteComm;
305 | string xinxi = items.CommentsIfm;
306 | if (xinxi.Contains("我的评论"))
307 | {
308 | 删除.Visibility = Visibility.Visible;
309 | }
310 |
311 |
312 | Point point = e.GetPosition(sender as FrameworkElement);
313 | CommFlyout.ShowAt(sender as FrameworkElement, point);
314 | }
315 | DataPackage dataPackage = new DataPackage();
316 | private void 复制_Click(object sender, RoutedEventArgs e)
317 | {
318 | dataPackage.SetText(quoteComm + "\n" + comments);
319 | Clipboard.SetContent(dataPackage);
320 | }
321 | private void 引用_Click(object sender, RoutedEventArgs e)
322 | {
323 | if(评论.Text.Contains("[quote]"))
324 | {
325 | 评论.Text = "[quote]" + comments + "[/quote]";
326 | }
327 | else
328 | {
329 | 评论.Text = "[quote]" + comments + "[/quote]" + "\\n" + 评论.Text;
330 | }
331 | }
332 | private async void 删除_Click(object sender, RoutedEventArgs e)
333 | {
334 | try
335 | {
336 | await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { deleteComm });
337 | await Task.Delay(1500);
338 | var send = string.Format(@"document.getElementsByName('deletesubmitbtn').length.toString();");
339 | var result= await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send });
340 | if(result=="0")
341 | {
342 | MainPage.CurrentPage.ShowNotifi("删除评论失败,请稍后重试!");
343 | return;
344 | }
345 |
346 | var send2 = string.Format(@"document.getElementsByName('deletesubmitbtn')[0].click();");
347 | await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send2 });
348 | if (await MainPage.CurrentPage.CheckLoadState(true) != 0)
349 | {
350 | return;
351 | }
352 |
353 | var send3 = string.Format(@"document.getElementById('ct').innerText;");
354 | var result3 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { send3 });
355 | if (result3.Contains("操作成功"))
356 | {
357 | MainPage.CurrentPage.ShowNotifi("已删除");
358 | }
359 | else if (result3.Contains("您要删除的评论不存在"))
360 | {
361 | MainPage.CurrentPage.ShowNotifi("该评论已被删除或不存在!");
362 | }
363 | else
364 | {
365 | MainPage.CurrentPage.ShowNotifi("删除失败");
366 | }
367 |
368 | MainPage.CurrentPage.WebView1.GoBack();
369 | CommList.Items.Clear();
370 | if (await MainPage.CurrentPage.CheckLoadState(true) != 0)
371 | {
372 | return;
373 | }
374 | await Task.Delay(1000);
375 | GetComm();
376 | }
377 | catch(Exception)
378 | {
379 | MainPage.CurrentPage.ShowNotifi("删除评论失败,请稍后重试!");
380 | }
381 | }
382 |
383 | }
384 | }
385 |
--------------------------------------------------------------------------------
/远景论坛UWP/SmallICON/CoinBKG.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/SmallICON/CoinBKG.png
--------------------------------------------------------------------------------
/远景论坛UWP/SmallICON/File.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/SmallICON/File.png
--------------------------------------------------------------------------------
/远景论坛UWP/SmallICON/InboxM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/SmallICON/InboxM.png
--------------------------------------------------------------------------------
/远景论坛UWP/SmallICON/NewM.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/SmallICON/NewM.png
--------------------------------------------------------------------------------
/远景论坛UWP/SmallICON/RateICON.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/SmallICON/RateICON.png
--------------------------------------------------------------------------------
/远景论坛UWP/SmallICON/Write.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/SmallICON/Write.png
--------------------------------------------------------------------------------
/远景论坛UWP/TopbarICON/GDGN.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/TopbarICON/GDGN.png
--------------------------------------------------------------------------------
/远景论坛UWP/TopbarICON/More.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/TopbarICON/More.png
--------------------------------------------------------------------------------
/远景论坛UWP/TopbarICON/新闻.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/TopbarICON/新闻.png
--------------------------------------------------------------------------------
/远景论坛UWP/TopbarICON/论坛.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/TopbarICON/论坛.png
--------------------------------------------------------------------------------
/远景论坛UWP/TopbarICON/默认头像.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/TopbarICON/默认头像.jpg
--------------------------------------------------------------------------------
/远景论坛UWP/UserIfmPage.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/远景论坛UWP/UserIfmPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Net.Http;
6 | using System.Runtime.InteropServices.WindowsRuntime;
7 | using System.Threading.Tasks;
8 | using Windows.Foundation;
9 | using Windows.Foundation.Collections;
10 | using Windows.UI.Popups;
11 | using Windows.UI.Xaml;
12 | using Windows.UI.Xaml.Controls;
13 | using Windows.UI.Xaml.Controls.Primitives;
14 | using Windows.UI.Xaml.Data;
15 | using Windows.UI.Xaml.Input;
16 | using Windows.UI.Xaml.Media;
17 | using Windows.UI.Xaml.Media.Imaging;
18 | using Windows.UI.Xaml.Navigation;
19 |
20 | // https://go.microsoft.com/fwlink/?LinkId=234238 上介绍了“空白页”项模板
21 |
22 | namespace 远景论坛UWP
23 | {
24 | ///
25 | /// 可用于自身或导航至 Frame 内部的空白页。
26 | ///
27 | public sealed partial class UserIfmPage : Page
28 | {
29 | public UserIfmPage()
30 | {
31 | this.InitializeComponent();
32 | }
33 | private async void Page_Loaded(object sender, RoutedEventArgs e)
34 | {
35 | if(!MainPage.CurrentPage.noCheck)
36 | {
37 | if (await MainPage.CurrentPage.CheckLoadState(true) != 0)
38 | {
39 | return;
40 | }
41 | }
42 |
43 | RefreshMessage refresh = new RefreshMessage();
44 | refresh.CheckNewMessage();
45 |
46 | MainPage.CurrentPage.noCheck = false;
47 |
48 | try
49 | {
50 | var getCount = string.Format(@"document.getElementsByClassName('bm_c')[0].querySelectorAll('.mbn').length.toString();");
51 | string result = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { getCount });
52 | int count = Convert.ToInt32(result);
53 |
54 | for (int i = 0; i < count; i++)
55 | {
56 | var getTittle = string.Format(@"document.getElementsByClassName('bm_c')[0].querySelectorAll('.mbn')[{0}].innerText;",i);
57 | string tittle = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { getTittle });
58 |
59 | if(tittle.Contains("勋章"))
60 | {
61 | var getCount2 = string.Format(@"document.querySelectorAll('.bm_c .md_ctrl img').length.toString();");
62 | string result2 = await MainPage.CurrentPage.WebView1.InvokeScriptAsync("eval", new string[] { getCount2 });
63 | int count2 = Convert.ToInt32(result2);
64 |
65 | for(int j=0;j
2 |
3 |
4 |
5 | Debug
6 | x86
7 | {3CEF5E21-3463-4766-9BFB-277E16AEB341}
8 | AppContainerExe
9 | Properties
10 | 远景论坛UWP
11 | 远景论坛UWP
12 | zh-CN
13 | UAP
14 | 10.0.17763.0
15 | 10.0.10240.0
16 | 14
17 | 512
18 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
19 | true
20 | 远景论坛UWP_TemporaryKey.pfx
21 |
22 |
23 | False
24 | True
25 | Always
26 | x86|x64
27 | 0
28 | OnApplicationRun
29 | SHA256
30 | False
31 | 0
32 | True
33 | False
34 |
35 |
36 | true
37 | bin\x86\Debug\
38 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
39 | ;2008
40 | full
41 | x86
42 | false
43 | prompt
44 | true
45 | false
46 | true
47 |
48 |
49 | bin\x86\Release\
50 | TRACE;NETFX_CORE;WINDOWS_UWP
51 | true
52 | ;2008
53 | pdbonly
54 | x86
55 | false
56 | prompt
57 | true
58 | true
59 |
60 |
61 | true
62 | bin\ARM\Debug\
63 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
64 | ;2008
65 | full
66 | ARM
67 | false
68 | prompt
69 | true
70 | false
71 | true
72 |
73 |
74 | bin\ARM\Release\
75 | TRACE;NETFX_CORE;WINDOWS_UWP
76 | true
77 | ;2008
78 | pdbonly
79 | ARM
80 | false
81 | prompt
82 | true
83 | true
84 |
85 |
86 | true
87 | bin\x64\Debug\
88 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
89 | ;2008
90 | full
91 | x64
92 | false
93 | prompt
94 | true
95 | true
96 | false
97 |
98 |
99 | bin\x64\Release\
100 | TRACE;NETFX_CORE;WINDOWS_UWP
101 | true
102 | ;2008
103 | pdbonly
104 | x64
105 | false
106 | prompt
107 | true
108 | true
109 | 4
110 | false
111 |
112 |
113 | PackageReference
114 |
115 |
116 | 4.0
117 | zh-CN
118 | true
119 | true
120 |
121 |
122 |
123 | App.xaml
124 |
125 |
126 | MainPage.xaml
127 |
128 |
129 | MyPostPage.xaml
130 |
131 |
132 |
133 | ThreadContentPage.xaml
134 |
135 |
136 | ShowThreadsPage.xaml
137 |
138 |
139 | MyAlertPage.xaml
140 |
141 |
142 | NEWSPage.xaml
143 |
144 |
145 | ShowNEWSPage.xaml
146 |
147 |
148 | UserIfmPage.xaml
149 |
150 |
151 | BBSMainPage.xaml
152 |
153 |
154 | BBS2Page.xaml
155 |
156 |
157 |
158 | AccountSePage.xaml
159 |
160 |
161 |
162 |
163 | Designer
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 | MSBuild:Compile
249 | Designer
250 |
251 |
252 | MSBuild:Compile
253 | Designer
254 |
255 |
256 | Designer
257 | MSBuild:Compile
258 |
259 |
260 | Designer
261 | MSBuild:Compile
262 |
263 |
264 | Designer
265 | MSBuild:Compile
266 |
267 |
268 | Designer
269 | MSBuild:Compile
270 |
271 |
272 | Designer
273 | MSBuild:Compile
274 |
275 |
276 | Designer
277 | MSBuild:Compile
278 |
279 |
280 | Designer
281 | MSBuild:Compile
282 |
283 |
284 | Designer
285 | MSBuild:Compile
286 |
287 |
288 | Designer
289 | MSBuild:Compile
290 |
291 |
292 | Designer
293 | MSBuild:Compile
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 | 6.2.10
302 |
303 |
304 |
305 | 14.0
306 |
307 |
308 |
309 |
310 |
311 |
312 |
319 |
--------------------------------------------------------------------------------
/远景论坛UWP/远景论坛UWP.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | False
5 | ProjectFiles
6 | True
7 | x86|x64
8 | False
9 | D:\VS 2015-17 Project\远景论坛UWP\远景论坛UWP\Assets\APPICON.png
10 | D:\VS 2015-17 Project\远景论坛UWP\远景论坛UWP\Assets\APPICON.png
11 | D:\VS 2015-17 Project\远景论坛UWP\远景论坛UWP\Assets\APPICON.png
12 | D:\VS 2015-17 Project\远景论坛UWP\远景论坛UWP\Assets\APPICON.png
13 | D:\VS 2015-17 Project\远景论坛UWP\远景论坛UWP\Assets\APPICON.png
14 | D:\VS 2015-17 Project\远景论坛UWP\远景论坛UWP\Assets\APPICON.png
15 | D:\VS 2015-17 Project\远景论坛UWP\远景论坛UWP\Assets\APPICON.png
16 | D:\VS 2015-17 Project\远景论坛UWP\远景论坛UWP\Assets\APPICON.png
17 | D:\VS 2015-17 Project\远景论坛UWP\远景论坛UWP\Assets\APPICON.png
18 | StoreOnly
19 |
20 |
21 | 30F105C9-681E-420b-A277-7C086EAD8A4E
22 | true
23 |
24 |
25 | 30f105c9-681e-420b-a277-7c086ead8a4e
26 | true
27 | false
28 | {3B476D35-A401-11D2-AAD4-00C04F990171}
29 |
30 |
31 | {3B476D35-A401-11D2-AAD4-00C04F990171}
32 | true
33 | false
34 | false
35 | 30f105c9-681e-420b-a277-7c086ead8a4e
36 | {3B476D35-A401-11D2-AAD4-00C04F990171}
37 |
38 |
39 | false
40 | false
41 | 30f105c9-681e-420b-a277-7c086ead8a4e
42 | {3B476D35-A401-11D2-AAD4-00C04F990171}
43 |
44 |
--------------------------------------------------------------------------------
/远景论坛UWP/远景论坛UWP_StoreKey.pfx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/远景论坛UWP_StoreKey.pfx
--------------------------------------------------------------------------------
/远景论坛UWP/远景论坛UWP_TemporaryKey.pfx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FHWWC/pcbeta-UWP/7e41bf5d8a535b8dac0bc772dfaa976ae51d31fe/远景论坛UWP/远景论坛UWP_TemporaryKey.pfx
--------------------------------------------------------------------------------