U:调整主页面选项
This commit is contained in:
1 parent
04e912a830
commit
50f50cb604
3 files changed
+27
-2
No files matched your search
@@ -6,7 +6,7 @@
|
||||
xmlns:local="clr-namespace:Shell"
|
||||
xmlns:views="clr-namespace:Shell.Views"
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="618" Width="1000">
|
||||
Title="MainWindow" Height="700" Width="1300">
|
||||
<Grid>
|
||||
<views:WebPanel/>
|
||||
</Grid>
|
||||
|
||||
@@ -9,6 +9,7 @@ using Common.Net;
|
||||
using Common.Net.WebSocketConn;
|
||||
using Infrastructure.utils;
|
||||
using Utils.ETW;
|
||||
using Utils.ETW.Core;
|
||||
using WinDivertNet.WinDivertWrapper;
|
||||
|
||||
namespace Shell.Views;
|
||||
@@ -19,9 +20,26 @@ public partial class WebPanel : UserControl
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Class1.Main2();
|
||||
// Class1.Main2();
|
||||
|
||||
InitWebView();
|
||||
|
||||
// 注册管理 WebSocket 事件
|
||||
WebSocketManger();
|
||||
}
|
||||
|
||||
private void WebSocketManger()
|
||||
{
|
||||
var webSocketManager = WebSocketManager.Instance;
|
||||
|
||||
// 获取网络状态
|
||||
webSocketManager.RegisterHandler("etwNetworkManger", async (cmd, socket) =>
|
||||
{
|
||||
Console.WriteLine("开始测试");
|
||||
var etwNetworkManger = new EtwNetworkManger();
|
||||
etwNetworkManger.SetupETWHandlers();
|
||||
etwNetworkManger.StartCapture();
|
||||
});
|
||||
}
|
||||
|
||||
private async void InitWebView()
|
||||
|
||||
Reference in new issue
Block a user