├── ipad.png
├── qrcode.png
├── shinnku.ico
├── shinnku.jpg
├── Properties
├── launchSettings.json
├── Settings.settings
├── PublishProfiles
│ ├── TestVer.pubxml.user
│ ├── single.pubxml.user
│ ├── TestVer.pubxml
│ ├── single.pubxml
│ ├── Release.pubxml
│ └── Release.pubxml.user
└── Settings.Designer.cs
├── ResourceFile.xaml
├── ViewModel
├── Base
│ ├── ViewModelBase.cs
│ └── CommandBase.cs
├── NotifyIconViewModel.cs
├── AutoStart.cs
└── MainViewModel.cs
├── AssemblyInfo.cs
├── Model
├── CarriersModel.cs
├── UserModel.cs
└── SettingModel.cs
├── cpu_net.csproj.user
├── cpu_net.sln
├── README.md
├── App.xaml
├── Utils.cs
├── MainWindow.xaml
├── app.manifest
├── cpu_net.csproj
├── Views
└── Pages
│ ├── HomePage.xaml.cs
│ ├── HomePage.xaml
│ ├── ConfigurationPage.xaml.cs
│ └── ConfigurationPage.xaml
├── App.xaml.cs
├── MainWindow.xaml.cs
├── .gitignore
└── LICENSE
/ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SoraNoNeko/cpu_net/HEAD/ipad.png
--------------------------------------------------------------------------------
/qrcode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SoraNoNeko/cpu_net/HEAD/qrcode.png
--------------------------------------------------------------------------------
/shinnku.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SoraNoNeko/cpu_net/HEAD/shinnku.ico
--------------------------------------------------------------------------------
/shinnku.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SoraNoNeko/cpu_net/HEAD/shinnku.jpg
--------------------------------------------------------------------------------
/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "profiles": {
3 | "cpu_net": {
4 | "commandName": "Project",
5 | "workingDirectory": "D:\\py\\cpu_net\\workingspace"
6 | }
7 | }
8 | }
--------------------------------------------------------------------------------
/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Properties/PublishProfiles/TestVer.pubxml.user:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | True|2023-11-13T10:43:43.7420064Z;
8 |
9 |
10 |
--------------------------------------------------------------------------------
/ResourceFile.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Properties/PublishProfiles/single.pubxml.user:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | True|2024-12-12T09:07:03.8305298Z;True|2024-01-10T12:51:54.5376410+08:00;True|2024-01-10T05:13:16.9784589+08:00;True|2023-11-24T22:16:09.2490931+08:00;True|2023-11-24T22:07:26.4881446+08:00;
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Properties/PublishProfiles/TestVer.pubxml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | Release
8 | Any CPU
9 | D:\py\cpu_net\workingspace\bin\Release\net6.0-windows\test\
10 | FileSystem
11 | <_TargetId>Folder
12 |
13 |
--------------------------------------------------------------------------------
/ViewModel/Base/ViewModelBase.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel;
2 | using System.Runtime.CompilerServices;
3 |
4 | namespace cpu_net.ViewModel.Base
5 | {
6 | public class ViewModelBase : INotifyPropertyChanged
7 | {
8 | public event PropertyChangedEventHandler? PropertyChanged;
9 | public void OnPropertyChanged([CallerMemberName] string propertyName = null)
10 | {
11 | if (PropertyChanged != null)
12 | PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | [assembly: ThemeInfo(
4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5 | //(used if a resource is not found in the page,
6 | // or application resource dictionaries)
7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8 | //(used if a resource is not found in the page,
9 | // app, or any theme specific resource dictionaries)
10 | )]
11 |
--------------------------------------------------------------------------------
/Model/CarriersModel.cs:
--------------------------------------------------------------------------------
1 | using CommunityToolkit.Mvvm.ComponentModel;
2 | using System;
3 |
4 | namespace cpu_net.Model
5 | {
6 | public class CarriersModel : ObservableObject
7 | {
8 | //value of key
9 | // 0 : Null
10 | // 1 : cmcc
11 | // 2 : unicom
12 | // 3 : telecom
13 | private int _key;
14 | public int Key
15 | {
16 | get { return _key; }
17 | set { _key = value; OnPropertyChanged(nameof(Key)); }
18 | }
19 |
20 | private String _text;
21 | public String Text
22 | {
23 | get { return _text; }
24 | set { _text = value; OnPropertyChanged(nameof(Text)); }
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Properties/PublishProfiles/single.pubxml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | Release
8 | Any CPU
9 | D:\py\cpu_net\workingspace\bin\Release\net6.0-windows\publish\0\
10 | FileSystem
11 | <_TargetId>Folder
12 | net6.0-windows10.0.17763.0
13 | win-x64
14 | false
15 | true
16 | false
17 |
18 |
--------------------------------------------------------------------------------
/Properties/PublishProfiles/Release.pubxml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | Release
8 | Any CPU
9 | D:\py\cpu_net\workingspace\bin\Release\net6.0-windows\publish\win-x64\
10 | FileSystem
11 | <_TargetId>Folder
12 | net6.0-windows10.0.17763.0
13 | win-x64
14 | true
15 | true
16 | false
17 |
18 |
--------------------------------------------------------------------------------
/cpu_net.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | <_LastSelectedProfileId>D:\py\cpu_net\cpu_net\Properties\PublishProfiles\Release.pubxml
5 |
6 |
7 |
8 | Designer
9 |
10 |
11 |
12 |
13 | Code
14 |
15 |
16 | Code
17 |
18 |
19 |
20 |
21 | Designer
22 |
23 |
24 | Designer
25 |
26 |
27 | Designer
28 |
29 |
30 |
--------------------------------------------------------------------------------
/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace cpu_net.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.7.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/cpu_net.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.7.34221.43
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "cpu_net", "cpu_net.csproj", "{B37BC920-50FB-467F-901F-A2788914FD50}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {B37BC920-50FB-467F-901F-A2788914FD50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {B37BC920-50FB-467F-901F-A2788914FD50}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {B37BC920-50FB-467F-901F-A2788914FD50}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {B37BC920-50FB-467F-901F-A2788914FD50}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {3933582F-3659-44FD-8796-5CB22420C242}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CPU网络连接助手
2 | **所有使用教程的大前提是:当网络中有一台设备登录后其他设备都不需要登录
即同一台路由器下只有一台设备有自动连接的能力就可以了(包括手机,电脑,平板)**
3 | **如果3.0.0版本频繁出现AC认证失败,请考虑换回2.x.x版本**
4 | ## 使用方法
5 |
6 |
设置中设置学号密码,勾选需要功能,保存后在主页点击登录即可
7 | 软件更新方法:解压,覆盖并替换原来的文件
8 | 目前测试版,有bug欢迎提出
9 |
10 | 已知问题:窗口打开情况下从任务托盘退出会导致退出选框失效
11 | 连接成功但是显示连接失败(已修复)
12 | 部分情况崩溃,包括但不限于点击跳转网页,正在考虑增加debug日志输出以帮助排障(debug功能已加)
13 | 新增功能连接CPU,但是由于本程序主要面向小白,故不会考虑自选api
14 | 已知问题:定时运行的log不会实时加载进ui,不影响正常使用(已修复)
15 | 目前部分可修复的已知bug将在1.3版本中得到解决
16 |
17 | ## 苹果设备iPhone/iPad解决方法
18 |
19 | 使用快捷指令:[链接](https://www.icloud.com/shortcuts/e35332a6d9ce49549cc4689a9e7ed729)
20 |
21 | 
22 |
23 | 使用前需要在三个文本框中填入相应信息,运营商注意注释
24 | 进入编辑的方式是点击右上角三个点
25 |
26 | 
27 |
28 | 进阶玩法(连上WiFi自动登录):
29 | iPad使用方法:
30 | 打开快捷指令 —> 自动化 —> 新自动化 —> 选择“无线局域网” —> “网络”选取自己的WiFi —> 选择“立即运行”
31 | —> 下一步 —> 选择“连接药大网络” —> 完成
32 | iPhone使用方法:
33 | 打开快捷指令 —> 自动化 —> 创建个人自动化 —> 选择“无线局域网” —> 选取自己的wifi名称 —>
34 | 点击右上方完成,下一步 —> 添加操作 —> App —> 快捷指令 —> 运行快捷指令 —> 点击方框中浅色的“快捷指令” —>
35 | 选择“连接药大网络” —> 下一步 —> 完成
36 |
37 | ### 联系方式:
38 | 加群**939789212**
或联系QQ:3069838783
39 |
--------------------------------------------------------------------------------
/App.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ViewModel/Base/CommandBase.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Input;
3 |
4 | namespace cpu_net.ViewModel.Base
5 | {
6 | public class CommandBase : ICommand
7 | {
8 | public event EventHandler CanExecuteChanged;
9 |
10 | public CommandBase(Action executeAction, Func canExcuteFunc = null)
11 | {
12 | this.ExecuteAction = executeAction;
13 | this.CanExecuteFunc = canExcuteFunc;
14 | }
15 |
16 | public CommandBase(Action